PackageKit is using a huge amount of memory

My computer repeatedly was slowing down, stuttering and I did not understand why. Then I used htop to see that this program called packagekit is using all of my cpu and ram available to the point where it is crashing.

I removed packagekit and this fixed all issues for me. I guess I just wanted to let you know that this is an issue.
here is my garuda-inxi if required:

System:
Kernel: 6.7.2-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
clocksource: tsc available: hpet,acpi_pm
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=265730be-f5c5-48c0-9ebd-70795cfc965d rw rootflags=subvol=@
quiet loglevel=3 ibt=off
Desktop: KDE Plasma v: 5.27.10 tk: Qt v: 5.15.12 wm: kwin_wayland dm: SDDM
Distro: Garuda Linux base: Arch Linux
Machine:
Type: Laptop System: HP product: HP Pavilion Laptop 15z-eh100 v: N/A
serial: <filter> Chassis: type: 10 serial: <filter>
Mobo: HP model: 88D0 v: 78.60 serial: <filter> UEFI: AMI v: F.26
date: 07/04/2023
Battery:
ID-1: BAT0 charge: 16.1 Wh (70.0%) condition: 23.0/23.0 Wh (100.0%)
power: 16.3 W volts: 12.7 min: 11.3 model: HP Primary type: Li-ion
serial: <filter> status: charging cycles: 117
Device-1: hidpp_battery_0 model: Logitech Wireless Mouse M510
serial: <filter> charge: 50% (should be ignored) rechargeable: yes
status: N/A
Device-2: hidpp_battery_1 model: Logitech Wireless Keyboard K540/K545
serial: <filter> charge: 50% (should be ignored) rechargeable: yes
status: N/A
CPU:
Info: model: AMD Ryzen 7 5700U with Radeon Graphics socket: FP6 bits: 64
type: MT MCP arch: Zen 2 gen: 3 level: v3 note: check built: 2020-22
process: TSMC n7 (7nm) family: 0x17 (23) model-id: 0x68 (104) stepping: 1
microcode: 0x8608104
Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache:
L1: 512 KiB desc: d-8x32 KiB; i-8x32 KiB L2: 4 MiB desc: 8x512 KiB L3: 8 MiB
desc: 2x4 MiB
Speed (MHz): avg: 836 high: 1398 min/max: 400/4372 base/boost: 1800/4350
scaling: driver: amd-pstate-epp governor: powersave volts: 1.2 V
ext-clock: 100 MHz cores: 1: 1397 2: 400 3: 400 4: 400 5: 400 6: 1397
7: 1398 8: 1397 9: 400 10: 400 11: 400 12: 400 13: 1397 14: 1398 15: 1397
16: 400 bogomips: 57498
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Vulnerabilities: <filter>
Graphics:
Device-1: AMD Lucienne vendor: Hewlett-Packard driver: amdgpu v: kernel
arch: GCN-5 code: Vega process: GF 14nm built: 2017-20 pcie: gen: 3
speed: 8 GT/s lanes: 16 link-max: gen: 4 speed: 16 GT/s ports:
active: eDP-1 empty: DP-1,HDMI-A-1 bus-ID: 04:00.0 chip-ID: 1002:164c
class-ID: 0300 temp: 50.0 C
Device-2: Luxvisions Innotech HP Wide Vision HD Camera driver: uvcvideo
type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-3:3
chip-ID: 30c9:000e class-ID: 0e02
Display: server: X.Org v: 23.2.4 with: Xwayland v: 23.2.4
compositor: kwin_wayland driver: X: loaded: amdgpu unloaded: modesetting
alternate: fbdev,vesa dri: radeonsi gpu: amdgpu display-ID: :1 screens: 1
Screen-1: 0 s-res: 1366x768 s-dpi: 96 s-size: 361x203mm (14.21x7.99")
s-diag: 414mm (16.31")
Monitor-1: eDP-1 model: BOE Display 0x0920 built: 2020 res: 1366x768
hz: 60 dpi: 102 gamma: 1.2 size: 340x190mm (13.39x7.48") diag: 395mm (15.5")
ratio: 16:9 modes: max: 1366x768 min: 640x480
API: EGL v: 1.5 hw: drv: amd radeonsi platforms: device: 0 drv: radeonsi
device: 1 drv: swrast surfaceless: drv: radeonsi x11: drv: radeonsi
inactive: gbm,wayland
API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 23.3.4-arch1.2
glx-v: 1.4 direct-render: yes renderer: AMD Radeon Graphics (radeonsi
renoir LLVM 16.0.6 DRM 3.56 6.7.2-zen1-1-zen) device-ID: 1002:164c
memory: 500 MiB unified: no
API: Vulkan v: 1.3.276 layers: 3 device: 0 type: integrated-gpu name: AMD
Radeon Graphics (RADV RENOIR) driver: mesa radv v: 23.3.4-arch1.2
device-ID: 1002:164c surfaces: xcb,xlib device: 1 type: cpu name: llvmpipe
(LLVM 16.0.6 256 bits) driver: mesa llvmpipe v: 23.3.4-arch1.2 (LLVM
16.0.6) device-ID: 10005:0000 surfaces: xcb,xlib
Audio:
Device-1: AMD Renoir Radeon High Definition Audio vendor: Hewlett-Packard
driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
link-max: gen: 4 speed: 16 GT/s bus-ID: 04:00.1 chip-ID: 1002:1637
class-ID: 0403
Device-2: AMD ACP/ACP3X/ACP6x Audio Coprocessor vendor: Hewlett-Packard
driver: snd_rn_pci_acp3x v: kernel alternate: snd_pci_acp3x, snd_pci_acp5x,
snd_pci_acp6x, snd_acp_pci, snd_rpl_pci_acp6x, snd_pci_ps,
snd_sof_amd_renoir, snd_sof_amd_rembrandt, snd_sof_amd_vangogh,
snd_sof_amd_acp63 pcie: gen: 3 speed: 8 GT/s lanes: 16 link-max: gen: 4
speed: 16 GT/s bus-ID: 04:00.5 chip-ID: 1022:15e2 class-ID: 0480
Device-3: AMD Family 17h/19h HD Audio vendor: Hewlett-Packard
driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
link-max: gen: 4 speed: 16 GT/s bus-ID: 04:00.6 chip-ID: 1022:15e3
class-ID: 0403
API: ALSA v: k6.7.2-zen1-1-zen status: kernel-api tools: N/A
Server-1: PipeWire v: 1.0.1 status: n/a (root, process) with:
1: pipewire-pulse status: active 2: wireplumber status: active
3: pipewire-alsa type: plugin 4: pw-jack type: plugin
tools: pactl,pw-cat,pw-cli,wpctl
Network:
Device-1: Realtek RTL8852AE 802.11ax PCIe Wireless Network Adapter
vendor: Hewlett-Packard driver: rtw89_8852ae v: N/A modules: rtw_8852ae
pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: f000 bus-ID: 02:00.0
chip-ID: 10ec:8852 class-ID: 0280
IF: wlo1 state: up mac: <filter>
IF-ID-1: tailscale0 state: unknown speed: -1 duplex: full mac: N/A
Bluetooth:
Device-1: Realtek Bluetooth Radio driver: btusb v: 0.8 type: USB rev: 1.0
speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-4:4 chip-ID: 0bda:2852
class-ID: e001 serial: <filter>
Report: btmgmt ID: hci0 rfk-id: 12 state: down bt-service: enabled,running
rfk-block: hardware: no software: yes address: <filter> bt-v: 5.2 lmp-v: 11
status: discoverable: no pairing: no
Drives:
Local Storage: total: 1.85 TiB used: 97.08 GiB (5.1%)
ID-1: /dev/mmcblk0 maj-min: 179:0 model: SD size: 29.12 GiB block-size:
physical: 512 B logical: 512 B type: Removable tech: SSD serial: <filter>
scheme: MBR
SMART Message: Unknown smartctl error. Unable to generate data.
ID-2: /dev/nvme0n1 maj-min: 259:0 vendor: Crucial model: CT2000P3SSD8
size: 1.82 TiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
lanes: 4 tech: SSD serial: <filter> fw-rev: P9CR30A temp: 40.9 C
scheme: GPT
SMART: yes health: PASSED on: 95d 23h cycles: 6,202
read-units: 32,206,295 [16.4 TB] written-units: 22,017,438 [11.2 TB]
Partition:
ID-1: / raw-size: 925 GiB size: 925 GiB (100.00%) used: 97.04 GiB (10.5%)
fs: btrfs block-size: 4096 B dev: /dev/nvme0n1p5 maj-min: 259:5
ID-2: /boot/efi raw-size: 100 MiB size: 96 MiB (96.00%)
used: 45.6 MiB (47.5%) fs: vfat block-size: 512 B dev: /dev/nvme0n1p1
maj-min: 259:1
ID-3: /home raw-size: 925 GiB size: 925 GiB (100.00%)
used: 97.04 GiB (10.5%) fs: btrfs block-size: 4096 B dev: /dev/nvme0n1p5
maj-min: 259:5
ID-4: /var/log raw-size: 925 GiB size: 925 GiB (100.00%)
used: 97.04 GiB (10.5%) fs: btrfs block-size: 4096 B dev: /dev/nvme0n1p5
maj-min: 259:5
ID-5: /var/tmp raw-size: 925 GiB size: 925 GiB (100.00%)
used: 97.04 GiB (10.5%) fs: btrfs block-size: 4096 B dev: /dev/nvme0n1p5
maj-min: 259:5
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default) zswap: no
ID-1: swap-1 type: zram size: 30.68 GiB used: 512 KiB (0.0%) priority: 100
comp: zstd avail: lzo,lzo-rle,lz4,lz4hc,842 max-streams: 16 dev: /dev/zram0
Sensors:
System Temperatures: cpu: 64.0 C mobo: N/A gpu: amdgpu temp: 49.0 C
Fan Speeds (rpm): fan-1: 0 fan-2: 0
Info:
Processes: 459 Uptime: 13h 20m wakeups: 11 Memory: total: 32 GiB note: est.
available: 30.68 GiB used: 13.08 GiB (42.7%) Init: systemd v: 255
default: graphical tool: systemctl Compilers: gcc: 13.2.1 Packages:
pm: pacman pkgs: 1710 libs: 455 tools: aura,octopi,pamac,paru pm: appimage
pkgs: 0 Shell: garuda-inxi (sudo) default: Bash v: 5.2.26
running-in: konsole inxi: 3.3.31
Garuda (2.6.22-1):
System install date:     2024-01-01
Last full system update: 2024-01-31 ↻
Is partially upgraded:   No
Relevant software:       snapper NetworkManager dracut
Windows dual boot:       Yes
Failed units:            packagekit.service

Wouldn’t be the first time I heard of it:

Seems like packagekit’s automatic updates are bit of a strain. In my opinion, updates should not be done automatically as the process can be strenuous (better to pick a time that works best for the user to start it manually).

Should be using garuda-update to update anyways :slight_smile:

5 Likes

Who installed packagekit?
I think it’s not in Garuda DE’s. The package list of dragonized does not contain packagekit.

3 Likes

This has happened with me. Someone on TG told me to just remove it. Happened with me while uninstalling Firedragon-next.

I just looked into it. I realized that it was because I installed KDE Discovery for installing packages. It looks like it uses packagekit as the backend for it. I apologize for not looking into it further before posting. Maybe this will help someone who faces the same problem as me

5 Likes

Looks like packagekitd 1.2.8-1 had a memory leak, updating with garuda-update to 1.2.8-2 fixed it.

4 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.