Re: [RFC][PATCH 5/6] core changes for group fairness

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Dmitry Adamushko
Date: Wednesday, June 13, 2007 - 1:56 pm

On 11/06/07, Srivatsa Vaddagiri <vatsa@linux.vnet.ibm.com> wrote:

a few things that catched my eye, please see below:



IMHO, it looks a bit frightening :) maybe it would be possible to
create a structure that combines some relevant argumens .. at least,
the last 3 ones.



I think, there is a possible problem here. If I'm not complete wrong,
this function (move_tasks() in the current mainline) can move more
'load' than specified by the 'max_load_move'..

as a result, e.g. in the following code :


can become negative.. and as it's 'unsigned' --> a huge positive number..


'(long)max_load_move > 0'      ?

the same is applicable to a few other similar cases below :

                    ..........

here



'(long)rem_load_move <= 0'

and I think somewhere else in the code.



-- 
Best regards,
Dmitry Adamushko
-
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)