SWAP usage problem (BUG?)

openaspace

Active Member
Sep 16, 2019
486
13
38
Italy
Hi.
I have a problem with the swap usage on my host.
I run 2 virtual machine, IPFIRE and UBUNTU SERVER

the ip fire run without guest addon installed, and the ubuntu server have the qemu-guest installed.

The ubuntu server have set swap space of 2gb and have 8gb or ram available , and after one week the proxmox host reach 90% swap usage..near to 8gb.

I have set the ubuntu server to swappiness 10 (very low)..
If I reboot the ubuntu server the swap proxomox is newly free...

I don't understand.. I need to modify proxmox host swap settings?

Thank you.
 
# (echo "COMM PID SWAP"; for file in /proc/*/status ; do awk '/^Pid|VmSwap|Name/{printf $2 " " $3}END{ print ""}' $file; done | grep kB | grep -wv "0 kB" | sort -k 3 -n -r)
COMM PID SWAP
kvm 11821 5005840 kB
pveproxy 1458 112804 kB
pvedaemon 1427 111356 kB
pvedaemon worke23259 85048 kB
pveproxy worker8453 85008 kB
pveproxy worker8455 84896 kB
pveproxy worker8454 84848 kB
pvedaemon worke23261 84436 kB
pvedaemon worke23260 84392 kB
task UPID:v3:0018517 84116 kB
pve-ha-crm 1450 82808 kB
pve-ha-lrm 1468 77760 kB
pve-firewall 1285 48788 kB
spiceproxy 1464 46300 kB
spiceproxy work8463 45964 kB
pvestatd 1287 45520 kB
miniserv.pl 29865 23856 kB
ossec-analysisd 1122 14048 kB
pmxcfs 1156 6388 kB
systemd-journal 419 3408 kB
(sd-pam) 905 3072 kB
haveged 750 3020 kB
fail2ban-server 914 2016 kB
ossec-syscheckd 1130 1784 kB
smartd 775 1448 kB
systemd-udevd 443 1332 kB
rsyslogd 787 1292 kB
systemd 902 1272 kB
rrdcached 1103 1232 kB
systemd-logind 782 1124 kB
systemd 1 1024 kB
sshd 926 836 kB
systemd-timesyn 743 824 kB
systemd-network 687 800 kB
master 1220 716 kB
tlsmgr 1591 704 kB
qmgr 1224 668 kB
zed 778 572 kB
dbus-daemon 781 488 kB
ossec-monitord 1134 404 kB
rpcbind 733 316 kB
irqbalance 786 308 kB
lxcfs 780 252 kB
ossec-logcollec 1126 232 kB
ossec-maild 1108 196 kB
lxc-monitord 911 168 kB
cron 1236 168 kB
mdadm 628 136 kB
pickup 341 96 kB
none 979 68 kB
agetty 974 68 kB
iscsid 963 60 kB
qmeventd 792 36 kB
watchdog-mux 779 20 kB
 

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!