changing memory size with virsh setmem - results only visible in domain, not on host

Jim Fehlig jfehlig at suse.com
Sat Mar 7 00:22:45 UTC 2020


On 3/6/20 10:45 AM, Lentes, Bernd wrote:
> Hi,
> 
> i have a Linux domain (Ubuntu 14.04) where we like to be able to change the amount of usable memory.
> We have a balloon device and statistics are switched in 5 sec. rhythm.
> The domain shows very quickly changes (following top) when we change the memory size with setmem, but the host does not show changes in the use
> of memory for the respective domain.

How are you looking at it from the host? From the memory-related values in 
'virsh dominfo' or 'virsh dumpxml'? Is the host KVM or Xen?

> Is that expected behavior ?
> 
> Host is SLES 12 SP4, libvirt is 4.0.0-8.15.2

There was a Xen bug along these lines, fixed by commit 11c8aca9. I've verified 
your version of libvirt contains that fix.

Regards,
Jim





More information about the libvirt-users mailing list