mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Rob Landley <landley@trommello.org>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>, joe.korty@ccur.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] 2.4.18 scheduler bugs
Date: Mon, 18 Mar 2002 21:08:16 -0500	[thread overview]
Message-ID: <20020319022049.160864C4@merlin.webofficenow.com> (raw)
In-Reply-To: <E16lzQW-0004j4-00@the-village.bc.nu>

On Friday 15 March 2002 04:39 pm, Alan Cox wrote:
> > - ksoftirqd() - change daemon nice(2) value from 19 to -19.
> >
> >     SoftIRQ servicing was less important than the most lowly of batch
> >     tasks.  This patch makes it more important than all but the realtime
> >     tasks.
>
> Bad idea - the right fix to this is to stop using ksoftirqd so readily
> under load. If it bales after 20 iterations life is good. As shipped life
> is bad.
>
> Once ksoftirq triggers its because we are seriously overloaded (or without
> fixing its use slightly randomly). In that case we want other stuff to
> do work before we potentially unleash the next flood.

Also, I'm not sure if this is still the case but in earlier versions of the 
O(1) scheduler, nice(19) tasks tended to get their entire timeslice in one 
big long uninterrupted gulp.  (By the time they got a slice, everything with 
a higher priority has already run.)  This was great for long cpu-intensive 
loads because it meant your cache stayed hot, so you wound up churning 
through your CPU-bound load even faster than if you got little snippets of 
time and had to keep reloading your cache.  (Great for interactive latency, 
sucks for number crunching.)

Higher priority tasks get first crack at the CPU,  but that doesn't mean they 
get to keep it for long.  High priority is for latency reasons, not for 
throughput reasons.  If your router spills over to ksoftirqd, you're already 
beyond optimizing for latency.  If ksoftirqd is doing ping-pong scheduling 
with cron, overall throughput is worse.

Rob

      parent reply	other threads:[~2002-03-19  2:08 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-15 20:54 Joe Korty
2002-03-15 19:55 ` Ingo Molnar
2002-03-15 21:25   ` Joe Korty
2002-03-15 20:35     ` Ingo Molnar
2002-03-15 21:58       ` Alan Cox
2002-03-15 20:42         ` Ingo Molnar
2002-03-15 21:59           ` Joe Korty
2002-03-15 20:57             ` Ingo Molnar
2002-03-15 22:14               ` Joe Korty
2002-03-15 23:50                 ` Mike Kravetz
2002-03-16  9:23                 ` Ingo Molnar
2002-03-15 21:39 ` Alan Cox
2002-03-15 21:26   ` Joe Korty
2002-03-19  2:08   ` Rob Landley [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=20020319022049.160864C4@merlin.webofficenow.com \
    --to=landley@trommello.org \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=joe.korty@ccur.com \
    --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®