Skip to content

How can we set up a caching simulation experiment with a fixed cache size in GBs/MBs? #1415

Answered by ben-manes
super-shayan asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@super-shayan
Comment options

Answer selected by ben-manes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants