diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2009-07-27 14:04:49 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-08-02 14:26:06 +0200 |
commit | a5004278f0525dcb9aa43703ef77bf371ea837cd (patch) | |
tree | d4beb94aa2e454a6d23425cac856654e507541a1 /kernel/audit_tree.c | |
parent | 8e9ed8b02490fea577b1eb1704c05bf43c891ed7 (diff) | |
download | blackbird-op-linux-a5004278f0525dcb9aa43703ef77bf371ea837cd.tar.gz blackbird-op-linux-a5004278f0525dcb9aa43703ef77bf371ea837cd.zip |
sched: Fix cgroup smp fairness
Commit ec4e0e2fe018992d980910db901637c814575914 ("fix
inconsistency when redistribute per-cpu tg->cfs_rq shares")
broke cgroup smp fairness.
In order to avoid starvation of newly placed tasks, we never
quite set the share of an empty cpu group-task to 0, but
instead we set it as if there's a single NICE-0 task present.
If however we actually set this in cfs_rq[cpu]->shares, that
means the total shares for that group will be slightly inflated
every time we balance, causing the observed unfairness.
Fix this by setting cfs_rq[cpu]->shares to 0 but actually
setting the effective weight of the related se to the inflated
number.
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <1248696557.6987.1615.camel@twins>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/audit_tree.c')
0 files changed, 0 insertions, 0 deletions