This is a little bash script to get the CPU cache ratios on Ubuntu.
1 2 3 4 5 6
Cache Level: (1, 2 or 3) Cache Type: (data-, instruction or general cache) Capacity: of the respective cache Associativity: (set size) Block capacity: / capacity of a cache line Number of sets: ((total capacity / block capacity) / associativity)