What triggers L2 cache flush? Topic is solved

FAQ, getting help, user experience about PrimoCache
Post Reply
Magistar
Level 3
Level 3
Posts: 11
Joined: Thu Nov 30, 2017 3:09 am

What triggers L2 cache flush?

Post by Magistar »

I noticed that today my cache hit rate is only 32%. Closer inspection showed that 98 GB of L2 cache is free, the L2 partition is 115 GB.
Since I use 10% for write cache this means almost no data is in the L2 cache. The write cache is only 32 MB free. So it appears the write cache is not emptying itself over time. I now adjusted to 15% write cache and 5 GB is now free in write.

What is going on? Can this be caused by 0 MB l1 cache?

cfg export:

Code: Select all

   ¨   Oî      HÂ%9>ˆÚE²ãžaÚV           <              ÿÿÿÿ           ÿÿÿÿ              H     ÀÙ                 W¿-ªåsðB„ÌMಗ˜         •W      Û   
User avatar
Support
Support Team
Support Team
Posts: 3627
Joined: Sun Dec 21, 2008 2:42 am

Re: What triggers L2 cache flush?

Post by Support »

The cache space finally will get full. But this is not a problem. It just tells you the all cache space has data cached. PrimoCache will automatically runs the cache algorithm, replacing outdated cache data by new incoming data. There's no need to free cache content when the cache space is full, because old cache content will be replaced.

And regarding the L2 cache reset, was there an abnormal shutdown before? PrimoCache L2 has a verify mechanism to ensure the integrity of the cache data. If there's an abnormal shutdown, PrimoCache will reset L2 cache.
Magistar
Level 3
Level 3
Posts: 11
Joined: Thu Nov 30, 2017 3:09 am

Re: What triggers L2 cache flush?

Post by Magistar »

Ok thanks for clarifying. But then how can I verify the write cache is actually working?

Regarding L2, not about the shutdown. Will keep an eye on it.
User avatar
Support
Support Team
Support Team
Posts: 3627
Joined: Sun Dec 21, 2008 2:42 am

Re: What triggers L2 cache flush?

Post by Support »

I assume you enable the defer-write since you use the write cache. You may check the statistics "Total Write (Req)", "Total Write (L1/L2)", "Total Write (Disk)" and "Deferred Blocks". When the defer-write is enabled, if you write a file to the target volume, you will see "Total Write (Req)" and "Total Write (L1/L2)" increases, but Total Write (Disk) keeps unchanged. You will also see "Deferred Blocks" increases. These indicate that the file is written to L1/L2 cache first and is deferred to write to the target volume.
User avatar
RAMbo
Level 6
Level 6
Posts: 73
Joined: Wed May 11, 2011 7:50 am

Re: What triggers L2 cache flush?

Post by RAMbo »

support wrote:And regarding the L2 cache reset, was there an abnormal shutdown before? PrimoCache L2 has a verify mechanism to ensure the integrity of the cache data. If there's an abnormal shutdown, PrimoCache will reset L2 cache.
Does that mean usually L2 isn't flushed on a reboot? Is the documentation outdated?
http://www.romexsoftware.com/en-us/fancy-cache/faq.html
Q: Is L2 Cache data persistent across computer restarts?

A: No. Currently it is not.
User avatar
Jaga
Contributor
Contributor
Posts: 692
Joined: Sat Jan 25, 2014 1:11 am

Re: What triggers L2 cache flush?

Post by Jaga »

RAMbo wrote:Does that mean usually L2 isn't flushed on a reboot? Is the documentation outdated?
http://www.romexsoftware.com/en-us/fancy-cache/faq.html
Fancycache is the older product, now renamed and called Primocache. That FAQ is outdated. See the current Primocache FAQ for the right information: http://www.romexsoftware.com/en-us/prim ... ation.html

If you enable Volatile Cache Contents, Primocache will flush at reboot time. If you disable it, L2 cache contents are preserved across reboots.
Volatile Cache Contents: Cache contents in the level-2 storage are not preserved when the system is rebooted. This option is usually for multi-boot computers where another operating system may modify cached volumes, leading to the inconsistency between cache contents and source data.
User avatar
RAMbo
Level 6
Level 6
Posts: 73
Joined: Wed May 11, 2011 7:50 am

Re: What triggers L2 cache flush?

Post by RAMbo »

Aaaaarrrrgh, I didn't even notice it was about FancyCache. I found the statement when Googling for L2 in PrimoCache.
Mystery solved. Thanks!
Post Reply