Public bug reported:
I found the windows vm that I boot with 2C16G40G will allocate all memory in
compute node, and it could only be set memory allocation manually with `virsh
qemu-monitor-command <vm-id> --hmp "balloon 8192"` to change actual memory
usage in compute node.
In the meantime, the reduced memory in compute node will be increase in the
inner windows system.
In contrast, The memory of Linux vm can be allocated automatically by balloon,
and allocate actual memory by check top command in compute node.
I think the windows vm should allocate memory automatically like Linux vm.
And if I set memory manually, the reduced memory usage in compute node should
not transform into the usage memory of inner windows system and reduce the
available memory.
Is it a qemu bug or my incorrect configurations?
Here is my env info:
----------------------
root@cmp001:/# virsh version
Compiled against library: libvirt 6.0.0
Using library: libvirt 6.0.0
Using API: QEMU 6.0.0
Running hypervisor: QEMU 4.2.1
root@cmp001:~# virsh qemu-monitor-command instance-000112f4 --hmp "info balloon"
balloon: actual=16384
root@cmp001:~# top -p 8977
top - 10:12:37 up 14 days, 16:05, 1 user, load average: 5.12, 5.29, 5.09
Tasks: 1 total, 0 running, 1 sleeping, 0 stopped, 0 zombie
%Cpu(s): 9.6 us, 5.5 sy, 0.0 ni, 84.5 id, 0.0 wa, 0.0 hi, 0.4 si, 0.0 st
KiB Mem : 13188148+total, 23065860 free, 88282144 used, 20533472 buff/cache
KiB Swap: 8388604 total, 7387032 free, 1001572 used. 38870928 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
8977 libvirt+ 20 0 18.316g 0.015t 30668 S 9.7 12.5 1938:22
qemu-system-x86
root@cmp001:~# virsh qemu-monitor-command instance-000112f4 --hmp
"balloon 8192"
root@cmp001:~# virsh qemu-monitor-command instance-000112f4 --hmp "info balloon"
balloon: actual=8192
the in-used memory of inner windows system will be increase and
available memory decreased in windows resource monitor.
** Affects: qemu (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1916313
Title:
memory allocate issue of windows vm
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1916313/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs