* [PATCH 0/2] rteval: Default to higher cyclictest bucket count on non-RT kernels
@ 2023-08-16 6:57 Tomas Glozar
2023-08-16 6:57 ` [PATCH 1/2] rteval: Support custom argument default value help Tomas Glozar
2023-08-16 6:57 ` [PATCH 2/2] rteval: Set higher cyclictest bucket count on non-RT kernels Tomas Glozar
0 siblings, 2 replies; 3+ messages in thread
From: Tomas Glozar @ 2023-08-16 6:57 UTC (permalink / raw)
To: linux-rt-users; +Cc: jkacur, Tomas Glozar
When running rteval on non-RT systems, the default number of cyclictest
buckets is not enough to get useful statistics out of it.
To make testing of rteval easier on such systems, this patchset
proposes to set the default value of --cyclictest-buckets to 50000
when a non-RT kernel is detected.
This is a value that should, at least when tested on my machine,
not overflow in a typical run on a non-RT kernel.
Tomas Glozar (2):
rteval: Support custom argument default value help
rteval: Set higher cyclictest bucket count on non-RT kernels
rteval/modules/__init__.py | 3 ++-
rteval/modules/measurement/cyclictest.py | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
--
2.41.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/2] rteval: Support custom argument default value help
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 ` Tomas Glozar
2023-08-16 6:57 ` [PATCH 2/2] rteval: Set higher cyclictest bucket count on non-RT kernels Tomas Glozar
1 sibling, 0 replies; 3+ messages in thread
From: Tomas Glozar @ 2023-08-16 6:57 UTC (permalink / raw)
To: linux-rt-users; +Cc: jkacur, Tomas Glozar
Add an optional default_value option to sets returned from
ModuleParameters to specify a different default value help text than
the value of default field.
This is useful for cases where the default value depends on
the environment
Signed-off-by: Tomas Glozar <tglozar@redhat.com>
---
rteval/modules/__init__.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/rteval/modules/__init__.py b/rteval/modules/__init__.py
index e7025ce..469d0f0 100644
--- a/rteval/modules/__init__.py
+++ b/rteval/modules/__init__.py
@@ -307,12 +307,13 @@ the information provided by the module"""
if default is None:
default = 'default' in s and s['default'] or None
+ default_text = s['default_text'] if 'default_text' in s else default
grparser.add_argument('--%s-%s' % (shortmod, o),
dest="%s___%s" % (shortmod, o),
action='store',
help='%s%s' % (descr,
- default and ' (default: %s)' % default or ''),
+ default and ' (default: %s)' % default_text or ''),
default=default,
metavar=metavar)
--
2.41.0
^ permalink raw reply related [flat|nested] 3+ messages in thread* [PATCH 2/2] rteval: Set higher cyclictest bucket count on non-RT kernels
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
1 sibling, 0 replies; 3+ messages in thread
From: Tomas Glozar @ 2023-08-16 6:57 UTC (permalink / raw)
To: linux-rt-users; +Cc: jkacur, Tomas Glozar
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
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-08-16 6:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` [PATCH 2/2] rteval: Set higher cyclictest bucket count on non-RT kernels Tomas Glozar
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).