On 02/05/2020 05:06, tu...@posteo.de wrote:
as far as I know, the hibernation mechanism of the kernel uses swap
as storage place for an RAM image.
If you plan to use hibernation, I think you need swap space in the
size of your RAM.
For this case you can set vm.swappiness=0 and still have a swap
partition. This disables swap for normal use but still has a swap
partition available for things like hibernation. Just create a .conf
file in /etc/sysctl.d/ (I use "/etc/sysctl.d/local.conf") with this in it:
vm.swappiness=0
This will apply the setting during boot. To set it for the currently
running session as well without having to reboot, execute:
sysctl vm.swappiness=0
as root.