id = 2572 title = "Guest os=Windows , qemu. Shutdown very slow. Memory allocation issue." state = "opened" created_at = "2024-09-14T16:39:54.773Z" closed_at = "n/a" labels = ["accel: KVM", "guest: Windows", "target: i386"] url = "https://gitlab.com/qemu-project/qemu/-/issues/2572" host-os = "Linux - Fedora 40" host-arch = "x86-64" qemu-version = "qemu-8.2.6-3.fc40.x86_64" guest-os = "Windows 11" guest-arch = "x86-64" description = """simplifiying - libvirt config: ``` 33554432 131072 ``` when use `` less than `` - at/after shutdown of guest os cpu hangs on 100% and lasts long- approximately 3-5 minutes if change to ``` 33554432 33554432 ``` then shutdown takes less some seconds problem occurs not (shutdown of VM takes some seconds) in cases when not used balloon device: 1 `` equal to `` 2 memballoon driver disabled in windows 3 memballoon disabled on libvirt with "model=none" (and therefore not passed to qemu command line)""" reproduce = "n/a" additional = """on the guest : * used drivers from virtio-win-0.1.262.iso - membaloon ver 100.95.104.26200 * possible combination of all or some components monitored next: `virsh dommemstat VMName` at shutdown time there grows "rss" till MaxMem, but very slowly. aLso on `virsh setmem VMName --live --size 32G` rss grows slow - but takes 2 times less than at simple shutdown time ( = at shutdown seems occurs memory allocation and deallocation at the same time) so something with some or all libvirt/qemu/balloon parts not so nice"""