4 ms·
IIRCC it's not recommend to have swap on a zvol. So you would need a non-zfs managed partition/device for swap. Not sure about current status? https://github.
by e12e 3y ago
IIRCC it's not recommend to have swap on a zvol. So you would need a non-zfs managed partition/device for swap.
Not sure about current status?
https://github.com/openzfs/zfs/issues/7734 https://github.com/openzfs/zfs/issues/7734
https://github.com/openzfs/zfs/issues/342 https://github.com/openzfs/zfs/issues/342
https://utcc.utoronto.ca/~cks/space/blog/solaris/ZFSForSwapMyViews https://utcc.utoronto.ca/~cks/space/blog/solaris/ZFSForSwapM...
- temp0826 3y agoSwap on a zvol I understand, disabling it entirely seems questionable, no?
- psanford 3y agoThis is a dedicated NAS. What workload do you expect to be paging to disk? Your primary workload is already reading and writing bits off disk.
- temp0826 3y agoBecause we live in the real world and no system is truly in a bubble if it's connected to a network. But mostly because seeing oom-killer messages in dmesg makes me sad :).
- Dylan16807 3y agoIf something gets leaky enough then it's still going to hurt performance for a while and die. Swap delays that but extra RAM delays it too. If you take a use case where 2GB of memory is fine, and give it 8GB, then you already solved the problem swap would solve. You can always add more but you're past the point of diminishing returns.
- Dylan16807 3y agoSince there's already a non-ZFS system disk, it's a little weird to not put a swap partition on it. But I wouldn't say it's questionable. On a NAS I doubt you'd ever use even one full gigabyte of swap space. Keeping it simple is fine.
- usefulcat 3y agoHe already has a separate NVMe drive for the OS, he could put the swap on that.
- e12e 3y agoOnly if he's not running rootfs on zfs? Ed: I see he doesn't - but could (and optionally with a slice for swap partition): https://openzfs.github.io/openzfs-docs/Getting%20Started/Ubuntu/Ubuntu%2022.04%20Root%20on%20ZFS.html#overview https://openzfs.github.io/openzfs-docs/Getting%20Started/Ubu...