Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
memleak in polkit?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
piotr5
Tux's lil' helper
Tux's lil' helper


Joined: 14 Dec 2012
Posts: 101

PostPosted: Fri Apr 03, 2015 9:59 am    Post subject: memleak in polkit? Reply with quote

I noticed recently polkit is growing in memory-usage, quite uncontrollably. is it normal polkitd uses about 200mb?

searching the web for this problem I found fedora adding some patches:

http://cgit.freedesktop.org/polkit/commit/?id=f4d71e0de885010494b8b0b8d62ca910011d7544
and something to fix
https://bugs.kde.org/show_bug.cgi?id=271934#c121

are these included in gentoo already?
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6108
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Sat Apr 04, 2015 3:05 pm    Post subject: Reply with quote

what exactly is growing ?

the resources (actual size) or its virtual memory use ?
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
piotr5
Tux's lil' helper
Tux's lil' helper


Joined: 14 Dec 2012
Posts: 101

PostPosted: Sun Apr 05, 2015 4:48 am    Post subject: Reply with quote

of course the actual size, the % of mem usage. for example:

Code:

#ps aux
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
...
polkitd   6124  6.7 12.6 753600 258632 ?       Ssl  Apr01 145:48 /usr/lib/polkit

a bit later:
Code:
polkitd   6124  6.8 12.8 755408 262360 ?       Ssl  Apr01 147:31 /usr/lib/polkit-1/polkitd --no-debug


since my computer has 2GB I suppose this means polkit uses >200MB.
if I kill it, size is down to normal again, for some time.
as a workaround I just
Code:
sudo killall -HUP polkitd
once a week or so...
Back to top
View user's profile Send private message
ct85711
Veteran
Veteran


Joined: 27 Sep 2005
Posts: 1696

PostPosted: Sun Apr 05, 2015 5:26 am    Post subject: Reply with quote

Just doing a quick search, from what it looks like, it may be the same bug; as I'm not seeing the patch applied to latest version in portage (polkit-0.112-r2). According to upstream's bug report, they applied the patch to their tree (also evident when viewing the modified file online). However, their last release they did was in 2013 doesn't have it. So either, we get a dev to bump the package with the patch or see about getting upstream to release a new version of polkit.
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6108
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Sun Apr 05, 2015 10:25 am    Post subject: Reply with quote

https://bugs.gentoo.org/show_bug.cgi?id=541810
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum