From: Pawel Dziekonski <dzieko@gmail.com>
To: Ingo Molnar <mingo@elte.hu>
Cc: Mike Galbraith <efault@gmx.de>,
Peter Zijlstra <peterz@infradead.org>,
linux-kernel@vger.kernel.org
Subject: Re: CPU scheduler question/problem
Date: Tue, 27 Jan 2009 17:04:07 +0100 [thread overview]
Message-ID: <2cd4df870901270804p75822471odca6f5d66b9d33fa@mail.gmail.com> (raw)
In-Reply-To: <20090126225545.GA1330@elte.hu>
2009/1/26 Ingo Molnar <mingo@elte.hu>:
>
> * Pawel Dziekonski <dzieko@gmail.com> wrote:
>
>> 2009/1/23 Peter Zijlstra <peterz@infradead.org>:
>>
>> > The pipe workload you mentioned has would behave that way because pipes
>> > 'assume' a produces/consumer behaviour, and thus are more likely to
>> > place both tasks on the same cpu -- but will eventually pull them apart
>> > if they want to run concurrently.
>> >
>> > You might enable SCHED_DEBUG=y and try
>> > echo NO_SYNC_WAKEUPS > /debug/sched_features
>>
>> Hello,
>>
>> that did the trick. Openssl now gets a whole core exclusively and gives
>> full performance.
>>
>> Regarding quantum chemistry application -- it is also using pipes for
>> communication between worker processes. Now this app works OK.
>
> Could you please try the fuller fix below too please, does it still do the
> trick and does the scheduler still maximize openssl and your quantum
> chemistry app's throughput?
>
> There should be no need for you to tune anything - the scheduler must get
> such workloads right out of the box.
hello,
After contacting Ingo directly I downloaded tip/master kernel tree via
http://people.redhat.com/mingo/tip.git/README.
after reboot SYNC_WAKEUPS is enabled by default and my openssl
benchmark is still
stuck on one core:
# uname -a
Linux MiP 2.6.29-rc2 #1 SMP Tue Jan 27 16:03:29 CET 2009 x86_64 x86_64
x86_64 GNU/Linux
# cat /sys/kernel/debug/sched_features
NEW_FAIR_SLEEPERS NO_NORMALIZED_SLEEPER ADAPTIVE_GRAN WAKEUP_PREEMPT
START_DEBIT AFFINE_WAKEUPS CACHE_HOT_BUDDY SYNC_WAKEUPS NO_HRTICK
NO_DOUBLE_TICK ASYM_GRAN LB_BIAS LB_WAKEUP_UPDATE ASYM_EFF_LOAD
NO_WAKEUP_OVERLAP LAST_BUDDY OWNER_SPIN
# pidstat
16:20:43 PID %usr %system %guest %CPU CPU Command
16:20:44 4992 0.00 2.00 0.00 2.00 4 dd
16:20:44 4993 81.00 6.00 0.00 87.00 4 openssl
16:20:44 4994 3.00 9.00 0.00 12.00 4 pv
> Also, does
> the slowdown go away (if SYNC_WAKEUPS is enabled) if you reduce/increase
> /proc/sys/kernel/sched_migration_cost?
I tested values of 100000, 500000 (default), 999999. in all cases 3
processes stay together on the same core and are jumping together
between different cores:
# pidstat 1
16:27:07 PID %usr %system %guest %CPU CPU Command
16:27:08 4992 0.00 1.00 0.00 1.00 0 dd
16:27:08 4993 78.00 6.00 0.00 84.00 0 openssl
16:27:08 4994 2.00 12.00 0.00 14.00 0 pv
16:27:08 PID %usr %system %guest %CPU CPU Command
16:27:09 4992 0.00 2.00 0.00 2.00 4 dd
16:27:09 4993 83.00 3.00 0.00 86.00 4 openssl
16:27:09 4994 3.00 9.00 0.00 12.00 4 pv
However value of "1" works:
16:30:08 PID %usr %system %guest %CPU CPU Command
16:30:09 6197 0.00 4.00 0.00 4.00 2 dd
16:30:09 6198 94.00 7.00 0.00 101.00 1 openssl
16:30:09 6199 2.00 15.00 0.00 17.00 0 pv
regards, Pawel
next prev parent reply other threads:[~2009-01-27 16:04 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-22 21:34 Pawel Dziekonski
2009-01-23 15:40 ` Peter Zijlstra
2009-01-26 13:48 ` Pawel Dziekonski
2009-01-26 13:55 ` Peter Zijlstra
2009-01-26 22:55 ` Ingo Molnar
2009-01-27 16:04 ` Pawel Dziekonski [this message]
[not found] <2cd4df870902031544h5f0b4e59na2c0a0804125dd9a@mail.gmail.com>
[not found] ` <2cd4df870902040600r2974362r4e9eabf2608b05b4@mail.gmail.com>
[not found] ` <20090204142455.GE4411@elte.hu>
[not found] ` <2cd4df870902040751l19332473ic36e2642723f5ec8@mail.gmail.com>
[not found] ` <20090205192502.GC27422@elte.hu>
[not found] ` <2cd4df870902051514k31582fbal11113b37b756dda0@mail.gmail.com>
[not found] ` <1233914595.10894.1.camel@laptop>
[not found] ` <20090206155311.GQ18368@elte.hu>
[not found] ` <2cd4df870902061444p335a9433l73fe6e820ec11c6@mail.gmail.com>
[not found] ` <20090209122538.GI17782@elte.hu>
[not found] ` <2cd4df870902091056v7287e53fx8e7c8c5599b856b3@mail.gmail.com>
2009-02-11 9:06 ` Yinghai Lu
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=2cd4df870901270804p75822471odca6f5d66b9d33fa@mail.gmail.com \
--to=dzieko@gmail.com \
--cc=efault@gmx.de \
--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
Powered by JetHome