Re:DwarFS: A fast high compression read-only file system
by mhx77 on Sunday November 29, 2020 @05:07PM
(#25248540)
Files that you've accessed will be kept in the kernel's cache. The cache I was talking about is a cache for decompressed blocks. Single files can stretch across multiple blocks, so you need to be able to keep more than one in memory anyway. However, decompressed files are kept in the cache in the hope that further (or even concurrent) reads will access the same blocks. Taking the example from the README where over a 1000 perl binaries are being executed concurrently, that cache typically has hit rates of 99+%:
For example, reducing the cache size from 512M (default) to 32M increases the time it takes to run 1139 binaries from 2.5 seconds to almost 40 seconds.
[ Parent
| on HN ]
Re:DwarFS: A fast high compression read-only file system
by JoshTriplett on Sunday November 29, 2020 @05:27PM
(#25248675)
Ah, I see. So this specifically saves the decompression time for data you've already decompressed, if another file references the same data?