查看 Debian 中 CPU 缓存大小的常用方法
方法一 使用 lscpu 查看各级缓存
lscpuArchitecture: x86_64
CPU(s): 4
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 6144K
方法二 查看 /proc/cpuinfo 中的 cache size
cat /proc/cpuinfoprocessor : 0
vendor_id : GenuineIntel
model name : Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
cache size : 6144 KB
...
lscpu。方法三 使用 dmidecode 查看处理器缓存描述
sudo dmidecode -t processorCache Information
Size: 256 KB
Level: 2
Type: Unified
实用命令与排错建议
lscpu | grep -E 'Cache|L[1-3]'cat /proc/cpuinfo | grep -i "cache size" | sort -u