Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
lxsession 100% cpu load
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
pa4wdh
Guru
Guru


Joined: 16 Dec 2005
Posts: 300

PostPosted: Thu Apr 21, 2016 5:47 pm    Post subject: lxsession 100% cpu load Reply with quote

Hi All,

I recently updated my desktop system running lxde as a desktop. Since the update lxsession started to misbehave: It generates 100% CPU load on one CPU core.
stracing it reveals a partial reason why:
Code:

poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=7, events=POLLIN}], 3, 4294967295) = 1 ([{fd=3, revents=POLLIN}])
recvmsg(7, 0x7ffcaa2faa60, 0)           = -1 EAGAIN (Resource temporarily unavailable)
recvmsg(7, 0x7ffcaa2faa40, 0)           = -1 EAGAIN (Resource temporarily unavailable)
recvmsg(7, 0x7ffcaa2faa40, 0)           = -1 EAGAIN (Resource temporarily unavailable)

This goes over and over again. Since there is a reference to fd 7 i checked out what that is: it's /proc entry is: 7 -> socket:[1244228]
Which doesn't tell me that much actually ...

Any ideas on how to troubleshoot this ?
_________________
The gentoo way of bringing peace to the world:
USE="-war" emerge --newuse world

Free as in Freedom is not limited to software only:
Music: http://www.jamendo.com
Recipes: http://www.opensourcefood.com
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2583

PostPosted: Fri Apr 22, 2016 7:51 am    Post subject: Reply with quote

See https://sourceforge.net/p/lxde/bugs/656/

Stupid question: Do you really need lxsession? Fluxbox can use most of lxde-base/* goodies without lxsession.
Back to top
View user's profile Send private message
pa4wdh
Guru
Guru


Joined: 16 Dec 2005
Posts: 300

PostPosted: Fri Apr 22, 2016 3:15 pm    Post subject: Reply with quote

Thanks for the link.
The issue in the bugreport seems different from what i experience, in my case I don't have to change anything before the problem starts, it starts immediately when lxsession starts.

I can of course try to upgrade/downgrade lxsession to troubleshoot, so i'll try that.

Quote:
Stupid question: Do you really need lxsession? Fluxbox can use most of lxde-base/* goodies without lxsession.

lxsession is a direct and unconditional dependency of lxde-meta, but i'd love to get rid of it because that would take away the *kits too. Any suggestion on how to do that is very much appreciated.
_________________
The gentoo way of bringing peace to the world:
USE="-war" emerge --newuse world

Free as in Freedom is not limited to software only:
Music: http://www.jamendo.com
Recipes: http://www.opensourcefood.com
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2583

PostPosted: Fri Apr 22, 2016 4:31 pm    Post subject: Reply with quote

Just unmerge lxde-meta and lxsession, then
Code:
# emerge --ask --noreplace lxde-base/lxappearance lxde-base/lxinput lxde-base/lxpanel lxde-base/lxrandr lxde-base/lxtask x11-misc/pcmanfm x11-wm/openbox

and
Code:
# emerge --ask --depclean

and you might also need to
Code:
# emerge --ask x11-misc/icon-naming-utils x11-themes/hicolor-icon-theme
Back to top
View user's profile Send private message
pa4wdh
Guru
Guru


Joined: 16 Dec 2005
Posts: 300

PostPosted: Fri Apr 22, 2016 7:50 pm    Post subject: Reply with quote

I just successfully removed lxsession from my system, as a reference this is what iIve done:
First check with pstree what processes are stated by lxsession. Since that won't happen anymore we'll have to do that.
Edit /etc/X11/Sessions/lxde and replace:
Code:
exec /usr/bin/startlxde

with:
Code:
exec lxpanel --profile LXDE &
exec pcmanfm --desktop --profile LXDE &
exec openbox --config-file /home/pa4wdh/.config/openbox/lxde-rc.xml

Note the missing & after the openbox line. Now exiting openbox will end your session.

Now remove lxsession and lxde-meta:
Code:
emerge --unmerge lxde-meta lxsession

In my case there was no other use for the *kits, so i removed them as well:
Code:
emerge --unmerge consolekit polkit


Now run emerge -p --depclean to see what lxde related packages it wants to remove and prevent that my registering them in your world file:
Code:
emerge --noreplace lxterminal lxpanel pcmanfm lxinput
emerge --noreplace openbox lxrandr lxde-common lxappearance lxtask

_________________
The gentoo way of bringing peace to the world:
USE="-war" emerge --newuse world

Free as in Freedom is not limited to software only:
Music: http://www.jamendo.com
Recipes: http://www.opensourcefood.com
Back to top
View user's profile Send private message
pa4wdh
Guru
Guru


Joined: 16 Dec 2005
Posts: 300

PostPosted: Sun Apr 24, 2016 2:41 pm    Post subject: Reply with quote

After a few days of testing, most things seem to work.
The only noticeable problem i have now is that logout doesn't work. it simply does noting :) What i described in my previous post worked one time, but never again.

The only solution i can think of is to write a script with a series of kill commands and place that as an icon on the lxpanel. However, that seems a bit rude. Are there better solutions ?
_________________
The gentoo way of bringing peace to the world:
USE="-war" emerge --newuse world

Free as in Freedom is not limited to software only:
Music: http://www.jamendo.com
Recipes: http://www.opensourcefood.com
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2583

PostPosted: Sun Apr 24, 2016 5:05 pm    Post subject: Reply with quote

Do you mean to kill lxpanel or end the (which ever) window manager?
You might consider using kind of a screen locker.
Back to top
View user's profile Send private message
pa4wdh
Guru
Guru


Joined: 16 Dec 2005
Posts: 300

PostPosted: Sun Apr 24, 2016 5:58 pm    Post subject: Reply with quote

That is indeed what i meant.
My goal is to terminate the current session, allowing a clean shutdown of all the components and -in the end- the X server.
_________________
The gentoo way of bringing peace to the world:
USE="-war" emerge --newuse world

Free as in Freedom is not limited to software only:
Music: http://www.jamendo.com
Recipes: http://www.opensourcefood.com
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2583

PostPosted: Sun Apr 24, 2016 6:02 pm    Post subject: Reply with quote

I am using the exit command of fluxbox' menu
Back to top
View user's profile Send private message
pa4wdh
Guru
Guru


Joined: 16 Dec 2005
Posts: 300

PostPosted: Mon Apr 25, 2016 3:42 pm    Post subject: Reply with quote

In my case i'm using openbox (which i think is the default for lxde installations), it also offers a menu with an exit option but result is the same: Nothing happens
_________________
The gentoo way of bringing peace to the world:
USE="-war" emerge --newuse world

Free as in Freedom is not limited to software only:
Music: http://www.jamendo.com
Recipes: http://www.opensourcefood.com
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