NUMA cache - Linux

Selena avatar
By Selena
at 2017-05-31T12:12

Table of Contents

底下有個別執行
#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)

--
Tags: Linux

All Comments

Olive avatar
By Olive
at 2017-06-03T07:02
Q1:L1 cache 都是指相同的東西,新的CPU,L1 cache會有
兩個區域,L1i(instraction)與L1d(data);不建議您用dmi
查詢硬體資訊,因為此資詢是BIOS產生,硬體廠商常常不會
特別調整此值,因此常會是錯誤資訊
Lauren avatar
By Lauren
at 2017-06-05T19:28
Q2:NUMA只有在2個實體CPU以上的主機板才能在BIOS開啟此
功能,此功能主要是在提高Memory performance,因此你可
以存取Memory所有空間

Mysql Docker Container連線一半就中斷

Zanna avatar
By Zanna
at 2017-05-29T09:28
建議是否該先用docker run -d mysql 讓mysql container以伺服器模式跑起來 再用exec進入各個容器進行動作 這樣就不會離開的時候就關閉容器 ※ 引述《jacobcan118 (jacobcan118)》之銘言: : 請問一下我要如何在host server上開啟多 ...

docker 總顯示container not started

Zanna avatar
By Zanna
at 2017-05-29T09:20
※ 引述《sppmg (sppmg)》之銘言: : 今天第一次玩 docker ,使用 debian ,所以就採用懶人安裝 : (測試環境放在今天剛裝的debian testing 虛擬機,因為我主系統太老了...) : # apt-get install docker.io : 加上group : # gp ...

mount cifs網路不穩時產生的問題

Ophelia avatar
By Ophelia
at 2017-05-28T22:14
title 網路不穩說的有點不清楚 詳細情形如下: 在用mount -t cifs後,一旦我的網路稍微斷線後,網路回復後 就無法重新mount cifs了,而且在mount point的上層資料會無法ls(ex:我把cifs mount 在 /mount_point,/就無法ls了) 另外,就是發生 ...

有關於sys/event.h找不到

Sarah avatar
By Sarah
at 2017-05-27T13:58
最近剛開始研讀Unix network programming 其中老家的linux怎麼編譯就是找不到 sys/event.h這個函式庫 我有update跟upgrade了 上網找方法也還是一樣 想請問有人遇過同樣的問題嗎? -- Sent from my Android - ...

有沒有推薦可以方便裝linux的小筆電

Hedy avatar
By Hedy
at 2017-05-27T00:39
如題,最近想linux拿著走 但都只有pc 我不用裝雙系統,可以單獨刷掉灌linux就行 但我記得筆電很多驅動不相容的問題, 想請問各位大大有沒有再服役的推薦筆電呢? 不用太貴,小小一台10吋就好 -- Sent from my Android - ...