From: Mikael Pettersson <mikpe@csd.uu.se>
To: balbir.singh@wipro.com, hahn@physics.mcmaster.ca
Cc: linux-kernel@vger.kernel.org
Subject: Re: Pentium IV cache line size
Date: Wed, 17 Jul 2002 02:53:34 +0200 (MET DST) [thread overview]
Message-ID: <200207170053.CAA01050@harpo.it.uu.se> (raw)
On Sun, 14 Jul 2002 16:58:11 -0400 (EDT), Mark Hahn wrote:
> - Place each synchronization variable alone,
> separated by 128 byte or in a separate cache line.
>
>see also table 1.1. I'm not sure it matters whether you consider lines 128B
>or 64B; the fact that cacheline reads always happen at 128B is probably
>the dominant concern. table 1.1 page 7-18 ("placement of shared
>synchonization variable") repeats this.
For SW synchronisation variables this makes sense.
However, I've been in contact with some people doing high-speed routing
with Linux boxes, and they had major performance problems on a dual P4/Xeon.
Somehow, the 128 byte alignment affected how the gigabit NIC driver they
used programmed the NIC, with the effect that buffering of PCI writes
(or something like that, this is from memory) didn't work and performance
dropped like a rock. They manually set the alignment back to 64 bytes in
the NIC driver and performance increased to expected levels.
/Mikael
next reply other threads:[~2002-07-17 0:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-17 0:53 Mikael Pettersson [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-07-14 8:27 BALBIR SINGH
2002-07-14 20:58 ` Mark Hahn
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=200207170053.CAA01050@harpo.it.uu.se \
--to=mikpe@csd.uu.se \
--cc=balbir.singh@wipro.com \
--cc=hahn@physics.mcmaster.ca \
--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®