Replies: 1 comment 4 replies
-
|
Hi @laustam ,
|
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Inside of
cache.h, the structcache_tis defined with some important variables descriptive of the specific cache eviction algorithm used. One of these variables is theint32_t obj_md_size.My first question would be, (Q1) what does the
obj_md_sizevariable exactly represent? I suppose its value represents the number of bytes that the cache uses for metadata stored.A follow-up question would be, (Q2) is
obj_md_sizecorrectly initialized inSieve_init()andLRU_init()? The current implementation does the following: If an object's metadata should be considered, Sieve's initialisation function setsobj_md_sizeto 1, althoughSieve_params_tconsists of three separatecache_obj_tpointers. On the other hand, LRU's initialisation function sets this value to 8 * 2; (Q3) does this represent the two pointers for the queue's head and tail?Beta Was this translation helpful? Give feedback.
All reactions