From: John Kacur <jkacur@gmail.com>
To: Costa Shulyupin <costa.shul@redhat.com>
Cc: linux-rt-users <linux-rt-users@vger.kernel.org>,
Bart Wensley <bwensley@redhat.com>,
John Kacur <jkacur@redhat.com>,
Clark Williams <williams@redhat.com>
Subject: Re: [PATCH v3] rt-tests: hwlatdetect: Add MTBF calculation
Date: Tue, 24 Feb 2026 18:44:59 -0500 (EST) [thread overview]
Message-ID: <fb8a7568-21cf-aaf2-083b-d04b4bedb4af@gmail.com> (raw)
In-Reply-To: <20260220182428.75379-2-costa.shul@redhat.com>
On Fri, 20 Feb 2026, Costa Shulyupin wrote:
8< -----------
>
> + if exceeding > 1:
> + info(f"MTBF: {(float(detect.last) - float(detect.first)) / (exceeding - 1):.3f} seconds")
> +
With newer kernels you can get multiple latency events ie, the count per
timestamp but you don't know when they occurred. (the timestamp measures the occurence
of the first event)
Does it therefore make more sense to measure the mean time between samples
(distinct timestamp entries)
Does the following make more sense?
if detect.samples > 1:
info(f"MTBF: {(float(detect.last) - float(detect.first)) / (len(detect.samples) - 1):.3f} seconds")
> if detect.have_msr:
> finishsmi = detect.getsmicounts()
> total_smis = 0
> --
John
next prev parent reply other threads:[~2026-02-24 23:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-20 18:24 [PATCH v3] rt-tests: hwlatdetect: Add MTBF calculation Costa Shulyupin
2026-02-24 23:44 ` John Kacur [this message]
2026-02-25 9:25 ` Costa Shulyupin
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=fb8a7568-21cf-aaf2-083b-d04b4bedb4af@gmail.com \
--to=jkacur@gmail.com \
--cc=bwensley@redhat.com \
--cc=costa.shul@redhat.com \
--cc=jkacur@redhat.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