Re: [RFC][PATCH 0/6] Add group fairness to CFS - v1

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Srivatsa Vaddagiri
Date: Monday, June 11, 2007 - 10:50 pm

On Mon, Jun 11, 2007 at 09:37:35PM +0200, Ingo Molnar wrote:

ok. I am also most concerned about not upsetting current performance of
CFS when CONFIG_FAIR_GROUP_SCHED is turned off. Staging these patches in
incremental versions of CFS is a good idea to test that.


sure, i will rework them on this -v17 snapshot.


On Mon, Jun 11, 2007 at 09:39:31PM +0200, Ingo Molnar wrote:

I must be missing something here. AFAICS, cpu_load calculation still is
timer-interrupt driven in the -v17 snapshot you sent me. Besides, there
is no change in default value of bit 6 b/n v16 and v17:

-unsigned int sysctl_sched_features __read_mostly = 1 | 2 | 4 | 8 | 0 | 0;
+unsigned int sysctl_sched_features __read_mostly = 0 | 2 | 4 | 8 | 0 | 0;

So where's this precise stats based calculation of cpu_load?

Anyway, do you agree that splitting the cpu_load/nr_running fields so that:

rq->nr_running 	   	  = total count of -all- tasks in runqueue
rq->raw_weighted_load	  = total weight of -all- tasks in runqueue
rq->lrq.nr_running 	  = total count of SCHED_NORMAL/BATCH tasks in runqueue
rq->lrq.raw_weighted_load = total weight of SCHED_NORMAL/BATCH tasks in runqueue

is a good thing to avoid SCHED_RT<->SCHED_NORMAL/BATCH mixup (as accomplished 
in Patch #4)?

If you don't agree, then I will make this split dependent on
CONFIG_FAIR_GROUP_SCHED 


Just to be clear, by container patches, I am referring to "process" container
patches from Paul Menage [1]. They aren't necessarily tied to
"virtualization-related" container support in -mm tree, although I
believe that "virtualization-related" container patches will make use of the 
same "process-related" container patches for their task-grouping requirements. 
Phew ..we need better names!


One thing the current patches don't support is the notion of virtual
cpus (which Kirill and other "virtualization-related" container folks would 
perhaps want). IMHO, the current patches can still be usefull for
containers to load balance between those virtual cpus (as and when it is 
introduced).


thanks for this tip. Will try out and let you know how it fares for me.



References:

1.  https://lists.linux-foundation.org/pipermail/containers/2007-May/005261.html

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

Messages in current thread:
[RFC][PATCH 0/6] Add group fairness to CFS - v1, Srivatsa Vaddagiri, (Mon Jun 11, 8:47 am)
[RFC][PATCH 1/6] Introduce struct sched_entity and struct lrq, Srivatsa Vaddagiri, (Mon Jun 11, 8:50 am)
[RFC][PATCH 2/6] task's cpu information needs to be always ..., Srivatsa Vaddagiri, (Mon Jun 11, 8:52 am)
[RFC][PATCH 3/6] core changes in CFS, Srivatsa Vaddagiri, (Mon Jun 11, 8:53 am)
[RFC][PATCH 4/6] Fix (bad?) interactions between SCHED_RT ..., Srivatsa Vaddagiri, (Mon Jun 11, 8:55 am)
[RFC][PATCH 5/6] core changes for group fairness, Srivatsa Vaddagiri, (Mon Jun 11, 8:56 am)
[RFC][PATCH 6/6] Hook up to container infrastructure, Srivatsa Vaddagiri, (Mon Jun 11, 8:58 am)
Re: [RFC][PATCH 0/6] Add group fairness to CFS - v1, Srivatsa Vaddagiri, (Mon Jun 11, 9:02 am)
Re: [RFC][PATCH 0/6] Add group fairness to CFS - v1, Ingo Molnar, (Mon Jun 11, 12:37 pm)
Re: [RFC][PATCH 0/6] Add group fairness to CFS - v1, Ingo Molnar, (Mon Jun 11, 12:39 pm)
Re: [RFC][PATCH 3/6] core changes in CFS, Balbir Singh, (Mon Jun 11, 7:29 pm)
Re: [ckrm-tech] [RFC][PATCH 1/6] Introduce struct sched_en ..., Srivatsa Vaddagiri, (Mon Jun 11, 8:52 pm)
Re: [RFC][PATCH 3/6] core changes in CFS, Srivatsa Vaddagiri, (Mon Jun 11, 9:22 pm)
Re: [RFC][PATCH 0/6] Add group fairness to CFS - v1, Srivatsa Vaddagiri, (Mon Jun 11, 10:50 pm)
Re: [RFC][PATCH 0/6] Add group fairness to CFS - v1, Ingo Molnar, (Mon Jun 11, 11:26 pm)
Re: [RFC][PATCH 4/6] Fix (bad?) interactions between SCHED ..., Srivatsa Vaddagiri, (Tue Jun 12, 3:26 am)
Re: [RFC][PATCH 4/6] Fix (bad?) interactions between SCHED ..., Srivatsa Vaddagiri, (Tue Jun 12, 6:30 am)
Re: [RFC][PATCH 4/6] Fix (bad?) interactions between SCHED ..., Srivatsa Vaddagiri, (Tue Jun 12, 8:43 am)
Re: [RFC][PATCH 5/6] core changes for group fairness, Dmitry Adamushko, (Wed Jun 13, 1:56 pm)
Re: [RFC][PATCH 5/6] core changes for group fairness, Srivatsa Vaddagiri, (Thu Jun 14, 5:06 am)
Re: [RFC][PATCH 0/6] Add group fairness to CFS - v1, Kirill Korotaev, (Fri Jun 15, 5:46 am)
Re: [RFC][PATCH 0/6] Add group fairness to CFS - v1, Srivatsa Vaddagiri, (Fri Jun 15, 7:06 am)