From: malc <av1474@comtv.ru>
To: Mike Galbraith <efault@gmx.de>
Cc: Ingo Molnar <mingo@elte.hu>,
Peter Zijlstra <peterz@infradead.org>,
linux-kernel@vger.kernel.org
Subject: Re: Scheduler oddity
Date: Sat, 6 Feb 2010 18:20:40 +0300 (MSK) [thread overview]
Message-ID: <alpine.LNX.2.00.1002061819330.18643@linmac> (raw)
In-Reply-To: <1265458315.8803.79.camel@marge.simson.net>
On Sat, 6 Feb 2010, Mike Galbraith wrote:
> On Fri, 2010-02-05 at 19:33 +0300, malc wrote:
> > Following test exhibits somewhat odd behaviour on, at least, 2.6.32.3
> > (ppc) and 2.6.29.1 (x86_64), perhaps someone could explain why.
>
> Expected behavior.
>
> SCHED_BATCH tasks do not wakeup preempt, preemption is tick driven. The
> writer therefore has time to fill the pipe/block, so reader can then
> drain the pipe, leading to efficient data transfer.
>
> SCHED_NORMAL tasks do preempt. Every write wakes a reader who's
> vruntime (CPU utilization fairness yardstick) lags the writer enough to
> warrant preemption, so one write translates to one preemption followed
> by a read. The reader can't possibly catch up to the writer (being
> synchronous) in either case, but the scheduler doesn't know that or
> care, it simply tries to equalize the two. Since the writer's CPU
> utilization stems entirely from tiny writes, that time is what goes
> toward equalizing the reader. Result is the tiny I/Os the programmer
> asked for, extreme low latency, and utterly horrid throughput.
>
Thank you.
--
mailto:av1474@comtv.ru
prev parent reply other threads:[~2010-02-06 15:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-05 16:33 malc
2010-02-06 12:11 ` Mike Galbraith
2010-02-06 15:20 ` malc [this message]
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=alpine.LNX.2.00.1002061819330.18643@linmac \
--to=av1474@comtv.ru \
--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
all inboxes | Powered by JetHome®