mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: cb-lkml@fish.zetnet.co.uk
To: linux-kernel@vger.kernel.org
Subject: O(1) scheduler questions + bug
Date: Thu, 15 May 2003 22:29:45 +0100	[thread overview]
Message-ID: <20030515212945.GA617@fish.zetnet.co.uk> (raw)


Hi all

I started writing this email a while ago, the Doom III trailer example/bug has
prompted me to finish it.

Firstly, in -mm MAX_SLEEP_AVG defaults to 10 seconds. This means that a new
interactive task has a relatively low priority for nearly 5 seconds which feels
too long in practise. (eg start ogg123, music starts, switch desktop, music
skips) I think that MAX_SLEEP_AVG should be reduced to allow the scheduler to
react quicker.

Secondly, if there are (hypothetically) two interactive tasks, one repeatedly
works for 10ms and then sleeps for 90ms, and the other works for 45ms and
sleeps for 55ms, then they get the same maximum priority even though one is
"more interactive" than the other (using 10% of CPU rather than 45%). 

Has this been considered in the design of the effective_prio function? Does it
matter?

Finally, playing the Doom III trailer with mplayer results in mplayer's
priority slowly increasing to the maximum and therefore becoming
non-interactive, which means a CPU hog (perl -e 'while (1) {}') can cause the
audio/video playback to skip.  Mplayer consumes about 25% of CPU, X consumes
about 10%. (measured with top)

I'm currently using 2.5.69-mm2, Celeron 333, pre-empt.

Charlie

                 reply	other threads:[~2003-05-15 21:16 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20030515212945.GA617@fish.zetnet.co.uk \
    --to=cb-lkml@fish.zetnet.co.uk \
    --cc=linux-kernel@vger.kernel.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®