by embedding-shape · 2d ago · 0 comments
echo zstd > /sys/module/zswap/parameters/compressor
echo 0 > /sys/module/spl/parameters/spl_taskq_thread_priority
echo 1000 > /sys/kernel/mm/lru_gen/min_ttl_ms
echo defer+madvise > /sys/kernel/mm/transparent_hugepage/defrag
...and some quick-n-dirty scripting[1] for ZFS drives.Fellow HNer 'networked' pointed out[3] that the compressor type was because Debian wasn't loading the zstd module on startup for some reason, so you could fix it that way as well. Dunno your distro, hopefully you don't need these hacky workarounds that continue to annoy me.
[1]https://www.reddit.com/r/zfs/comments/1qerlvn/how_to_only_se...
[context]https://www.reddit.com/r/linuxquestions/comments/1qenr06/id_... and https://wiki.archlinux.org/title/Improving_performance#Kerne...
[3]https://news.ycombinator.com/item?id=47505661
[4]https://openzfs.github.io/openzfs-docs/Performance%20and%20T...