swap - swap file - Whonix-Gateway freezing during apt-get dist-upgrade - encrypted swap-file-creator

HulaHoop via Whonix Forum:

Alright I guess this doesn’t affect live mode since everything is redirected to RAM including the swap file.

Disabled in live mode already (but in theoretic case that was broken,
then yes). I guess. Location of swapfile is /var/swapfile.

Question is if this would push current RAM reqs way higher than it is now vs increasing GW RAM without adding a swap file.

Why would adding a swap file increase GW RAM requirements? Perhaps I got
that wrong.

Well, adding 256 MB or 512 MB “real” (virtual) RAM instead of a swap
file could abolish need for a swapfile. Additional 512 MB should e
sufficient for sure since swapfile has that size currently and solved
these issues.

swap-file-creator could abort creating a swap file if more than XXX MB
of RAM is available. Such a feature would be easy to add if that seems
useful.

I don’t like swap / swapfile since use of these can make the system
super slow but it seems necessary. Also therefore, related, swappiness
kernel setting is set to lowest:

https://github.com/Whonix/swappiness-lowest/blob/master/etc/sysctl.d/swappiness-lowest.conf

Since we don’t care about memorizing passphrases here just use a randomly generated character string.

Indeed.

1 Like