Gunakan perintah lscpu
untuk melihat info tentang CPU.
$ lscpu
Model name: Intel(R) Core(TM) i3-2330M CPU @ 2.20GHz
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 3072K
Detail cache CPU terdapat pada direktori /sys/devices/system/cpu/cpu0/cache
.
Berikut perintah untuk menampilkan detail level, ukuran, ways, line size,
dan jenis cache.
$ cat /sys/devices/system/cpu/cpu0/cache/index{0..3}/{level,size,ways*,*line_size,type} |
paste - - - - -
1 32K 8 64 Data
1 32K 8 64 Instruction
2 256K 8 64 Unified
3 3072K 12 64 Unified
Dengan demikian, diperoleh informasi sebagai berikut.
Level | Ukuran | Ways | Line size | Jenis |
---|---|---|---|---|
1 | 32K | 8 | 64 | Data |
1 | 32K | 8 | 64 | Instruction |
2 | 256K | 8 | 64 | Unified |
3 | 3072K | 12 | 64 | Unified |
Level | Ukuran | Ways | Line size | Jenis |
---|---|---|---|---|
1 | 24K | 6 | 64 | Data |
1 | 32K | 8 | 64 | Instruction |
2 | 512K | 8 | 64 | Unified |