From: Michael Wang <wangyun@linux.vnet.ibm.com>
To: Srivatsa Vaddagiri <vatsa@linux.vnet.ibm.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>,
Ingo Molnar <mingo@elte.hu>, LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v5] sched: Avoid unnecessary work in reweight_entity
Date: Mon, 27 Feb 2012 13:07:28 +0800 [thread overview]
Message-ID: <4F4B0F90.6050601@linux.vnet.ibm.com> (raw)
In-Reply-To: <20120227041259.GA2331@linux.vnet.ibm.com>
On 02/27/2012 12:12 PM, Srivatsa Vaddagiri wrote:
> * 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)
>
Hi, Vatsa
Thanks for your reply :)
> Is that benchmark run in root (cpu) cgroup? If so, reweight_entity() should not
> kick in at all.
That's right, if no children group, 'reweight_entity' won't be called, so I have
created a cpuset group under root group named 'rg1', and created a memory group
under 'rg1' named 'sub', I attached the current shell to the 'sub' cgroup.
But I haven't changed any param under the new cgroup, don't know whether that will
cause some trouble or not? I suppose it could using some default value...
>
> 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 ..
Thanks for your suggestion, now I see that only using 1 children group is really
not enough, I think I should try another round of test with kernbench, and also
I was suggested to use oprofile to trace the 'reweight_entity', wish I can get
some real proof from them.
Regards,
Michael Wang
>
> - vatsa
next prev parent reply other threads:[~2012-02-27 5:07 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-06 9:37 [PATCH] sched: Avoid unnecessary work in reweight_entity Michael Wang
2012-02-06 10:31 ` Michael Wang
2012-02-07 2:18 ` Michael Wang
2012-02-07 2:36 ` [PATCH v2] " Michael Wang
2012-02-08 2:10 ` [PATCH v3] sched: " Michael Wang
2012-02-16 14:14 ` [PATCH v4] " Michael Wang
2012-02-16 14:29 ` Peter Zijlstra
2012-02-17 2:28 ` Michael Wang
2012-02-17 6:03 ` [PATCH v5] " Michael Wang
2012-02-18 1:43 ` Michael Wang
2012-02-20 13:08 ` Peter Zijlstra
2012-02-23 10:40 ` Michael Wang
2012-02-24 2:08 ` Michael Wang
2012-02-25 13:56 ` Michael Wang
2012-02-27 4:12 ` Srivatsa Vaddagiri
2012-02-27 5:07 ` Michael Wang [this message]
2012-02-27 5:10 ` Srivatsa Vaddagiri
2012-02-27 6:21 ` Michael Wang
2012-02-27 6:44 ` Srivatsa Vaddagiri
2012-02-16 14:32 ` [PATCH v4] " Michael Wang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F4B0F90.6050601@linux.vnet.ibm.com \
--to=wangyun@linux.vnet.ibm.com \
--cc=a.p.zijlstra@chello.nl \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=vatsa@linux.vnet.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.