Skip to contentSkip to conversation

Pentium IV cacheline size.

PATCH Mikael Pettersson 2 participants 2 messages Oct 13, 2001

lore
Share & tools
lore
#0 lore raw
Quoted 7 lines · Dave Jones

Currently, we're using a L1_CACHE_SHIFT value of 7 for Pentium 4, which equates to 128 byte cache lines. Curious, I dumped the info on the only P4 I could find, and noticed they were 64 byte.
Upon checking the documentation, they're 64 byte there too. Is this just a thinko on someones part, or was there a rationale behind this that I've not realised ?

According to the P4 and Xeon optimisation manual (#248966-03), the L1 cache has a 64-byte line size and the L2 cache has a 128-byte line size. (Page 1-18, Table 1-1.) Perhaps someone just confused the two, or the distinction wasn't known when the initial P4 support was added to the kernel.

/Mikael

#1 lore raw
Quoted 3 lines · Mikael Pettersson

According to the P4 and Xeon optimisation manual (#248966-03), the L1 cache has a 64-byte line size and the L2 cache has a 128-byte line size. (Page 1-18, Table 1-1.) Perhaps someone just confused

Great, conflicting documentation.
#24547203 (Vol3 : System programming guide) has this to say.. (page 325)
"The cache lines for the L1 and L2 caches in the Pentium 4 processor
are 64 bytes wide"

regards,

Dave.

Signature · 2 lines
| Dave Jones.        http://www.codemonkey.org.uk
| SuSE Labs