Sparse File LRU Cache
ternarysearch.blogspot.com
Sparse File LRU Cache
1–10 of 13 posts
Re: Sparse File LRU Cache
#2Re: Sparse File LRU Cache
#3We can talk about even more general idea of saving file space: compression. Ever heard about it used across the whole filesystems?
Re: Sparse File LRU Cache
#4We can talk about even more general idea of saving file space: compression. Ever heard about it used across the whole filesystems?
Re: Sparse File LRU Cache
#5We can talk about even more general idea of saving file space: compression. Ever heard about it used across the whole filesystems?
Re: Sparse File LRU Cache
#6The XFS issue has since been fixed (though you often have no control over which Linux version your program runs on), but in general I’d say it’s better to do such mapping in user space. In this case, there is a RocksDB present anyway, so this would come at no performance cost.
Re: Sparse File LRU Cache
#7Or even just bunch of little files representing segments of larger files.
Re: Sparse File LRU Cache
#8Re: Sparse File LRU Cache
#9Re: Sparse File LRU Cache
#10I simply use SQLite for this. You can store the cache blocks in the SQLite database as blobs. One file, no sparse files. I don't think the "sparse file with separate metadata" approach is necessary here, and sparse files have hidden performance costs that grow with the number of populated extents. A sparse file is not all that different than a directory full of files. It might look like you're avoiding a filesystem l…
I wonder if attaching a temporary db on fast storage, filled with results of the dense queries, would work without the big assumptions.