Re: [PATCH 2/2] sched: Improve fairness of cpu allocation for task groups

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Ingo Molnar <mingo@...>
Cc: <dmitry.adamushko@...>, <a.p.zijlstra@...>, <dhaval@...>, <linux-kernel@...>, <efault@...>, <skumar@...>, Balbir Singh <balbir@...>
Date: Monday, November 19, 2007 - 11:03 am

On Mon, Nov 19, 2007 at 02:12:01PM +0100, Ingo Molnar wrote:

Hi Ingo,
	I would prefer this to go in 2.6.24 if possible. 2.6.24 would be the
first kernel to support a group scheduler in its entirety (user interface +
related support in scheduler) and also that works reasonably well :) It would 
also give me early test feedback.


From my inspection, here are the changes introduced by this patch
for !CONFIG_FAIR_GROUP_SCHED case:

- inc/dec_load() takes a load input instead of task pointer input as their
  2nd arg
- inc/dec_nr_running don't call inc/dec_load. Instead,
- enqueue/dequeue_task class callbacks call inc/dec_load
- [Unintended/will-fix change] min/max tunables added in
  /proc/sys/kernel

All of above changes (except last, which I will fix) should have zero
functional+runtime effect for !CONFIG_FAIR_GROUP_SCHED case. So I don't see how
I can split Patch 2/2 further.

Or do you prefer I introduce #ifdef's such that even these minor changes to 
inc/dec_load are avoided for !CONFIG_FAIR_GROUP_SCHED case? That would
make the code slightly ugly I suspect.

-- 
Regards,
vatsa
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/2] sched: Group scheduler related patches, Srivatsa Vaddagiri, (Mon Nov 19, 8:27 am)
[PATCH 2/2] sched: Improve fairness of cpu allocation for ta..., Srivatsa Vaddagiri, (Mon Nov 19, 8:30 am)
Re: [PATCH 2/2] sched: Improve fairness of cpu allocation fo..., Srivatsa Vaddagiri, (Mon Nov 19, 11:03 am)
Re: [PATCH 2/2] sched: Improve fairness of cpu allocation fo..., Srivatsa Vaddagiri, (Mon Nov 19, 12:06 pm)
[PATCH 0/4] sched: group scheduler related patches (V3), Srivatsa Vaddagiri, (Mon Nov 26, 1:00 am)
[Patch 4/4] sched: Improve fairness of cpu bandwidth allocat..., Srivatsa Vaddagiri, (Mon Nov 26, 1:09 am)
[Patch 0/5] sched: group scheduler related patches (V4), Srivatsa Vaddagiri, (Tue Nov 27, 1:06 am)
Re: [Patch 0/5] sched: group scheduler related patches (V4), Srivatsa Vaddagiri, (Tue Nov 27, 7:42 am)
Re: [Patch 0/5] sched: group scheduler related patches (V4), Srivatsa Vaddagiri, (Tue Nov 27, 10:32 am)
[Patch 5/5] sched: Improve fairness of cpu bandwidth allocat..., Srivatsa Vaddagiri, (Tue Nov 27, 1:27 am)
[Patch 4/5] sched: introduce a mutex and corresponding API t..., Srivatsa Vaddagiri, (Tue Nov 27, 1:21 am)
[Patch 3/5 v2] sched: change how cpu load is calculated, Srivatsa Vaddagiri, (Tue Nov 27, 1:12 am)
[Patch 3/5 v1] sched: change how cpu load is calculated, Srivatsa Vaddagiri, (Tue Nov 27, 1:11 am)
[Patch 2/5] sched: minor fixes for group scheduler, Srivatsa Vaddagiri, (Tue Nov 27, 1:09 am)
[Patch 1/5] sched: code cleanup, Srivatsa Vaddagiri, (Tue Nov 27, 1:08 am)
[Patch 3/4 v2] sched: change how cpu load is calculated, Srivatsa Vaddagiri, (Mon Nov 26, 1:06 am)
[Patch 3/4 v1] sched: change how cpu load is calculated, Srivatsa Vaddagiri, (Mon Nov 26, 1:05 am)
[PATCH 2/4] sched: minor fixes for group scheduler, Srivatsa Vaddagiri, (Mon Nov 26, 1:03 am)
[PATCH 1/4] sched: code cleanup, Srivatsa Vaddagiri, (Mon Nov 26, 1:02 am)
[PATCH 1/2] sched: Minor cleanups, Srivatsa Vaddagiri, (Mon Nov 19, 8:28 am)
Re: [PATCH 1/2] sched: Minor cleanups, Ingo Molnar, (Mon Nov 19, 9:08 am)
Re: [PATCH 1/2] sched: Minor cleanups, Srivatsa Vaddagiri, (Mon Nov 19, 11:01 am)