Proxmox RAM und SWAP Konfiguration

Version vom 29. Juni 2022, 07:14 Uhr von Manuel (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „<syntaxhighlight lang="bash"> # Check the current value cat /proc/sys/vm/swappiness # Define the new one, system swap when your physical is about 10 % memory remaining sysctl vm.swappiness=10 # Disable SWAP, it'll take some times to clean the SWAP area swapoff -a # wait until swap empty # Enable the SWAP with the new value swapon -a # Check if well applied cat /proc/sys/vm/swappiness </syntaxhighlight> Quelle: https://blog.lbdg.me/proxmox-best-perf…“)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
# Check the current value
cat /proc/sys/vm/swappiness

# Define the new one, system swap when your physical is about 10 % memory remaining
sysctl vm.swappiness=10

# Disable SWAP, it'll take some times to clean the SWAP area
swapoff -a

# wait until swap empty

# Enable the SWAP with the new value
swapon -a

# Check if well applied
cat /proc/sys/vm/swappiness


Quelle: https://blog.lbdg.me/proxmox-best-performance-disable-swappiness/