Re: [PATCH v5] sched: Avoid unnecessary work in reweight_entity
From: Srivatsa Vaddagiri
Date: Sun Feb 26 2012 - 23:13:25 EST
* Michael Wang <wangyun@xxxxxxxxxxxxxxxxxx> [2012-02-25 21:56:18]:
> Hi, Peter
>
> I have collected more testing data, here is the test results:
>
> Machine: ThinkPad T420
> OS: Ubuntu 11.10
> Benchmark: time make -j14 (build kernel)
Is that benchmark run in root (cpu) cgroup? If so, reweight_entity() should not
kick in at all.
static void update_cfs_shares(struct cfs_rq *cfs_rq)
{
..
if (!se || throttled_hierarchy(cfs_rq))
return;
..
reweight_entity();
}
If you want to stress reweight_entity() create several (cpu) cgroups
and launch workload like kernbench in each of them ..
- vatsa
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/