Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where get data to compare cache algorithms

I wan`t to compare cache algorithms like LRU, SLRU, LFU etc on real data.

That`s why I need some method to generate real-like data to compare cache algorithms or to get this data from some application.

like image 207
chinskiy Avatar asked Nov 01 '22 04:11

chinskiy


1 Answers

I think cachegrind, one of the tools in the valgrind suite, might be what you're looking for. I haven't used it myself, but from a glance at that page, it produces an output file cachegrind.out.<pid> with human-readable information about cache accesses. Not sure if it will be as detailed as you need (maybe it's just a summary), but probably worth a look.

like image 55
j_random_hacker Avatar answered Nov 15 '22 08:11

j_random_hacker