Originally posted this in IRC and was suggested I post here.
I have a proxmox host running 4.4.67-1-pve which is using 99% of it's swap. Yesterday it was one vm using ~25G of swap. I stopped/started the VM (to kill the process, rebooting the guest did not reduce swap usage) and swap went back to 0.
Today a different VM is using ~2GB of the pve host's swap even though the pve host has ~300G of ram free. Swappiness value is set to the default of 60. I was wondering what is causing this and if anyone had suggestions (besides disabling swap) to fixing/reducing swap usage.
Kernel:
4.4.67-1-pve
The process that was using 25 gigs of swap earlier:
root@pve21:~# ps aux | grep 111990
root 111990 9.2 67.3 380010720 266788460 ? Sl Aug10 4596:52 /usr/bin/kvm -id 21001 -chardev socket,id=qmp,path=/var/run/qemu-server/21001.qmp,server,nowait -mon chardev=qmp,mode=control -pidfile /var/run/qemu-server/21001.pid -daemonize -smbios type=1,uuid=14f15c80-3332-4974-9ebe-ac3a040f1a7a -name prodapps53 -smp 36,sockets=2,cores=18,maxcpus=36 -nodefaults -boot menu=on,strict=on,reboot-timeout=1000,splash=/usr/share/qemu-server/bootsplash.jpg -vga cirrus -vnc unix:/var/run/qemu-server/21001.vnc,x509,password -cpu kvm64,+lahf_lm,+sep,+kvm_pv_unhalt,+kvm_pv_eoi,enforce -m 370000 -object memory-backend-ram,id=ram-node0,size=185000M -numa node,nodeid=0,cpus=0-17,memdev=ram-node0 -object memory-backend-ram,id=ram-node1,size=185000M -numa node,nodeid=1,cpus=18-35,memdev=ram-node1 -k en-us -device pci-bridge,id=pci.2,chassis_nr=2,bus=pci.0,addr=0x1f -device pci-bridge,id=pci.1,chassis_nr=1,bus=pci.0,addr=0x1e -device piix3-usb-uhci,id=uhci,bus=pci.0,addr=0x1.0x2 -device usb-tablet,id=tablet,bus=uhci.0,port=1 -iscsi initiator-name=iqn.1993-08.org.debian:01:17edd9d0721a -drive if=none,id=drive-ide2,media=cdrom,aio=threads -device ide-cd,bus=ide.1,unit=0,drive=drive-ide2,id=ide2,bootindex=200 -drive file=/array/vd2/storevg/livelv/images/21001/vm-21001-disk-1.qcow2,if=none,id=drive-virtio0,format=qcow2,cache=none,aio=native,detect-zeroes=on -device virtio-blk-pci,drive=drive-virtio0,id=virtio0,bus=pci.0,addr=0xa,bootindex=100 -drive file=/array/vd2/storevg/livelv/images/21001/vm-21001-disk-2.qcow2,if=none,id=drive-virtio1,format=qcow2,cache=none,aio=native,detect-zeroes=on -device virtio-blk-pci,drive=drive-virtio1,id=virtio1,bus=pci.0,addr=0xb -netdev type=tap,id=net0,ifname=tap21001i0,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on -device virtio-net-pci,mac=3E:EB:F2:29:CF:43,netdev=net0,bus=pci.0,addr=0x12,id=net0,bootindex=300
I have a proxmox host running 4.4.67-1-pve which is using 99% of it's swap. Yesterday it was one vm using ~25G of swap. I stopped/started the VM (to kill the process, rebooting the guest did not reduce swap usage) and swap went back to 0.
Today a different VM is using ~2GB of the pve host's swap even though the pve host has ~300G of ram free. Swappiness value is set to the default of 60. I was wondering what is causing this and if anyone had suggestions (besides disabling swap) to fixing/reducing swap usage.
Kernel:
4.4.67-1-pve
The process that was using 25 gigs of swap earlier:
root@pve21:~# ps aux | grep 111990
root 111990 9.2 67.3 380010720 266788460 ? Sl Aug10 4596:52 /usr/bin/kvm -id 21001 -chardev socket,id=qmp,path=/var/run/qemu-server/21001.qmp,server,nowait -mon chardev=qmp,mode=control -pidfile /var/run/qemu-server/21001.pid -daemonize -smbios type=1,uuid=14f15c80-3332-4974-9ebe-ac3a040f1a7a -name prodapps53 -smp 36,sockets=2,cores=18,maxcpus=36 -nodefaults -boot menu=on,strict=on,reboot-timeout=1000,splash=/usr/share/qemu-server/bootsplash.jpg -vga cirrus -vnc unix:/var/run/qemu-server/21001.vnc,x509,password -cpu kvm64,+lahf_lm,+sep,+kvm_pv_unhalt,+kvm_pv_eoi,enforce -m 370000 -object memory-backend-ram,id=ram-node0,size=185000M -numa node,nodeid=0,cpus=0-17,memdev=ram-node0 -object memory-backend-ram,id=ram-node1,size=185000M -numa node,nodeid=1,cpus=18-35,memdev=ram-node1 -k en-us -device pci-bridge,id=pci.2,chassis_nr=2,bus=pci.0,addr=0x1f -device pci-bridge,id=pci.1,chassis_nr=1,bus=pci.0,addr=0x1e -device piix3-usb-uhci,id=uhci,bus=pci.0,addr=0x1.0x2 -device usb-tablet,id=tablet,bus=uhci.0,port=1 -iscsi initiator-name=iqn.1993-08.org.debian:01:17edd9d0721a -drive if=none,id=drive-ide2,media=cdrom,aio=threads -device ide-cd,bus=ide.1,unit=0,drive=drive-ide2,id=ide2,bootindex=200 -drive file=/array/vd2/storevg/livelv/images/21001/vm-21001-disk-1.qcow2,if=none,id=drive-virtio0,format=qcow2,cache=none,aio=native,detect-zeroes=on -device virtio-blk-pci,drive=drive-virtio0,id=virtio0,bus=pci.0,addr=0xa,bootindex=100 -drive file=/array/vd2/storevg/livelv/images/21001/vm-21001-disk-2.qcow2,if=none,id=drive-virtio1,format=qcow2,cache=none,aio=native,detect-zeroes=on -device virtio-blk-pci,drive=drive-virtio1,id=virtio1,bus=pci.0,addr=0xb -netdev type=tap,id=net0,ifname=tap21001i0,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on -device virtio-net-pci,mac=3E:EB:F2:29:CF:43,netdev=net0,bus=pci.0,addr=0x12,id=net0,bootindex=300