Bug 490431 - High memory consumption compared to gnome-polkit
Summary: High memory consumption compared to gnome-polkit
Status: RESOLVED NOT A BUG
Alias: None
Product: policykit-kde-agent-1
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 6.1.2
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-18 03:53 UTC by darkphoenix534
Modified: 2025-01-30 12:09 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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