Where can I find the width of the cache line for the various processors?
I have found only the specs for the K8 family here (64 bytes of cache line):
http://en.wikipedia.org/wiki/CPU_cache
Could someone please give me some link to this info ?
Thanks
Marco
Cache line width
Moderators: hgm, Rebel, chrisw
-
- Posts: 892
- Joined: Sun Nov 19, 2006 9:16 pm
- Location: Russia
Re: Cache line width
All modern x86 CPUs of all vendors have 64 bytes per line. http://www.agner.org/optimize/#manuals
-
- Posts: 2684
- Joined: Sat Jun 14, 2008 9:17 pm
Re: Cache line width
Thanks for the link, very appreciated.Aleks Peshkov wrote:All modern x86 CPUs of all vendors have 64 bytes per line. http://www.agner.org/optimize/#manuals
But at least Intel® Xeon® cache line seems to be 128 bytes
"For instance, cache lines for Intel® Xeon® processor are laid out in 128 byte lines that always start at an address that is a multiple of 0x80"
The above is extracted from:
http://software.intel.com/en-us/articles/false-sharing/
-
- Posts: 1243
- Joined: Sat Dec 13, 2008 7:00 pm
Re: Cache line width
P4 (Xeon) had 128 byte cacheline size.
-
- Posts: 20943
- Joined: Mon Feb 27, 2006 7:30 pm
- Location: Birmingham, AL
Re: Cache line width
and 32 L1 cache line size if memory serves... There were a few editions of the pentium-pro architecture that had 32byte l1, and then 64/128 L2.Gian-Carlo Pascutto wrote:P4 (Xeon) had 128 byte cacheline size.
-
- Posts: 2684
- Joined: Sat Jun 14, 2008 9:17 pm
Re: Cache line width
Perhaps CPU with very long cache lines are mainly intended for single core systems, where big cache lines are a good thing and don't have issues due to SMP.bob wrote:and 32 L1 cache line size if memory serves... There were a few editions of the pentium-pro architecture that had 32byte l1, and then 64/128 L2.Gian-Carlo Pascutto wrote:P4 (Xeon) had 128 byte cacheline size.
-
- Posts: 20943
- Joined: Mon Feb 27, 2006 7:30 pm
- Location: Birmingham, AL
Re: Cache line width
I think it came along as a support for RAMBUS, which died a well-deserved death.mcostalba wrote:Perhaps CPU with very long cache lines are mainly intended for single core systems, where big cache lines are a good thing and don't have issues due to SMP.bob wrote:and 32 L1 cache line size if memory serves... There were a few editions of the pentium-pro architecture that had 32byte l1, and then 64/128 L2.Gian-Carlo Pascutto wrote:P4 (Xeon) had 128 byte cacheline size.
-
- Posts: 286
- Joined: Mon Mar 13, 2006 5:23 pm
- Location: Québec
Re: Cache line width
Hi Marco,
On Linux you can check in /proc/cpuinfo. In this questions on stackoverflow.com I asked this very question and got some answers : http://stackoverflow.com/questions/1502 ... -size-in-c
On Linux you can check in /proc/cpuinfo. In this questions on stackoverflow.com I asked this very question and got some answers : http://stackoverflow.com/questions/1502 ... -size-in-c
Mathieu Pagé
mathieu@mathieupage.com
mathieu@mathieupage.com
-
- Posts: 838
- Joined: Thu Jul 05, 2007 5:03 pm
- Location: British Columbia, Canada
Re: Cache line width
The 3 PowerPC cores of the Xbox360 and the PPU of the PS3's Cell processor both use 128-byte cachelines throughout (L1 and L2).mcostalba wrote:Perhaps CPU with very long cache lines are mainly intended for single core systems, where big cache lines are a good thing and don't have issues due to SMP.bob wrote:and 32 L1 cache line size if memory serves... There were a few editions of the pentium-pro architecture that had 32byte l1, and then 64/128 L2.Gian-Carlo Pascutto wrote:P4 (Xeon) had 128 byte cacheline size.
-
- Posts: 2684
- Joined: Sat Jun 14, 2008 9:17 pm
Re: Cache line width
Thanks for the link !mathmoi wrote:Hi Marco,
On Linux you can check in /proc/cpuinfo. In this questions on stackoverflow.com I asked this very question and got some answers : http://stackoverflow.com/questions/1502 ... -size-in-c
I didn't know that site, it is an interesting one.