public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [RFC] sched/starvation: Add disclaimer for virtualized/emulated environments
@ 2025-01-20 10:28 Alessandro Carminati
  2025-01-20 14:24 ` Petr Vorel
  0 siblings, 1 reply; 5+ messages in thread
From: Alessandro Carminati @ 2025-01-20 10:28 UTC (permalink / raw)
  To: Petr Vorel; +Cc: Alessandro Carminati, Alessandro Carminati, ltp

This patch adds a disclaimer message to the starvation test case, warning
users against running the test in virtualized or emulated environments.
The test produces expected results only on bare-metal systems and is prone
to failure when executed in non-bare-metal setups.

While detecting virtualization or emulation is possible in some cases,
the methods are unreliable.
Rather than attempting to prevent the test from running in such
environments, this patch provides a warning to inform users of the
limitations.

Change:
- Added a TINFO message to notify users that the test should be run
  on bare-metal systems for meaningful results.

Signed-off-by: Alessandro Carminati <acarmina@redhat.com>
---
 testcases/kernel/sched/cfs-scheduler/starvation.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/testcases/kernel/sched/cfs-scheduler/starvation.c b/testcases/kernel/sched/cfs-scheduler/starvation.c
index c620c9c3e..b779a5f0a 100644
--- a/testcases/kernel/sched/cfs-scheduler/starvation.c
+++ b/testcases/kernel/sched/cfs-scheduler/starvation.c
@@ -115,6 +115,9 @@ static void setup(void)
 	if (tst_has_slow_kconfig())
 		tst_brk(TCONF, "Skip test due to slow kernel configuration");
 
+	tst_res(TINFO, "This test is designed to run on bare-metal systems. "
+		"Running it in a virtualized or emulated environment may produce unreliable results.");
+
 	tst_set_runtime(timeout);
 }
 
-- 
2.34.1


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-01-28  9:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-20 10:28 [LTP] [RFC] sched/starvation: Add disclaimer for virtualized/emulated environments Alessandro Carminati
2025-01-20 14:24 ` Petr Vorel
2025-01-22  8:52   ` Alessandro Carminati
2025-01-27 15:35     ` Petr Vorel
2025-01-28  9:50       ` Alessandro Carminati

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox