Currently, cache eviction is only done at Store open/close time (IIRC).
Problem:
If the cache is enabled (e.g. C_WRITETHROUGH and a limited cache size [== a full mirror is not desired]), reading a lot of data from the store will use up as much disk space as the (deduplicated) size of the loaded objects.
When using partial loads it is even worse, as it always caches the full object, not just the range requested.
So, guess we need to do cache eviction more frequently, but not on every request.
Currently, cache eviction is only done at
Storeopen/close time (IIRC).Problem:
If the cache is enabled (e.g.
C_WRITETHROUGHand a limited cache size [== a full mirror is not desired]), reading a lot of data from the store will use up as much disk space as the (deduplicated) size of the loaded objects.When using partial loads it is even worse, as it always caches the full object, not just the range requested.
So, guess we need to do cache eviction more frequently, but not on every request.