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_t
is 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_size
variable 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_size
correctly 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_size
to 1, althoughSieve_params_t
consists of three separatecache_obj_t
pointers. 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