Gentoo Archives: gentoo-user

From: Mark Knecht <markknecht@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: gentoo on the i7
Date: Sun, 11 Apr 2010 14:07:10
Message-Id: g2p5bdc1c8b1004110651tf4657eb2p2fb0dfb04c9bb07@mail.gmail.com
In Reply to: [gentoo-user] Re: gentoo on the i7 by Kerin Millar
1 On Sun, Apr 11, 2010 at 6:12 AM, Kerin Millar <kerframil@×××××.com> wrote:
2 <SNIP>
3 >
4 > $ paste <(cat /sys/devices/system/cpu/cpu0/cache/index?/type) <(cat
5 > /sys/devices/system/cpu/cpu0/cache/index?/size) | sed -re 's/\W+/: /'
6 >
7 > On my system that results in the following:
8 >
9 > Data: 32K
10 > Instruction: 32K
11 > Unified: 6144K
12 >
13
14 Interesting how they change across the processor families:
15
16 i5-661: (2 cores, hyperthreaded)
17
18 Data: 32K
19 Instruction: 32K
20 Unified: 256K
21 Unified: 4096K
22
23 i7-920: (4 cores, hyperthreaded)
24
25 Data: 32K
26 Instruction: 32K
27 Unified: 256K
28 Unified: 8192K
29
30 i7-980x (6 cores, hyperthreaded)
31
32 Data: 32K
33 Instruction: 32K
34 Unified: 256K
35 Unified: 12288K
36
37 So on these newer processors I suspect that these values are for each
38 hyperthread - i.e. repeated internally for each virtual core
39
40 Data: 32K
41 Instruction: 32K
42 Unified: 256K
43 (possibly shared between physical core and it's associated hyperthread?)
44
45 and then the final value:
46
47 Unified: 4096K
48 Unified: 8192K
49 Unified: 12288K
50
51 is 2048K/physical pair and shared between all the 2-thread cores in the chip.
52
53 - Mark