From: Daniel Phillips <phillips@arcor.de>
To: Andrew Morton <akpm@zip.com.au>, Linus Torvalds <torvalds@transmeta.com>
Cc: lkml <linux-kernel@vger.kernel.org>
Subject: Re: [patch 19/21] introduce L1_CACHE_SHIFT_MAX
Date: Sun, 11 Aug 2002 11:11:08 +0200 [thread overview]
Message-ID: <E17dokf-0001f5-00@starship> (raw)
In-Reply-To: <3D5614DC.635ED602@zip.com.au>
On Sunday 11 August 2002 09:40, Andrew Morton wrote:
> zone->lock and zone->lru_lock are two of the hottest locks in the
> kernel. Their usage patterns are quite independent. And they have
> just been put into the same structure. It is essential that they not
> fall into the same cacheline.
>
> That could be fixed by padding with L1_CACHE_BYTES. But the problem
> with this is that a kernel which was configured for (say) a PIII will
> perform poorly on SMP PIV. This will cause problems for kernel
> vendors. For example, RH currently ship PII and Athlon binaries. To
> get best SMP performance they will end up needing to ship a lot of
> differently configured kernels.
>
> To solve this we need to know, at compile time, the maximum L1 size
> which this kernel will ever run on.
>
> This patch adds L1_CACHE_SHIFT_MAX to every architecture's cache.h.
>
> Of course it'll break when newer chips come out with increased
> cacheline sizes. Better suggestions are welcome.
I think you're being too paranoid. You pushed the performance degradation
from the PIV to the PIII (because it will tend to hit more cachelines than it
should) and you won't be able to build a kernel that is optimal for the PIII
any more. I'd say that is PIII kernel is *supposed* to suck to some degree
when run on a PIV, otherwise why bother having the PIV option?
I expect the performance difference you're talking about is marginal anyway.
Maybe you've measured it?
--
Daniel
next prev parent reply other threads:[~2002-08-11 9:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-11 7:40 Andrew Morton
2002-08-11 9:11 ` Daniel Phillips [this message]
2002-08-11 9:34 ` Andrew Morton
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=E17dokf-0001f5-00@starship \
--to=phillips@arcor.de \
--cc=akpm@zip.com.au \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.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 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®