From: David Howells <dhowells@warthog.cambridge.redhat.com>
To: Ingo Molnar <mingo@redhat.com>
Cc: David Howells <dhowells@redhat.com>,
arjanv@redhat.com, dwmw2@redhat.com,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] per-interrupt stacks - try 2
Date: Mon, 16 Sep 2002 15:09:55 +0100 [thread overview]
Message-ID: <4038.1032185395@warthog.cambridge.redhat.com> (raw)
In-Reply-To: Message from Ingo Molnar <mingo@redhat.com> of "Sun, 15 Sep 2002 07:51:39 EDT." <Pine.LNX.4.44.0209150747510.19045-100000@devserv.devel.redhat.com>
> > Do you have benchmarks or something to show that is this actually a
> > _significant_ problem?
>
> you need benchmarks to tell that pure per-IRQ stacks are bad for SMP
> performance?
No. I asked how _significant_ the difference is, as compared to the rest of
the accesses it makes.
> per-IRQ+per-CPU and pure per-CPU IRQ stacks should perform rougly equally
> well on SMP - with per-CPU IRQ stacks having lower runtime setup cost.
There are problems with purely per-CPU stacks if you run with interrupts
enabled. You theoretically ought to have a stack big enough to allow all
possible interrupts to be nested on one CPU.
And having non-uniform stack sizes of course introduces other
problems... notably the fact that you can no longer locate the thread_info
struct by means of AND-ing the stack pointer.
> there's a difference between bouncing 1-2 cachelines and bouncing a *full,
> dirtied stack*. The irq_desc[] bouncing is pretty much unavoidable (IRQs do
> need some global state) - the stack bouncing is just plain stupid and
> perfectly avoidable.
I wonder if it might be possible to invalidate just that bit of the
cache... though I suspect that's not worth it, even if it is.
David
prev parent reply other threads:[~2002-09-24 14:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.LNX.4.44.0209091027380.10948-100000@devserv.devel.redhat.com>
2002-09-12 11:34 ` [PATCH] per-interrupt stacks - try 2 David Howells
2002-09-15 11:51 ` Ingo Molnar
2002-09-16 14:09 ` David Howells [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=4038.1032185395@warthog.cambridge.redhat.com \
--to=dhowells@warthog.cambridge.redhat.com \
--cc=arjanv@redhat.com \
--cc=dhowells@redhat.com \
--cc=dwmw2@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.