3 ms·
This seems a bit convoluted and fragile. I agree with the sentiment to use swapfiles rather than swap partitions -- the flexibility is appealing (though in pra
by Jedd 11y ago
This seems a bit convoluted and fragile.
I agree with the sentiment to use swapfiles rather than swap partitions -- the flexibility is appealing (though in practice I rarely need to change the dimensions of mine) and the lack of measurable difference in performance over partitions removes any arguments in favour of dedicated partitions anymore.
But on my secure systems everything other than /boot is encrypted on, so I get encrypted swapfiles just by creating them as /swapfile.x -- I have a saltstack recipe that creates these on new installs automatically now, too, and that doesn't need to be changed for encrypted or non-encrypted root file systems.
The automatic creation of these (and decommissioning them later) based on ephemeral memory usage requirements is an interesting idea, and it's a shame the author hasn't gotten to that point yet. I wonder how useful that'd be in practice, though, especially in an era of 'disk is cheap'.