Bug 490431

Summary: High memory consumption compared to gnome-polkit
Product: [Plasma] policykit-kde-agent-1 Reporter: darkphoenix534
Component: generalAssignee: Unassigned bugs <unassigned-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal CC: drf, jgrulich, jreznik, sitter
Priority: NOR    
Version First Reported In: 6.1.2   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description darkphoenix534 2024-07-18 03:53:19 UTC
SUMMARY
/usr/lib/polkit-kde-authentication-agent-1 uses 200+ Memory when the gui pops up and stays same. Compared to usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1  which uses 45+ memory when gui  pops up.

STEPS TO REPRODUCE
1. /usr/lib/polkit-kde-authentication-agent-1
2. pkexec ls
3. Authenticate

OBSERVED RESULT
Memory consumption increases from 47 MB to 202MB and stays above 200MB.

EXPECTED RESULT
Memory consumpion similar or better than gnome-polkit

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 6.1.2
(available in About System)
KDE Plasma Version: 6.1.2
KDE Frameworks Version: 6.4.0
Qt Version: 6.7.2

ADDITIONAL INFORMATION
I am on Hyprland but also have Kde environment. The above 'Observed result' is on Hyprland but on Kde it's also same except that instead the beginning memory consumption starts up at 172 MB and after launching gui it stays above 200+ MB.
Comment 1 Harald Sitter 2025-01-15 10:37:37 UTC
What are you measuring exactly?
How are you measuring?
Have you accounted for mapped but shared data sections of libraries?
Comment 2 darkphoenix534 2025-01-15 14:07:15 UTC
I observed this in btop++. Didn't do all of those things you mentioned.
Comment 3 Bug Janitor Service 2025-01-30 03:47:27 UTC
๐Ÿ›๐Ÿงน โš ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Harald Sitter 2025-01-30 12:09:47 UTC
You'll probably want to read http://virtualthreads.blogspot.com/2006/02/understanding-memory-usage-on-linux.html