Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Finding the cache block size

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

like image 872
Izza Avatar asked Oct 22 '25 07:10

Izza


1 Answers

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

like image 171
Mike Seymour Avatar answered Oct 23 '25 20:10

Mike Seymour