From: Punit Agrawal <punitagrawal@gmail.com>
To: Daniel Wagner <wagi@monom.org>
Cc: jkacur@redhat.com, Punit Agrawal <punit1.agrawal@toshiba.co.jp>,
williams@redhat.com, linux-rt-users@vger.kernel.org
Subject: Re: [RFC 7/7] rt-tests: cyclictest: Add support to report standard deviation
Date: Fri, 15 Oct 2021 16:58:19 +0900 [thread overview]
Message-ID: <87r1cm1zz8.fsf@stealth> (raw)
In-Reply-To: <20211014115043.s3zf5p3s7dglvcjb@carbon.lan> (Daniel Wagner's message of "Thu, 14 Oct 2021 13:50:43 +0200")
Daniel Wagner <wagi@monom.org> writes:
> Hi Punit,
>
> On Thu, Oct 14, 2021 at 04:12:47PM +0900, Punit Agrawal wrote:
>> @@ -1781,6 +1810,7 @@ static void write_stats(FILE *f, void *data)
>> fprintf(f, " \"min\": %ld,\n", s->min);
>> fprintf(f, " \"max\": %ld,\n", s->max);
>> fprintf(f, " \"avg\": %.2f,\n", s->avg);
>> + fprintf(f, " \"stddev\": %.2f,\n", calc_stddev(s));
>> fprintf(f, " \"cpu\": %d,\n", par[i]->cpu);
>> fprintf(f, " \"node\": %d\n", par[i]->node);
>> fprintf(f, " }%s\n", i == num_threads - 1 ? "" : ",");
>
> I think in this case you should also increase the version number of the
> JSON file.
Sure, I can bump up the version to 1.1 - minor update as it's adding a
new field rather than changing existing ones. Or "2" if that is
preferred.
Taking a closer look, the rt_write_json() helper, that outputs the
version, is shared with other tools. Bumping the version will bump it up
for all of them - would that be OK?
> And while at it, I'd love to see the same stats
> fixes/extension for the other tools, not just cyclictest.
I can look at adding support for standard deviation to the other tools
if there's interest once the cyclictest changes have been merged.
Thanks for taking a look.
Punit
next prev parent reply other threads:[~2021-10-15 7:58 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-14 7:12 [RFC 0/7] rt-tests: cyclictest: Add support to report standard deviation Punit Agrawal
2021-10-14 7:12 ` [RFC 1/7] rt-tests: cyclictest: Drop unused defines Punit Agrawal
2021-10-14 18:23 ` John Kacur
2021-11-11 20:28 ` John Kacur
2021-10-14 7:12 ` [RFC 2/7] rt-tests: cyclictest: Simplify duplicate initialization of "stop" Punit Agrawal
2021-10-14 18:29 ` John Kacur
2021-11-11 20:32 ` John Kacur
2021-10-14 7:12 ` [RFC 3/7] rt-tests: cyclictest: Drop unnecessary variable "stopped" Punit Agrawal
2021-10-14 7:12 ` [RFC 4/7] rt-tests: cyclictest: Drop unnecessary variable "bufsize" Punit Agrawal
2021-10-14 18:29 ` John Kacur
2021-10-15 8:05 ` Punit Agrawal
2021-10-15 13:07 ` John Kacur
2021-11-11 20:36 ` John Kacur
2021-10-14 7:12 ` [RFC 5/7] rt-tests: cyclictest: Move signal handler to avoid function declaration Punit Agrawal
2021-10-14 18:31 ` John Kacur
2021-10-15 8:21 ` Punit Agrawal
2021-10-14 7:12 ` [RFC 6/7] rt-tests: cyclictest: Use streaming algorithm to calculate averages Punit Agrawal
2021-10-14 7:12 ` [RFC 7/7] rt-tests: cyclictest: Add support to report standard deviation Punit Agrawal
2021-10-14 11:50 ` Daniel Wagner
2021-10-15 7:58 ` Punit Agrawal [this message]
2021-10-15 8:22 ` Daniel Wagner
2021-10-15 16:37 ` [RFC 0/7] " Joseph Salisbury
2021-10-18 0:28 ` Punit Agrawal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r1cm1zz8.fsf@stealth \
--to=punitagrawal@gmail.com \
--cc=jkacur@redhat.com \
--cc=linux-rt-users@vger.kernel.org \
--cc=punit1.agrawal@toshiba.co.jp \
--cc=wagi@monom.org \
--cc=williams@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox