PrimoCache Version: 4.3.0
Setting
I set up a cache task for a Windows storage space (Mirror) with
- 1GB L1 write-only cache and
- 200GB L2 read-only cache.
Problem
If I have a file just newly-written to that storage space, I can see L1-cache is written.
However, when I read that file, PrimoCache GUI shows no read request to the storage space.
The issue here is: the file is not written into L2 cache after it's read.
I think the root-cause is that at the moment the file was written, it's already in the memory cache of windows.
Reading the file immediately after it's written touches only the memory cache and thus no request to the storage space is sent.
This theory can be consolidated by the fact that if I use RMMMap to clear standy memory, which includes the file cache, and then read the file, I can see the value of "Cached Read" in PrimoCache GUI increase and slight later the "L2Storage Write" also increases by the same amount of data.
I feel annoyed that the latest read on a file doesn't guarantee it's cached in L2Storage.
I also see in the doc of PrimoCache suggests keep Write-caching on the disk turned on. I wonder if we have some approach to deal with this issue?