From: "David S. Miller" <davem@redhat.com>
To: <mingo@elte.hu>
Cc: <linux-kernel@vger.kernel.org>,
Alan Cox <alan@lxorguk.ukuu.org.uk>,
Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
Subject: Re: [patch] softirq-2.4.5-B0
Date: Sun, 27 May 2001 12:15:10 -0700 (PDT) [thread overview]
Message-ID: <15121.21054.657593.830199@pizda.ninka.net> (raw)
In-Reply-To: <Pine.LNX.4.33.0105271020310.1667-200000@localhost.localdomain>
In-Reply-To: <15120.16986.610478.279574@pizda.ninka.net> <Pine.LNX.4.33.0105271020310.1667-200000@localhost.localdomain>
Ingo Molnar writes:
> the bug/misbehavior causing bad latencies turned out to be the following:
> if a hardirq triggers a softirq, but syscall-level code on the same CPU
> disabled local bhs via local_bh_disable(), then we 'miss' the execution of
> the softirq, until the next IRQ. (or next direct call to do_softirq()).
Hooray, some sanity in this thread finally :-)
Yes, this makes perfect sense, this is indeed what can happen.
> the attached softirq-2.4.5-B0 patch fixes this problem by calling
> do_softirq() from local_bh_enable() [if the bh count is 0, to avoid
> recursion].
Yikes! I do not like this fix.
I'd rather local_bh_enable() not become a more heavy primitive.
I know, in one respect it makes sense because it parallels how
hardware interrupts work, but not this thing is a function call
instead of a counter bump :-(
Any other ideas how to zap this?
Later,
David S. Miller
davem@redhat.com
next prev parent reply other threads:[~2001-05-27 19:16 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-05-26 17:59 [patch] severe softirq handling performance bug, fix, 2.4.5 Ingo Molnar
2001-05-26 19:33 ` [patch] softirq-2.4.5-A1 Ingo Molnar
2001-05-27 17:12 ` Andrea Arcangeli
2001-05-27 19:08 ` Ingo Molnar
2001-05-27 20:05 ` Andrea Arcangeli
2001-05-28 1:17 ` Horst von Brand
2001-05-26 23:55 ` [patch] severe softirq handling performance bug, fix, 2.4.5 David S. Miller
2001-05-27 3:28 ` Albert D. Cahalan
2001-05-27 17:18 ` Andrea Arcangeli
2001-05-27 19:00 ` [patch] softirq-2.4.5-B0 Ingo Molnar
2001-05-27 19:15 ` David S. Miller [this message]
2001-05-27 19:19 ` Ingo Molnar
2001-05-27 17:07 ` [patch] severe softirq handling performance bug, fix, 2.4.5 Andrea Arcangeli
2001-05-27 17:17 ` David S. Miller
2001-05-27 17:56 ` Andrea Arcangeli
2001-05-27 19:05 ` Ingo Molnar
2001-05-27 19:55 ` Andrea Arcangeli
2001-05-27 21:00 ` Ingo Molnar
2001-05-28 19:26 ` kuznet
2001-05-27 19:09 ` David S. Miller
2001-05-27 20:24 ` Andrea Arcangeli
2001-06-10 10:40 ` Rusty Russell
[not found] <15120.16986.610478.279574@pizda.ninka.net.suse.lists.linux.kernel>
[not found] ` <Pine.LNX.4.33.0105271020310.1667-200000@localhost.localdomain.suse.lists.linux.kernel>
[not found] ` <15121.21054.657593.830199@pizda.ninka.net.suse.lists.linux.kernel>
2001-05-27 21:17 ` [patch] softirq-2.4.5-B0 Andi Kleen
2001-05-27 21:19 ` Ingo Molnar
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=15121.21054.657593.830199@pizda.ninka.net \
--to=davem@redhat.com \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=kuznet@ms2.inr.ac.ru \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
/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®