Top and Free are rather useless for "where does my memory go".
They show you "how much is left" which generally should be zero as the system
fills up all that is left with caches and it is good that it does so.
Therefore Top/Free are really not the tools to look for memory
consumption.
It always
Hang on. Does the "free" command has a bug too ? I mean, top, htop, free
all are showing 72gb of used memory whereas the guest really is using
8gb. It is the first time this happens in two year of service. None of
my other servers are behaving this way.
--
You received this bug notification becau
top - 18:40:57 up 2 days, 18:34, 1 user, load average: 1,29, 1,20, 1,22
Tasks: 712 total, 1 running, 587 sleeping, 0 stopped, 0 zombie
%Cpu(s): 1,9 us, 0,5 sy, 0,0 ni, 97,4 id, 0,1 wa, 0,0 hi, 0,1 si, 0,0 st
KiB Mem : 82060336 total, 2932672 free, 77069424 used, 2058232 buff/cache
I checked a 512M guest which has with some overhead ~550M
The majority is the unique guest memory and qemu allocations.
And a slight bit out of shared mappings.
PID User Command Swap USS PSS RSS
65719 libvirt-qemu /usr/bin/qemu-system-x86_64 4.0K
Will do it tonight as it is critically used. But for now smem does only
account for 33.8G of used memory whereas ps_mem sees the whole used
memory:
# smem -tk
5743 root lxd --logfile /var/snap/lxd0 148.6M 149.4M 152.8M
19111 100107 /usr/sbin/mysqld 732.0K 212.3
ps_mem is no standard command.
Could you please - while the guest is running - get some data where we can be
sure which values are reported?
example:
# Before you start the guest
$ sudo smem -tk
# Start the guest and let it run into that memory consumption
$ sudo smem -tk
$ cat /proc/meminfo
$ pi
** Attachment added: "VM definition"
https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1892648/+attachment/5403944/+files/ispmanager-master.xml
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/18926