Announcement

Collapse
No announcement yet.

High Host Memory Use After QEMU-KVM Guest Shuts Down

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [Software] High Host Memory Use After QEMU-KVM Guest Shuts Down

    Issue: High Memory Use on Host and virtiofsd core dump on Host after Virtual Guest is shut down

    Description: After the VM guest is shutdown the host memory use climbs to about 67% and then drops to normal when the core file is created. This takes about 20 to 25 seconds and then host memory returns to normal.

    Host System info:
    Operating System: Kubuntu 26.10
    KDE Plasma Version: 6.7.5
    KDE Frameworks Version: 6.29.0
    Qt Version: 6.11.2
    Kernel Version: 7.3.0-11-generic (64-bit)
    Graphics Platform: Wayland
    Processors: 8 × Intel® Core™ i7-6700 CPU @ 3.40GHz
    Memory: 16 GiB of RAM (15.5 GiB usable)
    Graphics Processor: NVIDIA GeForce GTX 745
    Manufacturer: Dell Inc.
    Product Name: XPS 8900

    I can provide additional info if needed.

    Here is a selection from the KSystem Journald Log:
    Code:
    12/5/26 2:54 PM systemd-machined New machine qemu-7-Debian13-KDE.
    12/5/26 2:54 PM systemd Started machine-qemu\x2d7\x2dDebian13\x2dKDE.scope - Virtual Machine qemu-7-Debian13-KDE.
    12/5/26 2:54 PM avahi-daemon Joining mDNS multicast group on interface vnet6.IPv6 with address fe80::fc54:ff:feae:78c8.
    12/5/26 2:54 PM avahi-daemon New relevant interface vnet6.IPv6 for mDNS.
    12/5/26 2:54 PM avahi-daemon Registering new address record for fe80::fc54:ff:feae:78c8 on vnet6.*.
    12/5/26 2:54 PM kernel virbr0: port 1(vnet6) entered learning state
    12/5/26 2:54 PM NetworkManager <info> [1796511297.3799] device (virbr0): carrier: link connected
    12/5/26 2:54 PM kernel virbr0: port 1(vnet6) entered forwarding state
    12/5/26 2:54 PM kernel virbr0: topology change detected, propagating
    12/5/26 2:55 PM systemd NetworkManager-dispatcher.service: Deactivated successfully.
    12/5/26 2:55 PM dnsmasq-dhcp DHCPREQUEST(virbr0) 192.168.122.156 52:54:00:ae:78:c8
    12/5/26 2:55 PM dnsmasq-dhcp DHCPACK(virbr0) 192.168.122.156 52:54:00:ae:78:c8 debian13
    12/5/26 2:56 PM avahi-daemon Interface vnet6.IPv6 no longer relevant for mDNS.
    12/5/26 2:56 PM avahi-daemon Leaving mDNS multicast group on interface vnet6.IPv6 with address fe80::fc54:ff:feae:78c8.
    12/5/26 2:56 PM avahi-daemon Withdrawing address record for fe80::fc54:ff:feae:78c8 on vnet6.
    12/5/26 2:56 PM kernel virbr0: port 1(vnet6) entered disabled state
    12/5/26 2:56 PM kernel vnet6 (unregistering): left allmulticast mode
    12/5/26 2:56 PM kernel vnet6 (unregistering): left promiscuous mode
    12/5/26 2:56 PM kernel virbr0: port 1(vnet6) entered disabled state
    12/5/26 2:56 PM NetworkManager <info> [1796511404.1225] device (vnet6): state change: activated -> unmanaged (reason 'unmanaged', managed-type: 'removed')
    12/5/26 2:56 PM NetworkManager <info> [1796511404.1227] device (vnet6): released from controller device virbr0
    12/5/26 2:56 PM kwalletd6 kf.wallet.kwalletd: "Item not found"
    12/5/26 2:56 PM kernel kauditd_printk_skb: 6 callbacks suppressed
    12/5/26 2:56 PM kernel audit: type=1326 audit(1796511404.128:973): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=virtiofsd pid=190659 comm="virtiofsd-backe" exe="/usr/libexec/virtiofsd" sig=31 arch=c000003e syscall=48 compat=0 ip=0x711350b3dd1b code=0x80000000
    12/5/26 2:56 PM systemd-coredump Process 190659 (virtiofsd) of user 0 terminated abnormally with signal 31/SYS, processing...
    12/5/26 2:56 PM systemd Starting NetworkManager-dispatcher.service - Network Manager Script Dispatcher Service...
    12/5/26 2:56 PM systemd Started systemd-coredump@3-12292-191521_171709-0.service - Process Core Dump (PID 191521/UID 0).
    12/5/26 2:56 PM systemd Started drkonqi-coredump-processor@3-12292-191521_171709-0.service - Pass systemd-coredump journal entries to relevant user for potential DrKonqi handling.
    12/5/26 2:56 PM systemd Started NetworkManager-dispatcher.service - Network Manager Script Dispatcher Service.
    12/5/26 2:56 PM libvirtd.service Failed to terminate process 190654 with SIGTERM: Permission denied
    12/5/26 2:56 PM kernel audit: type=1400 audit(1796511404.329:974): apparmor="DENIED" operation="signal" class="signal" profile="libvirtd" pid=1519 comm="qemu-event" requested_mask="send" denied_mask="send" signal=term peer="virtiofsd"
    12/5/26 2:56 PM kernel audit: type=1400 audit(1796511404.329:975): apparmor="DENIED" operation="signal" class="signal" profile="libvirtd" pid=1519 comm="qemu-event" requested_mask="send" denied_mask="send" signal=term peer="virtiofsd"
    12/5/26 2:56 PM kernel audit: type=1400 audit(1796511404.409:976): apparmor="STATUS" operation="profile_remove" profile="unconfined" name="libvirt-afb5b8ef-c8c8-463d-9b73-7f8b6b600fb3" pid=191541 comm="apparmor_parser"
    12/5/26 2:56 PM systemd machine-qemu\x2d7\x2dDebian13\x2dKDE.scope: Failed to kill control group /machine.slice/machine-qemu\x2d7\x2dDebian13\x2dKDE.scope, ignoring: Operation not supported
    12/5/26 2:56 PM systemd machine-qemu\x2d7\x2dDebian13\x2dKDE.scope: Failed to kill control group /machine.slice/machine-qemu\x2d7\x2dDebian13\x2dKDE.scope, ignoring: Operation not supported
    12/5/26 2:56 PM systemd machine-qemu\x2d7\x2dDebian13\x2dKDE.scope: Deactivated successfully.
    12/5/26 2:56 PM systemd Stopped machine-qemu\x2d7\x2dDebian13\x2dKDE.scope - Virtual Machine qemu-7-Debian13-KDE.
    12/5/26 2:56 PM systemd-machined Machine qemu-7-Debian13-KDE terminated.
    12/5/26 2:56 PM systemd NetworkManager-dispatcher.service: Deactivated successfully.
    12/5/26 2:57 PM wireplumber wp-event-dispatcher: <WpAsyncEventHook:0x5d7b5b270fe0> failed: <WpSiStandardLink:0x5d7b5b490050> link failed: 1 of 1 PipeWire links failed to activate
    12/5/26 2:57 PM systemd Starting app-org.kde.spectacle.service - Spectacle screenshot capture utility...
    12/5/26 2:57 PM systemd Started app-org.kde.spectacle.service - Spectacle screenshot capture utility.
    12/5/26 2:57 PM spectacle qt.qml.propertyCache.append: Member focusPolicy of the object ButtonGrid_QMLTYPE_49 overrides a member of the base object. Consider renaming it or adding final or override specifier
    12/5/26 2:57 PM spectacle qt.qml.propertyCache.append: Member focusPolicy of the object AnnotationOptionsToolBarContents_QMLTYPE_63 overrides a member of the base object. Consider renaming it or adding final or override specifier
    12/5/26 2:57 PM spectacle qt.qml.propertyCache.append: Member focusPolicy of the object UndoRedoGroup_QMLTYPE_126 overrides a member of the base object. Consider renaming it or adding final or override specifier
    12/5/26 2:57 PM systemd app-org.kde.spectacle.service: Consumed 685ms CPU time over 4.322s wall clock time, 124.2M memory peak.
    12/5/26 2:57 PM wireplumber wp-event-dispatcher: <WpAsyncEventHook:0x5d7b5b270fe0> failed: <WpSiStandardLink:0x5d7b5b512ff0> link failed: 1 of 1 PipeWire links failed to activate
    12/5/26 2:57 PM systemd-coredump Process 190659 (virtiofsd) of user 0 dumped core.
    
    Module linux-vdso.so.1 from deb linux-7.3.0-11.12.amd64
    Module libgcc_s.so.1 from deb gcc-16-16.2.0-3ubuntu1.amd64
    Module libcap-ng.so.0 from deb libcap-ng-0.9.6-1.amd64
    Module libseccomp.so.2 from deb libseccomp-2.6.1-1ubuntu1.amd64
    Module virtiofsd from deb rust-virtiofsd-1.14.0-3.amd64
    Stack trace of thread 3:
    #0 0x0000711350b3dd1b __shutdown (libc.so.6 + 0x13dd1b)
    #1 0x000058bb1ba0aeeb n/a (virtiofsd + 0x285eeb)
    #2 0x000058bb1b9fd145 n/a (virtiofsd + 0x278145)
    #3 0x000058bb1b912849 n/a (virtiofsd + 0x18d849)
    #4 0x0000711350aa3afa start_thread (libc.so.6 + 0xa3afa)
    #5 0x0000711350b3b31c __clone3 (libc.so.6 + 0x13b31c)
    
    Stack trace of thread 1:
    #0 0x0000711350aac4e2 __syscall_cancel_arch (libc.so.6 + 0xac4e2)
    #1 0x0000711350aa03e9 internal_syscall_cancel (libc.so.6 + 0xa03e9)
    #2 0x0000711350aa5ac9 __pthread_clockjoin_ex (libc.so.6 + 0xa5ac9)
    #3 0x000058bb1b9fc9df n/a (virtiofsd + 0x2779df)
    #4 0x000058bb1ba0a1a5 n/a (virtiofsd + 0x2851a5)
    #5 0x000058bb1b9d94f6 n/a (virtiofsd + 0x2544f6)
    #6 0x000058bb1ba0bb46 n/a (virtiofsd + 0x286b46)
    #7 0x000058bb1ba161ac n/a (virtiofsd + 0x2911ac)
    #8 0x000058bb1b9016f7 n/a (virtiofsd + 0x17c6f7)
    #9 0x000058bb1b9dc4c4 n/a (virtiofsd + 0x2574c4)
    #10 0x0000711350a2a641 __libc_start_call_main (libc.so.6 + 0x2a641)
    #11 0x0000711350a2a758 __libc_start_main_impl (libc.so.6 + 0x2a758)
    #12 0x000058bb1b7b2e35 n/a (virtiofsd + 0x2de35)
    
    Stack trace of thread 2:
    #0 0x0000711350aac4e2 __syscall_cancel_arch (libc.so.6 + 0xac4e2)
    #1 0x0000711350b3b7bc internal_syscall_cancel (libc.so.6 + 0x13b7bc)
    #2 0x000058bb1ba24c93 n/a (virtiofsd + 0x29fc93)
    #3 0x000058bb1ba0ae4b n/a (virtiofsd + 0x285e4b)
    #4 0x000058bb1b9fd4e8 n/a (virtiofsd + 0x2784e8)
    #5 0x000058bb1b912849 n/a (virtiofsd + 0x18d849)
    #6 0x0000711350aa3afa start_thread (libc.so.6 + 0xa3afa)
    #7 0x0000711350b3b31c __clone3 (libc.so.6 + 0x13b31c)
    ELF object binary architecture: AMD x86-64
    
    12/5/26 2:57 PM systemd systemd-coredump@3-12292-191521_171709-0.service: Deactivated successfully.
    12/5/26 2:57 PM systemd systemd-coredump@3-12292-191521_171709-0.service: Consumed 23.218s CPU time over 39.499s wall clock time, 4.1G memory peak.
    12/5/26 2:57 PM systemd systemd-coredump@3-12292-191521_171709-0.service: Triggering OnSuccess= dependencies.
    12/5/26 2:57 PM systemd Starting apport-coredump-hook@3-12292-191521_171709-0.service...
    12/5/26 2:57 PM drkonqi-coredump-processor "/usr/libexec/virtiofsd" 190659 "/var/lib/systemd/coredump/core.virtiofsd.0.53d9a9c219f44ab6a7b4dde335753833. 190659.1796511404000000.zst"
    12/5/26 2:57 PM drkonqi-coredump-processor The socket path doesn't exist @ "/run/user/0/drkonqi-coredump-launcher"
    12/5/26 2:57 PM systemd drkonqi-coredump-processor@3-12292-191521_171709-0.service: Deactivated successfully.
    12/5/26 2:57 PM systemd apport-coredump-hook@3-12292-191521_171709-0.service: Deactivated successfully.
    12/5/26 2:57 PM systemd Finished apport-coredump-hook@3-12292-191521_171709-0.service.
    12/5/26 3:00 PM systemd Starting sysstat-collect.service - system activity accounting tool...
    12/5/26 3:00 PM systemd sysstat-collect.service: Deactivated successfully.
    12/5/26 3:00 PM systemd Finished sysstat-collect.service - system activity accounting tool.
    Steps taken to install QEMU/KVM and Virtual Machine Manager:
    $ sudo apt install qemu-system
    $ sudo apt install virt-manager

    spice-vdagent and virtiofsd installed on both Host and Guest VM
    $ sudo apt install spice-vdagent virtiofsd

    This is only seen in Kubuntu 26.10.
    I have the same setup in Kubuntu 26.04.
    This issue does not exist in Kubuntu 26.04.
    The same VM Guest, Debian 13 KDE, is run in virtual in both Kubuntu 26.10 and Kubuntu 26.04.
    This is a dual boot computer with Kubuntu 26.10 and Kubuntu 26.04 installed on separate SSD drives.
    I am using UEFI settings to dual boot.
    ​
    I searched for bugs here:
    Ubuntu rust-virtiofsd package
    https://bugs.launchpad.net/ubuntu/+s...rust-virtiofsd
    I can't find any recent bugs that look related.
    I didn't have any luck with internet searches.

    Has anyone using QEMU/KVM with Virtual Machine Manager experiencing this in Kubuntu 26.10?
    OS: Kubuntu 26.04 LTS
    Desktop: Dell XPS 8900
    GPU: NVIDIA GeForce GTX 745

Users Viewing This Topic

Collapse

There are 0 users viewing this topic.

Working...
X