From: Andi Kleen <ak@suse.de>
To: Dave Jones <davej@codemonkey.org.uk>, Andi Kleen <ak@suse.de>,
Margit Schubert-While <margit@margit.com>,
linux-kernel@vger.kernel.org
Subject: Re: L1_CACHE_SHIFT value for P4 ?
Date: Thu, 21 Nov 2002 14:42:50 +0100 [thread overview]
Message-ID: <20021121134250.GA31081@wotan.suse.de> (raw)
In-Reply-To: <20021121132302.GD9883@suse.de>
On Thu, Nov 21, 2002 at 01:23:02PM +0000, Dave Jones wrote:
> On Thu, Nov 21, 2002 at 02:10:02PM +0100, Andi Kleen wrote:
>
> > The P4 has 128byte L2 cache lines (2^7). The L1 apparently has smaller lines.
>
> Not mine:
>
> L2 unified cache:
> Size: 512KB Sectored, 8-way associative.
> line size=64 bytes.
>
> Someone (Manfred?) pointed out a chapter in the P4 system programmer guide about
> this last time I brought it up. I forget the reasoning, I'll see if I can dig it out..
The only reference I was able to find was in the Intel Technology Journal,
which says the L2 cache has a 128 byte cache line.
http://developer.intel.com/technology/itj/q12001/articles/art_2.htm
-> "Netburst microarchitecture" -> Level 2 Instruction and Data Cache
"The L2 cache is organized as an 8-way set-associative cache with 128 bytes
per cache line. These 128-byte cache lines consist of two 64-byte sectors.
A miss in the L2 cache typically initiates two 64-byte access requests to the
system bus to fill both halves of the cache line. The L2 cache is a write-back
cache that allocates new cache lines on load or store misses. "
It is refering to the older 256K cached P4, but I doubt they changed it.
Your cache reporting may refer to the 64byte sectors or is just wrong
(would not be the first time that has happened - some P4 versions also
misreported their TLB size)
For cache colouring purposes you need to use the 128 byte unit.
-Andi
-Andi
>
> Dave
>
> --
> | Dave Jones. http://www.codemonkey.org.uk
> | SuSE Labs
next prev parent reply other threads:[~2002-11-21 13:35 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <4.3.2.7.2.20021121130236.00b15370@mail.dns-host.com.suse.lists.linux.kernel>
2002-11-21 13:10 ` Andi Kleen
2002-11-21 13:23 ` Dave Jones
2002-11-21 13:42 ` Andi Kleen [this message]
2002-11-21 13:47 ` Dave Jones
2002-11-21 15:03 ` Mikael Pettersson
2002-11-21 14:39 Margit Schubert-While
-- strict thread matches above, loose matches on Subject: below --
2002-11-21 13:25 Margit Schubert-While
2002-11-21 13:30 ` Dave Jones
2002-11-21 12:13 Margit Schubert-While
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=20021121134250.GA31081@wotan.suse.de \
--to=ak@suse.de \
--cc=davej@codemonkey.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=margit@margit.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®