From: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
To: Peter Zijlstra <peterz@infradead.org>
Cc: Rik van Riel <riel@redhat.com>, Jason Low <jason.low2@hp.com>,
Ingo Molnar <mingo@redhat.com>,
LKML <linux-kernel@vger.kernel.org>,
Mike Galbraith <efault@gmx.de>,
Thomas Gleixner <tglx@linutronix.de>,
Paul Turner <pjt@google.com>, Alex Shi <alex.shi@intel.com>,
Preeti U Murthy <preeti@linux.vnet.ibm.com>,
Vincent Guittot <vincent.guittot@linaro.org>,
Morten Rasmussen <morten.rasmussen@arm.com>,
Namhyung Kim <namhyung@kernel.org>,
Andrew Morton <akpm@linux-foundation.org>,
Kees Cook <keescook@chromium.org>, Mel Gorman <mgorman@suse.de>,
aswin@hp.com, scott.norton@hp.com, chegu_vinod@hp.com
Subject: Re: [RFC] sched: Limit idle_balance() when it is being used too frequently
Date: Thu, 18 Jul 2013 18:36:37 +0530 [thread overview]
Message-ID: <20130718130637.GA5138@linux.vnet.ibm.com> (raw)
In-Reply-To: <20130718123531.GO27075@twins.programming.kicks-ass.net>
* Peter Zijlstra <peterz@infradead.org> [2013-07-18 14:35:31]:
> On Thu, Jul 18, 2013 at 05:45:46PM +0530, Srikar Dronamraju wrote:
> > We take locks if and only if we see imbalance and want to pull the
> > tasks.
> > However if the newly idle balance is not finding an imbalance then this
> > may not be an issue.
> >
> > Probably /proc/schedstats will give a better picture.
>
> Right, so we're interested in move_tasks() calls that fail to 'deliver'.
> There's a few conditions in there that can cause us to not move a task,
> most of them not counted.
>
> The few that are; are from can_mirgrate_task():
>
> se.statistics.nr_failed_migrations_affine
> se.statistics.nr_failed_migrations_running
> se.statistics.nr_failed_migrations_hot
>
> If we see significant increments on those we'll be taking locks.
>
Agree.
Even I think number of times no busy group was found, number of times no
busy queue was found also will tell us that locks are not being taken.
In schedstats, I generally see them as overwhelming majority.
> The only one I can see a good way around is the hot one, we could ignore
> hotness in favour of newidle -- although I could see that being
> detrimental, we'll just have to try or so ;-)
>
> _running shouldn't be much of a problem since we don't bother if
> nr_running <= 1. And _affine is out of our reach anyway.
>
--
Thanks and Regards
Srikar Dronamraju
next prev parent reply other threads:[~2013-07-18 13:09 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-16 19:21 [RFC] sched: Limit idle_balance() when it is being used too frequently Jason Low
2013-07-16 19:27 ` Rik van Riel
2013-07-16 20:20 ` Peter Zijlstra
2013-07-16 22:48 ` Jason Low
2013-07-17 7:25 ` Peter Zijlstra
2013-07-17 7:48 ` Peter Zijlstra
2013-07-17 8:11 ` Jason Low
2013-07-17 9:39 ` Peter Zijlstra
2013-07-17 15:59 ` Jason Low
2013-07-17 16:18 ` Peter Zijlstra
2013-07-17 17:51 ` Rik van Riel
2013-07-17 18:01 ` Peter Zijlstra
2013-07-17 18:48 ` Jason Low
2013-07-18 4:02 ` Jason Low
2013-07-18 9:32 ` Peter Zijlstra
2013-07-18 11:59 ` Rik van Riel
2013-07-18 12:15 ` Srikar Dronamraju
2013-07-18 12:35 ` Peter Zijlstra
2013-07-18 13:06 ` Srikar Dronamraju [this message]
2013-07-18 19:06 ` Jason Low
2013-07-19 18:37 ` Peter Zijlstra
2013-07-19 19:15 ` Jason Low
2013-07-18 12:12 ` Srikar Dronamraju
2013-07-18 19:03 ` Jason Low
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=20130718130637.GA5138@linux.vnet.ibm.com \
--to=srikar@linux.vnet.ibm.com \
--cc=akpm@linux-foundation.org \
--cc=alex.shi@intel.com \
--cc=aswin@hp.com \
--cc=chegu_vinod@hp.com \
--cc=efault@gmx.de \
--cc=jason.low2@hp.com \
--cc=keescook@chromium.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mgorman@suse.de \
--cc=mingo@redhat.com \
--cc=morten.rasmussen@arm.com \
--cc=namhyung@kernel.org \
--cc=peterz@infradead.org \
--cc=pjt@google.com \
--cc=preeti@linux.vnet.ibm.com \
--cc=riel@redhat.com \
--cc=scott.norton@hp.com \
--cc=tglx@linutronix.de \
--cc=vincent.guittot@linaro.org \
/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.