Oh, and if anyone is actually curious about this -- setting up a persistent L2ARC massively decreased my loading times for Death Stranding Director's Cut as well as increased how fast both it and Epic Games start. If I had to guess, loading the game went from around a 10 Mississipp count to a 3 Mississipp. Staring Epic went from a 4 Mississipp to practically instantaneously.
I used "tar -cv /path/to/DeathStrandingDC 2>/tmp/tt |pv >/dev/null" as a way to try to fill the cache with the game. That managed to cache 51.3 of the game's 75GB. I should probably do that on my Wine prefix, too.
/etc/modprobe.d/zfs.conf
headroom=0 and rebuild_enabled=1 enable the persistent L2ARC
noprefetch lets the L2ARC cache anything the ARC evicts
write_max/boost increases the default write speed of 8mb/s to 4000mb/s because it's a damn 4500mb/s NVMe.
Ignore max_recordsize. That has nothing to do with L2ARC. I have it set but all my pools use 1M, not 16M, like that would allow. That does nothing outside of allowing someone to set recordsize<1M during creation time which I'll probably do for future pools to store games and RAW photos. F'ing read up on that setting before you use it. Don't just blindly copy/paste my stuff.
Those are also set in /etc/kernel/cmdline for UKIs.
I used "tar -cv /path/to/DeathStrandingDC 2>/tmp/tt |pv >/dev/null" as a way to try to fill the cache with the game. That managed to cache 51.3 of the game's 75GB. I should probably do that on my Wine prefix, too.
/etc/modprobe.d/zfs.conf
Code:
options zfs zfs_max_recordsize=16777216 options zfs l2arc_headroom=0 options zfs l2arc_write_max=4194304000 options zfs l2arc_write_boost=4194304000 options zfs l2arc_rebuild_enabled=1 options zfs l2arc_noprefetch=0
noprefetch lets the L2ARC cache anything the ARC evicts
write_max/boost increases the default write speed of 8mb/s to 4000mb/s because it's a damn 4500mb/s NVMe.
Ignore max_recordsize. That has nothing to do with L2ARC. I have it set but all my pools use 1M, not 16M, like that would allow. That does nothing outside of allowing someone to set recordsize<1M during creation time which I'll probably do for future pools to store games and RAW photos. F'ing read up on that setting before you use it. Don't just blindly copy/paste my stuff.
Those are also set in /etc/kernel/cmdline for UKIs.
Comment