From: Punit Agrawal <punitagrawal@gmail.com>
To: Joseph Salisbury <josephtsalisbury@gmail.com>
Cc: jkacur@redhat.com, williams@redhat.com, linux-rt-users@vger.kernel.org
Subject: Re: [RFC 0/7] rt-tests: cyclictest: Add support to report standard deviation
Date: Mon, 18 Oct 2021 09:28:05 +0900 [thread overview]
Message-ID: <878ryr18iy.fsf@stealth> (raw)
In-Reply-To: <CAGHUO11me7hStnYpXTWs5DmDqKg8Y_sXAKFYaCToU5WZvfDm=g@mail.gmail.com> (Joseph Salisbury's message of "Fri, 15 Oct 2021 12:37:05 -0400")
Hi Joseph,
Joseph Salisbury <josephtsalisbury@gmail.com> writes:
> On Thu, Oct 14, 2021 at 3:13 AM Punit Agrawal <punitagrawal@gmail.com> wrote:
>>
>> Hi,
>>
>> Standard deviation is an important measure to evaluate the latency
>> response of a real time system. It is calculated by downstream tools
>> such as rteval but the value cannot be correctly calculated when the
>> latency value exceeds the range of histogram.
>>
>> This series adds support to report the streaming standard deviation of
>> latencies to cyclictest. This approach avoids having to track all
>> latency values and adds minimal overhead (two additional doubles and
>> compute steps) to each iteration.
>>
>> In terms of patch organization, the first 5 patches are clean-ups that
>> were noticed in the course of developing the support for standard
>> deviation. It should be possible to apply them indepndently.
>>
>> Patch 6 converts the existing average calculation to a streaming
>> version. This running average value is needed for the standard
>> deviation.
>>
>> Patch 7 finally adds support for calculating standard deviation.
>>
>> The changes were verified by capturing the latency samples and
>> verifying the average and standard deviation with manual calculation.
>>
>> All feedback welcome.
>>
>> Thanks,
>> Punit
>>
>> Punit Agrawal (7):
>> rt-tests: cyclictest: Drop unused defines
>> rt-tests: cyclictest: Simplify duplicate initialization of "stop"
>> rt-tests: cyclictest: Drop unnecessary variable "stopped"
>> rt-tests: cyclictest: Drop unnecessary variable "bufsize"
>> rt-tests: cyclictest: Move signal handler to avoid function
>> declaration
>> rt-tests: cyclictest: Use streaming algorithm to calculate averages
>> rt-tests: cyclictest: Add support to report standard deviation
>>
>> Makefile | 2 +-
>> src/cyclictest/cyclictest.c | 149 +++++++++++++++++++++---------------
>> 2 files changed, 87 insertions(+), 64 deletions(-)
>>
>> --
>> 2.32.0
>>
>
> Hi Punit,
>
> Thanks for your contributions!
>
> I noticed there were no commit messages for patches 1 and 5.
If you look closely, patch 1 does have a commit log.
I missed adding a commit log for patch 5 - but the gist of it is to drop
function declarations when they are not required. In this case, this is
achieved by having the caller defined after all the callees have been
defined.
I'll add a log if the patch gets reposted.
Thanks for taking a look.
Punit
[...]
prev parent reply other threads:[~2021-10-18 0:28 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
2021-10-15 8:22 ` Daniel Wagner
2021-10-15 16:37 ` [RFC 0/7] " Joseph Salisbury
2021-10-18 0:28 ` Punit Agrawal [this message]
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=878ryr18iy.fsf@stealth \
--to=punitagrawal@gmail.com \
--cc=jkacur@redhat.com \
--cc=josephtsalisbury@gmail.com \
--cc=linux-rt-users@vger.kernel.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