lkml.org 
[lkml]   [2012]   [Feb]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v5] sched: Avoid unnecessary work in reweight_entity
* Michael Wang <wangyun@linux.vnet.ibm.com> [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



\
 
 \ /
  Last update: 2012-02-27 05:15    [W:0.057 / U:0.360 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site