作者HILL33LOVE (就是愛希爾)
看板Linux
標題NUMA cache
時間Wed May 31 12:12:26 2017
底下有個別執行
#dmidecode -t cache
#lstopo-no-graphics
的輸出結果
想請教兩個問題
Q1.Level 1 cache的Installed Size與Maximum Size都是顯示 256 kB
而在lstopo-no-graphics顯示卻是L1d L#0 (32KB) + L1i L#0 (32KB)
這兩邊指的L1是不一樣的東西嗎?
Q2.在lstopo-no-graphics輸出結果
在NUMA架構 每個Node都會有各自的RAM (此例是126GB)系統全部是252GB
那假設在NUMA Node 0裡面的core 1要執行一隻程式的記憶體如果要alloc超過126GB是可
以的嗎?
謝謝
# dmidecode -t cache
# dmidecode 2.12
SMBIOS 2.7 present.
Handle 0x0700, DMI type 7, 19 bytes
Cache Information
Socket Designation: Not Specified
Configuration: Enabled, Not Socketed, Level 1
Operational Mode: Write Through
Location: Internal
Installed Size: 256 kB
Maximum Size: 256 kB
Supported SRAM Types:
Unknown
Installed SRAM Type: Unknown
Speed: Unknown
Error Correction Type: Single-bit ECC
System Type: Data
Associativity: 8-way Set-associative
Handle 0x0701, DMI type 7, 19 bytes
Cache Information
Socket Designation: Not Specified
Configuration: Enabled, Not Socketed, Level 2
Operational Mode: Write Through
Location: Internal
Installed Size: 2048 kB
Maximum Size: 2048 kB
Supported SRAM Types:
Unknown
Installed SRAM Type: Unknown
Speed: Unknown
Error Correction Type: Single-bit ECC
System Type: Unified
Associativity: 8-way Set-associative
Handle 0x0702, DMI type 7, 19 bytes
Cache Information
Socket Designation: Not Specified
Configuration: Enabled, Not Socketed, Level 3
Operational Mode: Write Back
Location: Internal
Installed Size: 20480 kB
Maximum Size: 20480 kB
Supported SRAM Types:
Unknown
Installed SRAM Type: Unknown
Speed: Unknown
Error Correction Type: Single-bit ECC
System Type: Unified
Associativity: 20-way Set-associative
Handle 0x0703, DMI type 7, 19 bytes
Cache Information
Socket Designation: Not Specified
Configuration: Enabled, Not Socketed, Level 1
Operational Mode: Write Through
Location: Internal
Installed Size: 256 kB
Maximum Size: 256 kB
Supported SRAM Types:
Unknown
Installed SRAM Type: Unknown
Speed: Unknown
Error Correction Type: Single-bit ECC
System Type: Data
Associativity: 8-way Set-associative
Handle 0x0704, DMI type 7, 19 bytes
Cache Information
Socket Designation: Not Specified
Configuration: Enabled, Not Socketed, Level 2
Operational Mode: Write Through
Location: Internal
Installed Size: 2048 kB
Maximum Size: 2048 kB
Supported SRAM Types:
Unknown
Installed SRAM Type: Unknown
Speed: Unknown
Error Correction Type: Single-bit ECC
System Type: Unified
Associativity: 8-way Set-associative
Handle 0x0705, DMI type 7, 19 bytes
Cache Information
Socket Designation: Not Specified
Configuration: Enabled, Not Socketed, Level 3
Operational Mode: Write Back
Location: Internal
Installed Size: 20480 kB
Maximum Size: 20480 kB
Supported SRAM Types:
Unknown
Installed SRAM Type: Unknown
Speed: Unknown
Error Correction Type: Single-bit ECC
System Type: Unified
Associativity: 20-way Set-associative
------------------------------------------------------------------------------
---
# lstopo-no-graphics
Machine (252GB)
NUMANode L#0 (P#0 126GB)
Socket L#0 + L3 L#0 (20MB)
L2 L#0 (256KB) + L1d L#0 (32KB) + L1i L#0 (32KB) + Core L#0 + PU L#0 (P#
0)
L2 L#1 (256KB) + L1d L#1 (32KB) + L1i L#1 (32KB) + Core L#1 + PU L#1 (P#
2)
L2 L#2 (256KB) + L1d L#2 (32KB) + L1i L#2 (32KB) + Core L#2 + PU L#2 (P#
4)
L2 L#3 (256KB) + L1d L#3 (32KB) + L1i L#3 (32KB) + Core L#3 + PU L#3 (P#
6)
L2 L#4 (256KB) + L1d L#4 (32KB) + L1i L#4 (32KB) + Core L#4 + PU L#4 (P#
8)
L2 L#5 (256KB) + L1d L#5 (32KB) + L1i L#5 (32KB) + Core L#5 + PU L#5 (P#
10)
L2 L#6 (256KB) + L1d L#6 (32KB) + L1i L#6 (32KB) + Core L#6 + PU L#6 (P#
12)
L2 L#7 (256KB) + L1d L#7 (32KB) + L1i L#7 (32KB) + Core L#7 + PU L#7 (P#
14)
HostBridge L#0
PCIBridge
PCI 8086:10fb
Net L#0 "em1"
PCI 8086:10fb
Net L#1 "em2"
PCIBridge
PCI 8086:154d
PCI 8086:154d
PCIBridge
PCI 1000:005b
Block L#2 "sda"
PCIBridge
PCI 8086:1521
Net L#3 "em3"
PCI 8086:1521
Net L#4 "em4"
PCIBridge
PCIBridge
PCIBridge
PCIBridge
PCI 102b:0534
PCI 8086:1d02
Block L#5 "sr0"
NUMANode L#1 (P#1 126GB) + Socket L#1 + L3 L#1 (20MB)
L2 L#8 (256KB) + L1d L#8 (32KB) + L1i L#8 (32KB) + Core L#8 + PU L#8 (P#1)
L2 L#9 (256KB) + L1d L#9 (32KB) + L1i L#9 (32KB) + Core L#9 + PU L#9 (P#3)
L2 L#10 (256KB) + L1d L#10 (32KB) + L1i L#10 (32KB) + Core L#10 + PU L#10
(P#5)
L2 L#11 (256KB) + L1d L#11 (32KB) + L1i L#11 (32KB) + Core L#11 + PU L#11
(P#7)
L2 L#12 (256KB) + L1d L#12 (32KB) + L1i L#12 (32KB) + Core L#12 + PU L#12
(P#9)
L2 L#13 (256KB) + L1d L#13 (32KB) + L1i L#13 (32KB) + Core L#13 + PU L#13
(P#11)
L2 L#14 (256KB) + L1d L#14 (32KB) + L1i L#14 (32KB) + Core L#14 + PU L#14
(P#13)
L2 L#15 (256KB) + L1d L#15 (32KB) + L1i L#15 (32KB) + Core L#15 + PU L#15
(P#15)
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 125.227.158.133
※ 文章網址: https://www.ptt.cc/bbs/Linux/M.1496203948.A.2A2.html
推 ryoma617: Q1:L1 cache 都是指相同的東西,新的CPU,L1 cache會有 06/05 02:10
→ ryoma617: 兩個區域,L1i(instraction)與L1d(data);不建議您用dmi 06/05 02:10
→ ryoma617: 查詢硬體資訊,因為此資詢是BIOS產生,硬體廠商常常不會 06/05 02:10
→ ryoma617: 特別調整此值,因此常會是錯誤資訊 06/05 02:10
推 ryoma617: Q2:NUMA只有在2個實體CPU以上的主機板才能在BIOS開啟此 06/05 02:21
→ ryoma617: 功能,此功能主要是在提高Memory performance,因此你可 06/05 02:21
→ ryoma617: 以存取Memory所有空間 06/05 02:21