Skip to content

sched_football: Re-add crazy fans and other cleanups

John Stultz via ltp ltp 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 1 replyIn review
  2. v16 patches 21 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6sched_football: Drop use of sched_yeild()testcases/realtime/func/sched_football/sched_football.c+4 -60 replies
2/6sched_football: Use atomic operations for balltestcases/realtime/func/sched_football/sched_football.c+11 -100 replies
3/6sched_football: Re-add the crazy fans to interrupt everyonetestcases/realtime/func/sched_football/sched_football.c+50 -80 replies
4/6sched_football: Add a sleep before the game begins to get into steady statetestcases/realtime/func/sched_football/sched_football.c+2 -00 replies
5/6sched_football: Add prctrl calls to set thread commstestcases/realtime/func/sched_football/sched_football.c+5 -00 replies
6/6sched_football: Add trace_marker messages if we're tracingtestcases/realtime/func/sched_football/sched_football.c testcases/realtime/include/librttest.h testcases/realtime/lib/librttest.c+50 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [LTP] [PATCH v2 0/6] sched_football: Re-add crazy fans and other cleanups

Just the other day (~18 years ago), I had implemented the sched_football test to validate the RT scheduling invariant that we always run the top NR_CPU priority tasks at any time.

That early version of the test included crazy fans, which disrupted the scheduling of the defensive threads. This was later removed from the test, likely due to occasional failures seen with it.

Recently, in testing the behavior of a scheduler patch I was working on I started tinkering with this test again, and found when I re-added the crazy fans, I could reproduce an actual scheduling problem with the vanilla kernel.

So I wanted to submit these changes to re-add the crazy fans along with some other cleanups and improvements to make it easier to use with tracing, so that the test can be used by others to reproduce this problem.

New in v2 (thank you for the feedback!):
* Rework to use tst_atomic* methods instead of atomic_t suggested by Cyril
* Remove unused variables
* Drop changelog comment as suggested by Cyril
* Rework to use tst_atomic_* functions as suggested by Cyril
* Rework to use tst_timespec* functions as suggested by Cyril
* Pulled trace marker writing out into librttest helper functions as suggested by Cyril

thanks
-john

Cc Cyril Hrubis <[email protected]>
Cc Darren Hart <[email protected]>

John Stultz (6):
sched_football: Drop use of sched_yeild()
sched_football: Use atomic operations for ball
sched_football: Re-add the crazy fans to interrupt everyone
sched_football: Add a sleep before the game begins to get into steady
state
sched_football: Add prctrl calls to set thread comms
sched_football: Add trace_marker messages if we're tracing

 .../func/sched_football/sched_football.c      | 95 +++++++++++++++----
 testcases/realtime/include/librttest.h        | 13 +++
 testcases/realtime/lib/librttest.c            | 32 +++++++
 3 files changed, 119 insertions(+), 21 deletions(-)
Signature · 5 lines
2.45.2.741.gdbec12cfda-goog


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