From: Kyle Moffett <mrmacman_g4@mac.com>
To: Micah Dowty <micah@vmware.com>
Cc: Cyrus Massoumi <cyrusm@gmx.net>,
LKML Kernel <linux-kernel@vger.kernel.org>,
Ingo Molnar <mingo@elte.hu>, Andrew Morton <akpm@osdl.org>,
Mike Galbraith <efault@gmx.de>, Paul Menage <menage@google.com>
Subject: Re: High priority tasks break SMP balancer?
Date: Thu, 15 Nov 2007 13:48:20 -0500 [thread overview]
Message-ID: <2FAA6826-653E-482F-A037-C539BAEEA1DA@mac.com> (raw)
In-Reply-To: <20071110001103.GD16250@vmware.com>
First of all, since Ingo Molnar seems to be one of the head scheduler
gurus, you might CC him on this. Also added a couple other useful
CCs for regression reports.
On Nov 09, 2007, at 19:11:03, Micah Dowty wrote:
> As I said, YMMV. I haven't been able to find a single set of
> parameters for the demo program which cause the problem to occur
> 100% of the time on all systems.
>
> In general, boosting the MAINTHREAD_PRIORITY even more and
> increasing the WAKE_HZ should exaggerate the problem. These
> parameters reproduce the problem very reliably on my system:
>
> #define NUM_BUSY_THREADS 2
> #define MAINTHREAD_PRIORITY -20
> #define MAINTHREAD_WAKE_HZ 1024
> #define MAINTHREAD_LOAD_PERCENT 5
> #define MAINTHREAD_LOAD_CYCLES 2
Well from these statistics; if you are requesting wakeups that often
then it is probably *not* correct to try to move another thread to
that CPU in the mean-time. Essentially the migration cost will
likely far outweigh the advantage of letting it run a little bit of
extra time, and in addition it will dump out cache from the high-
priority thread. As per the description I think that an increased a
priority and increased WAKE_HZ will certainly cause the "problem" to
occur more, simply because it reduces the time between wakeups of the
high-priority process and makes it less helpful to migrate another
process over to that CPU during the sleep periods. This will also
depend on your hardware and possibly other configuration parameters.
I'm not really that much of an expert in this particular area,
though, so it's entirely possible that one of the above-mentioned
scheduler head-honchos will poke holes in my argument and give a
better explanation or a possible patch.
Cheers,
Kyle Moffett
next prev parent reply other threads:[~2007-11-15 18:49 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-09 22:34 Micah Dowty
2007-11-09 23:56 ` Cyrus Massoumi
2007-11-10 0:11 ` Micah Dowty
2007-11-14 18:39 ` Micah Dowty
2007-11-15 18:48 ` Kyle Moffett [this message]
2007-11-15 19:14 ` Micah Dowty
2007-11-15 20:07 ` Christoph Lameter
2007-11-15 20:24 ` Micah Dowty
2007-11-15 21:28 ` Christoph Lameter
2007-11-15 21:35 ` Micah Dowty
2007-11-16 2:31 ` Christoph Lameter
2007-11-16 2:44 ` Micah Dowty
2007-11-16 6:07 ` Ingo Molnar
2007-11-16 9:19 ` Micah Dowty
2007-11-16 10:45 ` Ingo Molnar
2007-11-16 10:48 ` Micah Dowty
2007-11-16 22:12 ` Christoph Lameter
2007-11-16 10:48 ` Dmitry Adamushko
2007-11-16 22:14 ` Micah Dowty
2007-11-16 23:26 ` Dmitry Adamushko
2007-11-17 1:03 ` Micah Dowty
2007-11-17 19:10 ` Dmitry Adamushko
2007-11-19 18:51 ` Micah Dowty
2007-11-19 22:22 ` Dmitry Adamushko
2007-11-19 23:05 ` Micah Dowty
2007-11-20 5:57 ` Ingo Molnar
2007-11-20 18:06 ` Micah Dowty
2007-11-20 21:47 ` Dmitry Adamushko
2007-11-22 7:46 ` Micah Dowty
2007-11-22 12:53 ` Dmitry Adamushko
2007-11-26 19:44 ` Micah Dowty
2007-11-27 9:21 ` Dmitry Adamushko
2007-11-27 17:13 ` Micah Dowty
2007-11-16 19:13 ` David Newall
2007-11-16 21:38 ` Micah Dowty
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=2FAA6826-653E-482F-A037-C539BAEEA1DA@mac.com \
--to=mrmacman_g4@mac.com \
--cc=akpm@osdl.org \
--cc=cyrusm@gmx.net \
--cc=efault@gmx.de \
--cc=linux-kernel@vger.kernel.org \
--cc=menage@google.com \
--cc=micah@vmware.com \
--cc=mingo@elte.hu \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®