Here is what I got. Host server with 96GB ram. Installed Proxmox 4 on it and created 1 VM (CentOS 7) with allotted 65GB ram and 1 LXC (MySQL tempalte) with 1GB allotted ram. From control panel it shows that CentOS 7 vm is using 3.5GB ram and LXC is using 77MB or ram. When I logged in to control panel yesterday, it showed that Proxmox node was using 25GB of ram out of 96GB?!! I checked CentOS vm - it was still using 3.5GB and LXC was still using 77MB. Ran update. Rebooted host server. After reboot on the node it showed 5GB or ram usage. Logged in today and now it shows 10GB of ram usage (CentOS and LXC are still using previous numbers). Not sure what causes it. I ran some commands on the host to display the ram usage. Can someone help me to spot the problem? Is it a bug or maybe configuration problem? Any input is greatly appreciated.
root@s118294:~# pveversion
pve-manager/5.1-36/131401db (running kernel: 4.10.17-4-pve)
root@s118294:~# free -m
total used free shared buff/cache available
Mem: 96651 10871 84865 54 914 85015
Swap: 20279 0 20279
root@s118294:~# cat /proc/meminfo
MemTotal: 98971528 kB
MemFree: 86902932 kB
MemAvailable: 87057736 kB
Buffers: 263876 kB
Cached: 584100 kB
SwapCached: 0 kB
Active: 10677680 kB
Inactive: 280556 kB
Active(anon): 10114792 kB
Inactive(anon): 55104 kB
Active(file): 562888 kB
Inactive(file): 225452 kB
Unevictable: 5020 kB
Mlocked: 5020 kB
SwapTotal: 20766716 kB
SwapFree: 20766716 kB
Dirty: 252 kB
Writeback: 0 kB
AnonPages: 10114732 kB
Mapped: 123428 kB
Shmem: 55984 kB
Slab: 220556 kB
SReclaimable: 89288 kB
SUnreclaim: 131268 kB
KernelStack: 8816 kB
PageTables: 34364 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 70252480 kB
Committed_AS: 71502380 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 0 kB
VmallocChunk: 0 kB
HardwareCorrupted: 0 kB
AnonHugePages: 9351168 kB
ShmemHugePages: 0 kB
ShmemPmdMapped: 0 kB
CmaTotal: 0 kB
CmaFree: 0 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
DirectMap4k: 156144 kB
DirectMap2M: 7153664 kB
DirectMap1G: 95420416 kB
root@s118294:~# vmstat -s
98971528 K total memory
11128724 K used memory
10676872 K active memory
280560 K inactive memory
86905344 K free memory
263988 K buffer memory
673472 K swap cache
20766716 K total swap
0 K used swap
20766716 K free swap
219447 non-nice user cpu ticks
0 nice user cpu ticks
134080 system cpu ticks
267659257 idle cpu ticks
5362 IO-wait cpu ticks
0 IRQ cpu ticks
1413 softirq cpu ticks
0 stolen cpu ticks
2343388 pages paged in
3473353 pages paged out
0 pages swapped in
0 pages swapped out
31978788 interrupts
64546895 CPU context switches
1509382934 boot time
174520 forks
top
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
6006 root 20 0 65.195g 8.955g 11988 S 5.3 9.5 27:26.10 kvm
1473 root 20 0 315708 71536 9648 S 1.3 0.1 5:09.74 pvestatd
1474 root 20 0 310860 78124 13840 S 1.0 0.1 3:56.00 pve-firewa+
25015 root 20 0 89896 152 0 S 0.3 0.0 0:00.87 pvefw-logg+
1 root 20 0 57424 7080 5208 S 0.0 0.0 0:04.96 systemd
2 root 20 0 0 0 0 S 0.0 0.0 0:00.05 kthreadd
4 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/0:+
7 root 20 0 0 0 0 S 0.0 0.0 0:00.05 ksoftirqd/0
8 root 20 0 0 0 0 S 0.0 0.0 0:13.69 rcu_sched
9 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcu_bh
10 root rt 0 0 0 0 S 0.0 0.0 0:00.05 migration/0
11 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 lru-add-dr+
12 root rt 0 0 0 0 S 0.0 0.0 0:00.19 watchdog/0
13 root 20 0 0 0 0 S 0.0 0.0 0:00.00 cpuhp/0
14 root 20 0 0 0 0 S 0.0 0.0 0:00.00 cpuhp/1
root@s118294:~# pveversion
pve-manager/5.1-36/131401db (running kernel: 4.10.17-4-pve)
root@s118294:~# free -m
total used free shared buff/cache available
Mem: 96651 10871 84865 54 914 85015
Swap: 20279 0 20279
root@s118294:~# cat /proc/meminfo
MemTotal: 98971528 kB
MemFree: 86902932 kB
MemAvailable: 87057736 kB
Buffers: 263876 kB
Cached: 584100 kB
SwapCached: 0 kB
Active: 10677680 kB
Inactive: 280556 kB
Active(anon): 10114792 kB
Inactive(anon): 55104 kB
Active(file): 562888 kB
Inactive(file): 225452 kB
Unevictable: 5020 kB
Mlocked: 5020 kB
SwapTotal: 20766716 kB
SwapFree: 20766716 kB
Dirty: 252 kB
Writeback: 0 kB
AnonPages: 10114732 kB
Mapped: 123428 kB
Shmem: 55984 kB
Slab: 220556 kB
SReclaimable: 89288 kB
SUnreclaim: 131268 kB
KernelStack: 8816 kB
PageTables: 34364 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 70252480 kB
Committed_AS: 71502380 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 0 kB
VmallocChunk: 0 kB
HardwareCorrupted: 0 kB
AnonHugePages: 9351168 kB
ShmemHugePages: 0 kB
ShmemPmdMapped: 0 kB
CmaTotal: 0 kB
CmaFree: 0 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
DirectMap4k: 156144 kB
DirectMap2M: 7153664 kB
DirectMap1G: 95420416 kB
root@s118294:~# vmstat -s
98971528 K total memory
11128724 K used memory
10676872 K active memory
280560 K inactive memory
86905344 K free memory
263988 K buffer memory
673472 K swap cache
20766716 K total swap
0 K used swap
20766716 K free swap
219447 non-nice user cpu ticks
0 nice user cpu ticks
134080 system cpu ticks
267659257 idle cpu ticks
5362 IO-wait cpu ticks
0 IRQ cpu ticks
1413 softirq cpu ticks
0 stolen cpu ticks
2343388 pages paged in
3473353 pages paged out
0 pages swapped in
0 pages swapped out
31978788 interrupts
64546895 CPU context switches
1509382934 boot time
174520 forks
top
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
6006 root 20 0 65.195g 8.955g 11988 S 5.3 9.5 27:26.10 kvm
1473 root 20 0 315708 71536 9648 S 1.3 0.1 5:09.74 pvestatd
1474 root 20 0 310860 78124 13840 S 1.0 0.1 3:56.00 pve-firewa+
25015 root 20 0 89896 152 0 S 0.3 0.0 0:00.87 pvefw-logg+
1 root 20 0 57424 7080 5208 S 0.0 0.0 0:04.96 systemd
2 root 20 0 0 0 0 S 0.0 0.0 0:00.05 kthreadd
4 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/0:+
7 root 20 0 0 0 0 S 0.0 0.0 0:00.05 ksoftirqd/0
8 root 20 0 0 0 0 S 0.0 0.0 0:13.69 rcu_sched
9 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcu_bh
10 root rt 0 0 0 0 S 0.0 0.0 0:00.05 migration/0
11 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 lru-add-dr+
12 root rt 0 0 0 0 S 0.0 0.0 0:00.19 watchdog/0
13 root 20 0 0 0 0 S 0.0 0.0 0:00.00 cpuhp/0
14 root 20 0 0 0 0 S 0.0 0.0 0:00.00 cpuhp/1