Izza Izza -4 years ago 274
C++ Question

Finding the cache block size

How do I find the cache block size in Ubuntu, programmatically (with C++) or otherwise?

Answer Source

You can find it in /proc/cpuinfo; cache size for the total size, and cache_alignment for the block size.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download