Place a limit on deferred Blocks
Posted: Fri Apr 18, 2014 6:57 pm
With the release of 1.0 I have decided to try the cache on my live system.
One thing that is clear is that in my environment at least it would be good to be able to limit the total number of outstanding deferred blocks. I've defer-writes set to 1s (would be nice to support .5s) as all I wish to do is catch the re-writting of blocks caused by database work, but as I also use virtual machines on my system the number of deferred blocks can hit 100,000+ when I suspend a VM and a long wait for these blocks to be written back to the underlying disk(s).
It would be helpful if I could set a limit on the number of deferred blocks that the program will allow before it just slows down its acceptance of new blocks based on the speed at which it is able to write out blocks to the underlying disk(s).
My only solution at the moment is to turn deferred blocks off, which is a shame.
One thing that is clear is that in my environment at least it would be good to be able to limit the total number of outstanding deferred blocks. I've defer-writes set to 1s (would be nice to support .5s) as all I wish to do is catch the re-writting of blocks caused by database work, but as I also use virtual machines on my system the number of deferred blocks can hit 100,000+ when I suspend a VM and a long wait for these blocks to be written back to the underlying disk(s).
It would be helpful if I could set a limit on the number of deferred blocks that the program will allow before it just slows down its acceptance of new blocks based on the speed at which it is able to write out blocks to the underlying disk(s).
My only solution at the moment is to turn deferred blocks off, which is a shame.