sched: fix vslice
vslice was missing a factor NICE_0_LOAD, as weight is in weight*NICE_0_LOAD units. the effect of this bug was larger initial slices and thus latency-noisier forks. Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
dbeeb816e8
commit
10b777246c
1 changed files with 1 additions and 0 deletions
|
@ -259,6 +259,7 @@ static u64 __sched_vslice(unsigned long rq_weight, unsigned long nr_running)
|
||||||
{
|
{
|
||||||
u64 vslice = __sched_period(nr_running);
|
u64 vslice = __sched_period(nr_running);
|
||||||
|
|
||||||
|
vslice *= NICE_0_LOAD;
|
||||||
do_div(vslice, rq_weight);
|
do_div(vslice, rq_weight);
|
||||||
|
|
||||||
return vslice;
|
return vslice;
|
||||||
|
|
Loading…
Reference in a new issue