linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tomas Glozar <tglozar@redhat.com>
To: linux-rt-users@vger.kernel.org
Cc: jkacur@redhat.com, Tomas Glozar <tglozar@redhat.com>
Subject: [PATCH 2/2] rteval: Set higher cyclictest bucket count on non-RT kernels
Date: Wed, 16 Aug 2023 08:57:40 +0200	[thread overview]
Message-ID: <20230816065740.283407-3-tglozar@redhat.com> (raw)
In-Reply-To: <20230816065740.283407-1-tglozar@redhat.com>

Make the default for --cyclictest-buckets 50000 instead of 3500 on
non-RT kernels to make overflowing much less likely.

Signed-off-by: Tomas Glozar <tglozar@redhat.com>
---
 rteval/modules/measurement/cyclictest.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/rteval/modules/measurement/cyclictest.py b/rteval/modules/measurement/cyclictest.py
index 50b2e2a..addd8da 100644
--- a/rteval/modules/measurement/cyclictest.py
+++ b/rteval/modules/measurement/cyclictest.py
@@ -434,7 +434,8 @@ def ModuleParameters():
                          "default": 100,
                          "metavar": "INTV_US"},
             "buckets":  {"descr": "Histogram width",
-                         "default": 3500,
+                         "default": 3500 if "RT " in os.uname().version else 50000,
+                         "default_text": "3500 when running on a RT kernel, 50000 otherwise",
                          "metavar": "NUM"},
             "priority": {"descr": "Run cyclictest with the given priority",
                          "default": 95,
-- 
2.41.0


      parent reply	other threads:[~2023-08-16  6:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-16  6:57 [PATCH 0/2] rteval: Default to higher cyclictest bucket count on non-RT kernels Tomas Glozar
2023-08-16  6:57 ` [PATCH 1/2] rteval: Support custom argument default value help Tomas Glozar
2023-08-16  6:57 ` Tomas Glozar [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=20230816065740.283407-3-tglozar@redhat.com \
    --to=tglozar@redhat.com \
    --cc=jkacur@redhat.com \
    --cc=linux-rt-users@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).