2 ms·
With ZFS that wouldn't necessarily help. I've been using ZFS at work for many years with mostly large files. Even if I repeatedly read the same file as fast as
by usefulcat 2y ago
With ZFS that wouldn't necessarily help. I've been using ZFS at work for many years with mostly large files. Even if I repeatedly read the same file as fast as possible, ZFS will not cache the entire thing in memory (there's no shortage of RAM so that's not it). This is unlike most linux filesystems, which are usually pretty aggressive with caching.
Maybe there is some combination of settings that will get it to cache more aggressively; just saying that it's not a given that it will do so.
- kaliszad 2y agoThe ZFS ARC cache tries to keep a balance between most frequently and least recently used data. Also, by default, ZFS ARC only fills out to a maximum of about half the available RAM. You can change that at runtime (by writing the size in bytes to /sys/module/zfs/parameters/zfs_arc_max or setting the module e.g. in /etc/modporbe.d/zfs.conf to something like this options zfs zfs_arc_max=<size in bytes> ). But be careful, as the ZFS ARC does not play that nice with the OOM killer.