Depending on the file-size I wonder if it'd be better to just prefetch the entire file into RAM.
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.
/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.I'm using Jellyfin server and Infuse on Apple TV, so I don't have a great way to force-slurp a file on first read, at least not without patching Jellyfin. And I'm not super eager to learn C#.
Even if I were streaming to mpv, most of my lan is only gigabit which is much less than what my storage array can put out.