How can we set up a caching simulation experiment with a fixed cache size in GBs/MBs? #1415
-
It seems that in the configuration file, we can set the total number of items to cache here, but I wanted to ask if it was possible to do that with regard to cache size in GBs/MBs etc. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Some of the caches and traces support a weighted size, were you specify that value in terms of bytes. Those policies and traces are annotated with that characteristic, e.g. CaffeinePolicy and TwitterTraceReader. However, I have not spent a lot of time on weighted size evaluations so there may be improvements needed, e.g. the simulator's TinyLFU sketch naively presizes assuming a fixed entry count whereas Caffeine will grow it as needed. A lot of these fixes were made in a @ohadeytan's size research fork, but we never did the work to upstream it. It would be good to do someday, as well as incorporate his ideas into the library. |
Beta Was this translation helpful? Give feedback.
Some of the caches and traces support a weighted size, were you specify that value in terms of bytes. Those policies and traces are annotated with that characteristic, e.g. CaffeinePolicy and TwitterTraceReader. However, I have not spent a lot of time on weighted size evaluations so there may be improvements needed, e.g. the simulator's TinyLFU sketch naively presizes assuming a fixed entry count whereas Caffeine will grow it as needed. A lot of these fixes were made in a @ohadeytan's size research fork, but we never did the work to upstream it. It would be good to do someday, as well as incorporate his ideas into the library.