
Please tell me what value of latency I must configure for deferwrite in fancycache if I want next algoritm:
I want to write data from cache to hdd only when cachesize is full. And only when cachesize is not enought for new writeback data, oldest data must be write from cache to HDD.
For example In SuperCache program latency can be infinite (-lw infinite). And when infinite, write data are written to the cache only as required to make new cache mappings. As old pages age, they become eligible for cleaning to be reused for new mappings.
P.S. If I set latency=86400000 (1000days) it will be my solution? And I must choose LRU (Least Recently Used) for my task? Not LFU (Least Frequently Used)?
P.S.S. sorry for my russian-english
