public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] sched_rr_get_interval01 depends on particular CONFIG_HZ value
@ 2023-07-18 11:40 Petr Vorel
  2023-07-18 13:48 ` Cyril Hrubis
  0 siblings, 1 reply; 5+ messages in thread
From: Petr Vorel @ 2023-07-18 11:40 UTC (permalink / raw)
  To: ltp

Hi,

sched_rr_get_interval01.c depends on particular CONFIG_HZ value.
Recent change in openSUSE kernel from the default 250 to 300 breaks it:

sched_rr_get_interval01.c:57: TPASS: sched_rr_get_interval() passed
sched_rr_get_interval01.c:64: TPASS: Time quantum 0s 99999990ns
sched_rr_get_interval01.c:72: TFAIL: /proc/sys/kernel/sched_rr_timeslice_ms != 100 got 90
sched_rr_get_interval01.c:57: TPASS: sched_rr_get_interval() passed
sched_rr_get_interval01.c:64: TPASS: Time quantum 0s 99999990ns
sched_rr_get_interval01.c:72: TFAIL: /proc/sys/kernel/sched_rr_timeslice_ms != 100 got 90

According to kernel/Kconfig.hz CONFIG_HZ can have various values (100, 250, 300,
1000). Should we adapt the test to expect any of these? Or should we require
kernel config to read CONFIG_HZ value and check for correct value?

Kind regards,
Petr

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

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

end of thread, other threads:[~2023-07-19  9:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-18 11:40 [LTP] sched_rr_get_interval01 depends on particular CONFIG_HZ value Petr Vorel
2023-07-18 13:48 ` Cyril Hrubis
2023-07-18 14:04   ` Cyril Hrubis
2023-07-18 14:37     ` Cyril Hrubis
2023-07-19  9:28       ` Jiri Bohac

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