From: "Dmitry Adamushko" <dmitry.adamushko@gmail.com>
To: "Micah Dowty" <micah@vmware.com>
Cc: "Ingo Molnar" <mingo@elte.hu>,
"Christoph Lameter" <clameter@sgi.com>,
"Kyle Moffett" <mrmacman_g4@mac.com>,
"Cyrus Massoumi" <cyrusm@gmx.net>,
"LKML Kernel" <linux-kernel@vger.kernel.org>,
"Andrew Morton" <akpm@osdl.org>, "Mike Galbraith" <efault@gmx.de>,
"Paul Menage" <menage@google.com>,
"Peter Williams" <pwil3058@bigpond.net.au>
Subject: Re: High priority tasks break SMP balancer?
Date: Sat, 17 Nov 2007 00:26:41 +0100 [thread overview]
Message-ID: <b647ffbd0711161526p2faf5abt2457084f1996c735@mail.gmail.com> (raw)
In-Reply-To: <20071116221404.GC31527@vmware.com>
On 16/11/2007, Micah Dowty <micah@vmware.com> wrote:
> [ ... ]
> > or just remove bit #3 (which is responsible for 8 == 1000) here:
> >
> > cat /proc/sys/kernel/sched_features
> >
> > (this one is enabled by default in 2.6.23.1)
>
> Aha. Turning off bit 3 appears to instantly fix my problem while it's
> occurring in an existing process, and I can't reproduce it on any new
> processes afterward.
humm... ok, but considering your recent summary for various kernels...
I guess, it doesn't qualify as the primary suspect... it just likely
affects something else.
>
> > cpu_1 : 2-3 nice(0) cpu-hog tasks ;
> >
> > both cpus may be seen with similar rq->load_cpu[]...
>
> When I try this, cpu0 has a cpu_load[] of over 10000 and cpu1 has a
> load of 2048 or so.
yeah, one of the options for 2048 would be presence of 2 nice(0)
cpu-hogs (1024 is the weight for a nice(0) task).
> > yeah, one would
> > argue that one of the cpu hogs could be migrated to cpu_0 and consume
> > remaining 'time slots' and it would not "disturb" the nice(-20) task
> > as :
> > it's able to preempt the lower prio task whenever it want (provided,
> > fine-grained kernel preemption) and we don't care that much of
> > trashing of caches here.
>
> Yes, that's the behaviour I expected to see (and what my application
> would prefer).
yep, that's what load_balance_newidle() is about... so maybe there are
some factors resulting in its inconsistency/behavioral differences on
different kernels.
Let's say we change a pattern for the niced task: e.g. run for 100 ms.
and then sleep for 300 ms. (that's ~25% of cpu load) in the loop. Any
behavioral changes?
>
> Thanks much,
> --Micah
>
--
Best regards,
Dmitry Adamushko
next prev parent reply other threads:[~2007-11-16 23:27 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
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 [this message]
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=b647ffbd0711161526p2faf5abt2457084f1996c735@mail.gmail.com \
--to=dmitry.adamushko@gmail.com \
--cc=akpm@osdl.org \
--cc=clameter@sgi.com \
--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 \
--cc=mrmacman_g4@mac.com \
--cc=pwil3058@bigpond.net.au \
/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®