From: Con Kolivas <kernel@kolivas.org>
To: Peter Williams <pwil3058@bigpond.net.au>
Cc: Ingo Molnar <mingo@elte.hu>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [RFC][PATCH][2.6.6] Replacing CPU scheduler active and expired with a single array
Date: Sun, 30 May 2004 22:56:02 +1000 [thread overview]
Message-ID: <200405302256.02703.kernel@kolivas.org> (raw)
In-Reply-To: <40B92874.50009@bigpond.net.au>
On Sun, 30 May 2004 10:19, Peter Williams wrote:
> Out of interest, what was the reason? What problem were you addressing?
The interactive credit?
There was a problem with difficulty elevating back to interactive state if an
interactive task had used too long a burst of cpu (ie Xfree) which was
addressed by making the bonus pseudo-exponentially curved for rapid recovery
and slow decay - in fact this is probably the most important part of
addressing the interactive tasks and had the best effect. The problem was
that giving this to all tasks meant that cpu bound tasks that had, as a
property of their behaviour, long waits on say pipes or i/o would also get
this rapid recovery to interactive state and as soon as they became fully
bound to cpu again they would cause noticable stalls. The standard example is
the increasing number of jobs in a make, where each job waits longer for i/o
as the job numbers increase. However there were much worse examples at even
normal - low loads, such as mpeg or divx encoding where the encoder would
buffer say 250 frames sleeping and then do them in a burst. (this is the
maximum space between key [I] frame or intervals). The interactive credit
prevented those tasks that would have long but only infrequent sleeps from
getting the curved bonus/penalty.
Hmm... if this is black magic I guess I'm breaking the magician's cardinal
rules and revealing my tricks ;-)
Con
next prev parent reply other threads:[~2004-05-30 12:56 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-29 5:27 [RFC][PATCH][2.6.6] Replacing CPU scheduler active and expired with a single array Peter Williams
2004-05-29 11:17 ` Con Kolivas
2004-05-30 0:19 ` Peter Williams
2004-05-30 12:56 ` Con Kolivas [this message]
2004-05-31 0:04 ` Peter Williams
2004-05-30 23:13 ` Con Kolivas
[not found] <214A1-6NK-7@gated-at.bofh.it>
[not found] ` <21acm-2GN-1@gated-at.bofh.it>
2004-05-29 12:24 ` Andi Kleen
2004-05-29 12:38 ` Con Kolivas
2004-06-04 7:40 ` Peter Williams
-- strict thread matches above, loose matches on Subject: below --
2004-05-29 1:39 Peter Williams
2004-05-28 4:52 Peter Williams
2004-05-28 9:05 ` Ingo Molnar
2004-05-28 9:24 ` Peter Williams
2004-05-28 9:29 ` Ingo Molnar
2004-05-28 9:57 ` Con Kolivas
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=200405302256.02703.kernel@kolivas.org \
--to=kernel@kolivas.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--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