SWAP dauerhaft deaktivieren

Dec 1, 2020
13
1
1
40
Hallo,

der Proxmox Support hat mir geraten meinen SWAP zu deaktivieren, da dieser auf zwei von vier Nodes auf 100% war. Arbeitsspeicher war jeweils auf etwa 60%. Ich habe auch bemerkt, dass SWAP vor allem da voll wird wo viele LXC Container laufen.

Nun aber zu der eigentlichen Frage: Wie deaktiviere ich SWAP dauerhaft?
Was ich bereits versucht habe:
swapoff -a: Nach dem Neustart wieder an
swappiness von 60 auf 0 stellen und dann swapoff -a und swapon -a: SWAP läuft trotzdem ganz langsam voll und nach einem Neustart steht bei swappiness wieder die 60 drin.

Könnte mir bitte jemand aushelfen?
 
Swap wird normalerweise über die /etc/fstab eingebunden. Dort einfach die Zeile mit swap auskommentieren und nach einem Reboot wird kein swap mehr aktiviert.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!