- I have a large HDD storage space with a cache created by Primocache.
- The current cache setup is 200GB L2 read-only cache and 4GB L1 write-only cache with defer-write enabled.
Most of the time 4GB write cache is sufficient and there is no urgent write flush. However, in some rare occasions the file size to be written can be around 8~10 GB and thus I'm thinking about allocating 5~10GB write space in L2 cache from the current 200GB space. This could resolve the issue of urgent writing but I don't want L2 written too often either
Question
For writing data, will Primocache always use L1 write cache unless the deferred data amount exceeds L1 write-cache space?
Meantime, I'm also interested in how Primocache decides to place data in L1 or L2 when the same type (read or write) caches are allocated on both layers?