public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andrea Arcangeli <andrea@suse.de>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Andrew Morton <akpm@zip.com.au>, Paul Faure <paul@engsoc.org>,
	linux-kernel@vger.kernel.org
Subject: Re: Process priority in 2.4.18 (RedHat 7.3)
Date: Fri, 17 May 2002 14:55:29 +0200	[thread overview]
Message-ID: <20020517125529.GC11512@dualathlon.random> (raw)
In-Reply-To: <20020517123902.GA11512@dualathlon.random> <E178hMQ-0006Sb-00@the-village.bc.nu>

On Fri, May 17, 2002 at 02:01:30PM +0100, Alan Cox wrote:
> > On Fri, May 17, 2002 at 01:49:21PM +0100, Alan Cox wrote:
> > > I think its mostly #2. We invoke ksoftirq far far too easily.
> > 
> > ksoftirqd + SCHED_FIFO is like no ksoftirqd at all, provided the ne card
> > is irq driven (it is) everything works like it was working in 2.4.0.
> 
> For a 10Mbit ne2k it ought to be if its done with sched fifo. For serious
> devices its not. The ksoftirqd bounce blows everything out of cache and is
> easily measured

if you're under a flood of irq ksoftirqd or not won't make differences
to the softirq handling, and yes in such case ksoftirq cannot help
because you are under a flood of do_softirq anyways run from irq context
and it is only a minor scheduler overhead in such case, but it gets
right all and polishes all the other "recursion" cases like NAPI.

But that has nothing to do with this case, here the userspace runs with
SCHED_FIFO in a loop so ksoftirqd cannot make any difference compared to
2.4.0 if the device is irq driven, so I don't see your point in
mentioning minor performance regressions while under a flood of irqs due
the minor scheduler overhead, here the minor scheduler overhead cannot
apply because ksoftirqd has not a chance to run at all.

Also I'd be nice if he could try with mainline (or 2.4.19pre8aa3) too
just in case, we didn't had any confirm that such proggy uses SCHED_FIFO
or SCHED_RR, even if I of course agree about the supposions made by
Andrew without having access to additional informations.

Andrea

  reply	other threads:[~2002-05-17 12:55 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <3CE414BF.15A0C74B@zip.com.au>
2002-05-16 20:51 ` Process priority in 2.4.18 (RedHat 7.3) Paul Faure
2002-05-16 21:06   ` Andrew Morton
2002-05-16 21:57     ` Andrea Arcangeli
2002-05-17  0:40       ` Paul Faure
2002-05-17  2:21         ` Andrew Morton
2002-05-17 12:49           ` Alan Cox
2002-05-17 12:39             ` Andrea Arcangeli
2002-05-17 13:01               ` Alan Cox
2002-05-17 12:55                 ` Andrea Arcangeli [this message]
2002-05-17 14:51                   ` Alan Cox
2002-05-17 14:35                     ` Andrea Arcangeli
2002-05-17 14:57                       ` Alan Cox
2002-05-17 15:17                         ` Andrea Arcangeli
2002-05-17 17:17                           ` Alan Cox
2002-05-18 16:19                             ` Paul Faure
2002-05-18 16:21                             ` Paul Faure
2002-05-17 16:21             ` Paul Faure
2002-05-16 20:08 Paul Faure
2002-05-16 20:13 ` Nerijus Baliunas

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=20020517125529.GC11512@dualathlon.random \
    --to=andrea@suse.de \
    --cc=akpm@zip.com.au \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=paul@engsoc.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