From: Andreas Mohr <andi@lisas.de>
To: Marton Balint <cus@fazekas.hu>
Cc: Andreas Mohr <andi@lisas.de>,
linux-kernel@vger.kernel.org, mingo@elte.hu,
peterz@infradead.org
Subject: Re: CPU scheduler weirdness?
Date: Thu, 13 Aug 2009 17:58:12 +0200 [thread overview]
Message-ID: <20090813155812.GA15714@rhlx01.hs-esslingen.de> (raw)
In-Reply-To: <alpine.LNX.2.00.0908131720050.8321@cinke.fazekas.hu>
Hi,
On Thu, Aug 13, 2009 at 05:39:10PM +0200, Marton Balint wrote:
>>> Does anybody have any idea what can cause this?
>>
>> /sys/devices/system/cpu/sched_smt_power_savings , perhaps?
>
> Thanks for the tip, tuning the sched_mc_power_savings setting helped! The
> original value of it was 0, but after setting it to 1, the two
> cpu-intensive processes got scheduled to different CPU cores, as
> expected.
Heh, I did expect it to not help, and indeed that thing helping in this
way points to a... BUG, plain and simple.
http://lwn.net/Articles/297306/
lists possible settings as
"
The power savings and performance of the given workload in an under
utilised system can be controlled by setting values of 0, 1 or 2 to
/sys/devices/system/cpu/sched_mc_power_savings with 0 being highest
performance and least power savings and level 2 indicating maximum
power savings even at the cost of slight performance degradation.
"
which is exactly opposite to what I'd have expected to be normal,
unconfigured behaviour in your case.
> Setting it back to 0 casused the two cpu-intensive processes to run on
> the same CPU again. So I guess I will just set it to 1 after booting the
> system.
...which would indicate a level=1 or level=2 (maximum powersaving)
behaviour. Something either seems reversed or really weird.
But it could just be opaque if correct behaviour due to a much more complex
load balancing algo in the scheduler or so.
Comments, anyone?
Andreas Mohr
next prev parent reply other threads:[~2009-08-13 15:58 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-13 0:58 Marton Balint
2009-08-13 8:42 ` Andreas Mohr
2009-08-13 15:39 ` Marton Balint
2009-08-13 15:58 ` Andreas Mohr [this message]
2009-08-18 19:49 ` Marton Balint
2009-08-19 7:04 ` Peter Zijlstra
2009-08-19 12:01 ` Marton Balint
2009-08-19 12:10 ` Peter Zijlstra
2009-08-19 12:34 ` Marton Balint
2009-08-19 18:42 ` Peter Zijlstra
2009-08-20 0:10 ` Marton Balint
2009-08-20 10:56 ` Ingo Molnar
2009-08-20 16:56 ` Marton Balint
2009-08-29 14:15 ` Marton Balint
2009-09-03 21:57 ` Marton Balint
2009-09-04 6:26 ` Mike Galbraith
2009-09-04 7:53 ` Marton Balint
2009-09-04 12:26 ` Mike Galbraith
2009-09-04 8:40 ` Peter Zijlstra
2009-09-04 12:40 ` Ingo Molnar
2009-09-04 15:31 ` Marton Balint
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=20090813155812.GA15714@rhlx01.hs-esslingen.de \
--to=andi@lisas.de \
--cc=cus@fazekas.hu \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=peterz@infradead.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 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®