Bug 1867435

Summary: packagekitd consumes a lot of memory
Product: [Fedora] Fedora Reporter: Louis van Dyk <louis>
Component: PackageKitAssignee: Richard Hughes <rhughes>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 32CC: bugzilla, gnome-sig, jonathan, klember, quentin, rdieter, rhughes, smparrish
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-25 20:42:35 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Louis van Dyk 2020-08-10 01:59:53 UTC
Description of problem:

packagekitd uses a huge amount of RAM and swap space.  My uptime is 10 days and here is what I have:

# ps vax | grep -E "COMMAND|packagekit"
    PID TTY      STAT   TIME  MAJFL   TRS   DRS   RSS %MEM COMMAND
    877 ?        SLs    0:46      2    13  2602  1816  0.0 /usr/bin/earlyoom -r 0 -m 4 -M 409600 --prefer ^Web Content$ --avoid ^(dnf|packagekitd|gnome-shell|gnome-session-c|gnome-session-b|lightdm|sddm|sddm-helper|gdm|gdm-wayland-ses|gdm-session-wor|gdm-x-session|Xorg|Xwayland|systemd|systemd-logind|dbus-daemon|dbus-broker|cinnamon|cinnamon-sessio|kwin_x11|kwin_wayland|plasmashell|ksmserver|plasma_session|startplasma-way|xfce4-session|mate-session|marco|lxqt-session|openbox)$
   3172 ?        Ssl    8:14 178879   163 2262208 669608  2.7 /usr/libexec/packagekitd


# cat /proc/3172/status | head -n 31
Name:	packagekitd
Umask:	0022
State:	S (sleeping)
Tgid:	3172
Ngid:	0
Pid:	3172
PPid:	1
TracerPid:	0
Uid:	0	0	0	0
Gid:	0	0	0	0
FDSize:	512
Groups:	 
NStgid:	3172
NSpid:	3172
NSpgid:	3172
NSsid:	3172
VmPeak:	 2396380 kB
VmSize:	 2262372 kB
VmLck:	       0 kB
VmPin:	       0 kB
VmHWM:	 1225144 kB
VmRSS:	  669448 kB
RssAnon:	  657024 kB
RssFile:	   12424 kB
RssShmem:	       0 kB
VmData:	 1867144 kB
VmStk:	     132 kB
VmExe:	     164 kB
VmLib:	   22060 kB
VmPTE:	    3780 kB
VmSwap:	 1152836 kB







Version-Release number of selected component (if applicable):
PackageKit-1.1.13-3.fc32.x86_64

How reproducible:
It's always in my top swap space users.

Steps to Reproduce:
1.  Boot and log in!
2.
3.

Actual results:


Expected results:
There is not reason for a package checker to consume the amount of resources it does on a PERMANENT basis.  Surely this process and do what it must and then RELEASE them?

Additional info:

Comment 1 Chris Murphy 2020-11-25 20:42:35 UTC

*** This bug has been marked as a duplicate of bug 1896964 ***