In x86 architectures, Linux kernel provides cache information via sysfs. This information is available at /sys/devices/system/cpu/cpu*/cache/ and c
x86
/sys/devices/system/cpu/cpu*/cache/