Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

For those on GNU/Linux who want to know about the CPU caches on their machine the "lscpu" gives more detailed cache info than /proc/cpuinfo.

I got curious about how lscpu was determining L1 Data and L1 Instruction caches. So I had a look at the source code of lscpu and found that it was looking in /sys/devices/system/cpu/cpu/cache/ and /sys/devices/system/cpu/cpu/topology/

This lead me to "Memory part 4: NUMA support" http://lwn.net/Articles/254445/

Pretty interesting stuff.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: