On Sun, Apr 11, 2010 at 6:12 AM, Kerin Millar <kerfra...@gmail.com> wrote: <SNIP> > > $ paste <(cat /sys/devices/system/cpu/cpu0/cache/index?/type) <(cat > /sys/devices/system/cpu/cpu0/cache/index?/size) | sed -re 's/\W+/: /' > > On my system that results in the following: > > Data: 32K > Instruction: 32K > Unified: 6144K >
Interesting how they change across the processor families: i5-661: (2 cores, hyperthreaded) Data: 32K Instruction: 32K Unified: 256K Unified: 4096K i7-920: (4 cores, hyperthreaded) Data: 32K Instruction: 32K Unified: 256K Unified: 8192K i7-980x (6 cores, hyperthreaded) Data: 32K Instruction: 32K Unified: 256K Unified: 12288K So on these newer processors I suspect that these values are for each hyperthread - i.e. repeated internally for each virtual core Data: 32K Instruction: 32K Unified: 256K (possibly shared between physical core and it's associated hyperthread?) and then the final value: Unified: 4096K Unified: 8192K Unified: 12288K is 2048K/physical pair and shared between all the 2-thread cores in the chip. - Mark