Skip to content

RT balance updates against sched-devel

Steven Rostedt lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest4 patches 1 replyIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4Replace hooks with pre/post schedule and wakeup methodsinclude/linux/sched.h kernel/sched.c kernel/sched_rt.c+26 -140 replies
2/4added methods for sched_class changesinclude/linux/sched.h kernel/sched.c kernel/sched_fair.c +2 more+186 -220 replies
3/4SCHED - Only adjust overload state when changingkernel/sched_rt.c+5 -30 replies
4/4Subject: SCHED - Clean up some old cpuset logickernel/sched_rt.c+0 -330 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH 0/4 v2] RT balance updates against sched-devel

[Sorry if this is a repost, but I had a problem with quilt mail, and
I don't know if my original post made it out. Unfortunately, I didn't save the original "prolog" file, and so this has to be rewritten from scratch, and I don't even remember the original subject :-/ ]

This patch series goes against Ingo's sched-devel git tree.

The first patch addresses Ingo's concerns about having hooks in the main sched.c and replaces them with generic methods that any class may use. The methods are: pre_schedule, post_schedule and task_wake_up; which is called before the schedule, after a context switch and when a task wakes up respectively. The are surrounded by ifdef CONFIG_SMP since they are currently only used by sched_rt in SMP mode. But if this appears to be applicable to other sched_classes in UP, then I can rerun this series without the ifdefs.

The second patch addresses the concerns that Dmitry brought up showing that the current RT balancing neglected to handle changes in prio and classes from sched_setscheduler and rt_mutex_setprio. The added methods
are: switched_to, switched_from and prio_changed; these are called in the when a task is assigned a new sched_class, after it leaves a sched_class, and when it changes its prio respectively.

The last two patches are from Gregory Haskins where he cleaned up left over changes that were from previous versions of the balancing code.

-- Steve