5

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.

chinskiy
  • 2,557
  • 4
  • 21
  • 40

2 Answers2

1

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.

j_random_hacker
  • 50,331
  • 10
  • 105
  • 169
1

I could suggest you one of faker library depending on the programming language.

Marcel Djaman
  • 1,276
  • 1
  • 17
  • 34
  • Nice library, but can you describe more how to use this library to generate data according to my question(in any language you like)? – chinskiy Nov 26 '15 at 11:53
  • what are the generate data format do you expect? Json? – Marcel Djaman Nov 27 '15 at 13:15
  • Problem not in format, problem in data what this library return. This library return some random data, but I need a tool what can write in separate file each memory adress or memory page, or memory block(like in ext4) what need OS to run calculator for example. Maybe I need specify this in question. – chinskiy Mar 01 '16 at 23:46