Bug#1105837: fwupd: Memory usage grows unbounded forever (memory leak)
Package: fwupd
Version: 2.0.8-3
Severity: normal
Dear Maintainer,
I kept noticing very high memory usage on my desktop and tracked it down
to fwupd. I now restart fwupd every week or so to keep it from using all
RAM.
Currently it's only been running 2 days and it's got 6.9G resident, 7.5G
virtual, and 10.9% of memory, and is the top memory user, according to top:
```
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
2321320 root 20 0 7504636 6.9g 36732 S 0.0 10.9 27:51.60 fwupd
```
But after restarting, it's using a small 0.1% of my memory at 47k
resident and 370k virtual:
```
3563598 root 20 0 369384 47320 36136 S 0.0 0.1 0:00.75 fwupd
```
This definitely didn't used to happen, so I presume it's a recent
update.
-- System Information:
Debian Release: trixie/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.12.22-amd64 (SMP w/12 CPU threads; PREEMPT)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages fwupd depends on:
ii libarchive13t64 3.7.4-3
ii libblkid1 2.41-4
ii libc6 2.41-7
ii libcbor0.10 0.10.2-2
ii libcurl3t64-gnutls 8.13.0-5
ii libdrm-amdgpu1 2.4.124-2
ii libdrm2 2.4.124-2
ii libflashrom1 1.4.0-3
ii libfwupd3 2.0.8-3
ii libglib2.0-0t64 2.84.1-2
ii libgnutls30t64 3.8.9-2
ii libjcat1 0.2.3-1
ii libjson-glib-1.0-0 1.10.6+ds-2
ii liblzma5 5.8.1-1
ii libmbim-glib4 1.32.0-1
ii libmbim-proxy 1.32.0-1
ii libmm-glib0 1.24.0-1
ii libpolkit-gobject-1-0 126-2
ii libprotobuf-c1 1.5.1-1
ii libqmi-glib5 1.36.0-1
ii libqmi-proxy 1.36.0-1
ii libsqlite3-0 3.46.1-4
ii libsystemd0 257.5-2
ii libtss2-esys-3.0.2-0t64 4.1.3-1.2
ii libusb-1.0-0 2:1.0.28-1
ii libxmlb2 0.3.22-1
ii shared-mime-info 2.4-5+b2
ii systemd [systemd-sysusers] 257.5-2
ii zlib1g 1:1.3.dfsg+really1.3.1-1+b1
Versions of packages fwupd recommends:
ii bolt 0.9.8-1
ii dbus [default-dbus-system-bus] 1.16.2-2
ii fwupd-amd64-signed [fwupd-signed] 1:1.7+1
ii jq 1.7.1-5
ii python3 3.13.3-1
ii udisks2 2.10.1-12
Versions of packages fwupd suggests:
pn gir1.2-fwupd-2.0 <none>
-- Configuration Files:
/etc/fwupd/fwupd.conf [Errno 13] Permission denied: '/etc/fwupd/fwupd.conf'
/etc/fwupd/remotes.d/lvfs-testing.conf changed:
[fwupd Remote]
Enabled=false
Title=Linux Vendor Firmware Service (testing)
MetadataURI=https://cdn.fwupd.org/downloads/firmware-testing.xml.zst
PrivacyURI=https://lvfs.readthedocs.io/en/latest/privacy.html
ReportURI=https://fwupd.org/lvfs/firmware/report
OrderBefore=lvfs
AutomaticReports=true
ApprovalRequired=false
/etc/fwupd/remotes.d/lvfs.conf changed:
[fwupd Remote]
Enabled=true
Title=Linux Vendor Firmware Service
MetadataURI=https://cdn.fwupd.org/downloads/firmware.xml.zst
ReportURI=https://fwupd.org/lvfs/firmware/report
PrivacyURI=https://lvfs.readthedocs.io/en/latest/privacy.html
AutomaticReports=true
AutomaticSecurityReports=false
ApprovalRequired=false
-- no debconf information
Reply to: