Skip to content

PVE node SWAP usage - vm.swappiness configuration script #11368

@heinemannj

Description

@heinemannj

🌟 Briefly describe the feature

Add support for vm.swappiness configuration

📝 Detailed description

To apply vm.swappiness change on a PVE node immediately, but not persistant:

sysctl -w vm.swappiness=0

For persistant change modification of /etc/sysctl.conf:

cat <<EOF > /etc/sysctl.conf
vm.swappiness = 0
EOF

💡 Why is this useful?

PROXMOX VE node default settings for SWAP usage:

Size: 8GB
vm.swappiness=64

Results in regular Netdata alerts because the PVE node SWAP usage is above 98%.
I think almost every Promox HomeLab user is facing this kind of issues too.

After the change the swap usage in most of my LXCs is under 0.1%.
https://forum.proxmox.com/threads/swap-usage-100.109491/post-780661

Only a few bestie LXCs are consuming much more (1-100%).

Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions