When I do table_options.block_cache->GetUsage() according to this page, I keep getting block_cache being null (it is a shared pointer).
I then trace the cache constructors and destructors to lru_cache.cc. With some printfs, what I find is that this object defined around here gets constructed and destroyed many times.
I am not sure if this is due to gorocksdb & garbage collection or everything is working as desired — the block cache is just a short-lived object.
I have run “dgraph” and “dgraphloader” and “dgraphassigner”.
In any case, according to comments, and the code, it seems that the size of the block cache is capped at 8M, which is tiny. I don’t think we should worry too much about it?