Xfce Forum

Sub domains
 

You are not logged in.

#1 2015-11-23 09:30:25

ElserGeorg
Member
Registered: 2015-11-23
Posts: 5

Ram usage xfce-power-manager

Hi everybody,

I'm a new xfce user and I love it so far. I'm running latest manjaro on an old Thinkpad x220. I have a little problem with the stock power-manager. After some uptime, the ram usage of the xfce-power-manager grows continuous. After 7 days of runtime (with sleep-mode, of course) the ram usage is about 400 mb.

How can I improve this behaviour, or is it quite normal? Can someone relate to this problem? I'm really looking forward to reading your answers.

Yours,

Elser

Some system-stuff:

thinkpad x220
8gb ram
core i3 2nd
system on msata with legacy

os: latest manjaro

Offline

#2 2015-11-23 14:23:45

debian
Banned
Registered: 2014-10-06
Posts: 17

Re: Ram usage xfce-power-manager

Did know that a swithing supply has longer life if you turn off power from wall electrical socket when not used. Xfce boot and shutdown is fast.

http://www.eevblog.com/forum/beginners/ … er-supply/

For example, we have external main power switch in our new washing machine (cpu controlled) . I have changed capacitators form my LG24'' monitor  twice in 6 years.

Offline

#3 2015-11-23 14:54:59

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,494

Re: Ram usage xfce-power-manager

With respect to the potential memory leak, can you confirm that you are seeing this with the xfce4-power-manager daemon, or with the power manager plugin?

And also, what version of xfce4-power-manager are you running:

xfce4-power-manager -V

There were a couple of commits added this year to fix memory leaks in the power manager plugin:
- http://git.xfce.org/xfce/xfce4-power-ma … b762a9f675 (made it into the 1.5.0 code base)
- http://git.xfce.org/xfce/xfce4-power-ma … bcad1ae267 (made it into the 1.4.3 code base)

If you are using the latest version, it might be a good idea to create a bug report (since I don't see an active one for memory leaks in xfce4-power-manager or the power manager plugin). Information on debugging memory leaks using valgrind can be found here.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#4 2015-11-23 20:53:58

ElserGeorg
Member
Registered: 2015-11-23
Posts: 5

Re: Ram usage xfce-power-manager

Thanks for the quick response!

xfce4-power-manager -V

gives me

Xfce Power Manager 1.4.4

Part of the Xfce Goodies Project
http://goodies.xfce.org

Licensed under the GNU GPL.

I'm not sure if its the daemon or the plugin, but I think it is the plugin.

yours

Offline

#5 2015-11-23 23:37:50

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,494

Re: Ram usage xfce-power-manager

Now that I look, I'm seeing the same sort of ram use creepage as you (I'm running 1.5.2) . I'll have a closer look to see what I can find.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#6 2015-11-24 07:28:33

ElserGeorg
Member
Registered: 2015-11-23
Posts: 5

Re: Ram usage xfce-power-manager

Oh ok. So, I'm happy that I'm not the only one with this behaviour. I started xfce4-power-manager --no-daemon but the result was the same. htop gives me 20 hours of runtime and the manager uses already 30 mb of ram (started with 21 mb).

Offline

#7 2015-11-24 11:28:50

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,494

Re: Ram usage xfce-power-manager

Its the power manager plugin that is slowly creeping up the RSS ram usage. The process is something like:

toz       9502  9408  0 Nov23 tty1     00:00:05 /usr/lib/xfce4/panel/wrapper-2.0 /usr/lib/xfce4/panel/plugins/libxfce4powermanager.so 12 8388653 power-manager-plugin Power Manager Plugin Display the battery levels of your devices and control the brightness of your display

I'm going to run it through valgrind when I have a chance to see if I can find a memory leak.

This command will help you to view and monitor it:

top -p $(ps -ef | grep libxfce4power | grep -v grep | awk '{ print $2 }')

It would be interesting to see if any other forum members see this same slow RES creepage.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#8 2015-11-25 09:04:21

ElserGeorg
Member
Registered: 2015-11-23
Posts: 5

Re: Ram usage xfce-power-manager

Thanks for this command! I can confirm that the ram usage slowly increases. Starting with 19 mb of ram usage (in my case) after 24 hours its about 49 mb and going up. I would appreciate if you could do this valgrind-thing because I have no clue how to perform such a investigation.

Offline

#9 2015-11-25 15:02:47

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,494

Re: Ram usage xfce-power-manager

I will try to find the time to dig into it. In the meantime, I've created a bug report.

I've also found that restarting the panel:

xfce4-panel -r

...resets the memory usage.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#10 2015-11-25 21:55:02

ElserGeorg
Member
Registered: 2015-11-23
Posts: 5

Re: Ram usage xfce-power-manager

Thank you very much for your help! I really appreciate this!

Offline

#11 2015-11-25 23:29:55

SantaFe
Member
From: Freightyard.
Registered: 2010-09-06
Posts: 97

Re: Ram usage xfce-power-manager

Too bad one couldn't disable the XFCE one & use a different power manager, like MATE Power Manager for example.  Or would it work?


bah weep grana weep ninny bon. big_smile

Offline

#12 2015-11-26 14:10:08

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,494

Re: Ram usage xfce-power-manager

SantaFe wrote:

Too bad one couldn't disable the XFCE one & use a different power manager, like MATE Power Manager for example.  Or would it work?

Actually, the xfce4-power-manager daemon is fine, its the "Power Manager" panel plugin that is the issue.

What you could do, if you have a version where the System Tray Icon was re-added to the xfce4-power-manager codebase (version 1.4.4 or higher), is enable the "System Tray Icon" from the xfce4-power-manager settings dialog and not add the "Power Manager" plugin. You'll get the old systray icon and it doesn't seem to leak memory.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#13 2015-11-26 16:03:46

SantaFe
Member
From: Freightyard.
Registered: 2010-09-06
Posts: 97

Re: Ram usage xfce-power-manager

Neat.  Removed the panel plug in after I checked the show system tray icon box.  I didn't know they had removed the system tray icon option and re-added it.  Thanks! wink

Last edited by SantaFe (2015-11-26 16:04:31)


bah weep grana weep ninny bon. big_smile

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.010 seconds, 7 queries executed - Memory usage: 584.8 KiB (Peak: 601.65 KiB) ]