On 08/16/2018 08:21 PM, Kelly Dean wrote: > > [email protected] writes: > >> I also disabled mine in the AppVM's with no issues - although for some >> reason it magically re-activates when I update which is aggravating and >> I was wondering why that is if anyone can answer me. > > How are you disabling it? Instead of editing /etc/sysctl.conf, just make a > new file, e.g. /etc/sysctl.d/noswap.conf, with: > vm.swappiness = 1
I edit /etc/fstab to remove the swap partition, it sticks in dom0 but doesn't stick in the VM's every time I update the template it re-enables. > That will avoid losing your setting if sysctl.conf is overwritten during > system update. > > Setting swappiness to 0 (to disable swapping) is a bad idea, since it will > subject you to the OOM killer, which is a result of the memory-overcommitment > brain damage (conflating allocation of virtual address space, physical > memory, and swap space) that Linux and its ecosystem inherited from Unix and > POSIX. The vm.overcommit_memory option can't fix that, but using 1 instead of > 0 for swappiness will swap only as much as necessary to avoid the OOM killer. > If I have swap enabled I will ruin my SSD...so I will pass. Like I said on a workstation with 64GB RAM there is absolutely zero reason to have swap I have never even used half of that RAM and even on my 8GB laptop I have never had any issues. -- You received this message because you are subscribed to the Google Groups "qubes-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/qubes-devel/fa5f284e-8076-07e4-cf6e-6f25cde710e5%40gmx.com. For more options, visit https://groups.google.com/d/optout.
0xDF372A17.asc
Description: application/pgp-keys
