Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
lxde-openbox desktop / lxdm-binary high cpu usage [SOLVED]
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
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1576
Location: US

PostPosted: Fri Apr 13, 2012 3:34 pm    Post subject: lxde-openbox desktop / lxdm-binary high cpu usage [SOLVED] Reply with quote

Hi all,

I noticed an unusually high amount of cpu usage by lxdm-binary today on three computers. Everything was normal yesterday so I have no clue what could have caused this.

The last time genlop shows activity for lxde-base/lxdm-0.4.1-r4 is Tue Mar 13 15:22:50 2012 and Thu Aug 4 09:03:42 2011 for lxde-base/lxde-meta :?

I've tried revdep-rebuild and re-emerging lxde-base/lxdm-0.4.1-r4 to no avail. I modified inittab to start in runlevel 3 and disabled respawn:/usr/sbin/lxdm >& /dev/null to check the difference in cpu usage.

I've attached two screen shots that show the usage with and without lxdm not knowing what else to provide.

high cpu usage

normal cpu usage

I was just wondering if anyone else has encountered this or is aware of any current anomalies. I've checked bugzilla, but nothing is listed for lxdm :(

Thanks for your review - any wild off-the-wall guesses would be appreciated :)


Last edited by BillWho on Sun Apr 15, 2012 1:37 pm; edited 1 time in total
Back to top
View user's profile Send private message
djhyland
n00b
n00b


Joined: 26 Nov 2008
Posts: 43
Location: St. Paul MN

PostPosted: Fri Apr 13, 2012 9:49 pm    Post subject: Reply with quote

Yeah, I'm having the same problem too, and it started sometime last night for me as well. I've tried masking lxde-base/lxdm-0.4.1-r4 and emerging an earlier version, but thus far I haven't gotten the emerge to finish. I'll keep trying and post my results.
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1576
Location: US

PostPosted: Fri Apr 13, 2012 11:02 pm    Post subject: Reply with quote

djhyland,

Thanks for your reply. Now I know I'm not the only one that stumbled upon this.

I updated the three computes last evening, so I'm pretty sure it was a package emerged on April 12.

The only commonality I found so far is x11-libs/gtk+-3.4.0. It was emerged last evening and it's in lxde-base/lxdm-0.4.1-r4 dependency graph.

Later this evening, I'm going to mask x11-libs/gtk+-3.4.0 and attempt to downgrade to x11-libs/gtk+-3.2.4-r1 and see what happens.

Here goes nothing :)
Back to top
View user's profile Send private message
djhyland
n00b
n00b


Joined: 26 Nov 2008
Posts: 43
Location: St. Paul MN

PostPosted: Fri Apr 13, 2012 11:59 pm    Post subject: Reply with quote

Let me know how it goes. Given your idea, I recompiled lxdm with the -gtk3 use tag, but it's still sucking up the CPU. I suppose I'll keep experimenting, and let you know if I find a solution.
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1576
Location: US

PostPosted: Sat Apr 14, 2012 1:24 am    Post subject: Reply with quote

djhyland,

Thanks for the update :)

As far as the avenue I pursued of downgrading to x11-libs/gtk+-3.2.4-r1 goes, it was a dead-end.

I then got aggressive and recompiled the entire dependency graph for lxde-base/lxdm-0.4.1-r4 and ended up right back where I started - no change.

I guess it's going to take a little more digging than I originally thought to uncover the culprit :(

In the interim, I'm just dropping to runlevel 3 and using startx.

If you should try or discover anything, Id be interested in knowing. Naturally, I'll do the same :)
Back to top
View user's profile Send private message
Freeky
n00b
n00b


Joined: 11 Mar 2011
Posts: 31
Location: Novosibirsk, Russia

PostPosted: Sat Apr 14, 2012 8:43 am    Post subject: Reply with quote

I have similar problem.

I try older version of lxdm but I can't install them. (It is another story)

After
Quote:
kill -9 `pgrep lxdm-binary`
I have good working system.

I think that something can't terminate lxdm-binary normally
Back to top
View user's profile Send private message
djhyland
n00b
n00b


Joined: 26 Nov 2008
Posts: 43
Location: St. Paul MN

PostPosted: Sat Apr 14, 2012 1:48 pm    Post subject: Reply with quote

Still no luck on my end with fixing lxdm, but it looks like other distros are having this problem as well:

Ubuntu https://bugs.launchpad.net/ubuntu/+source/lxdm/+bug/922363
OpenSuse https://bugzilla.novell.com/show_bug.cgi?id=741454
Red Hat https://bugzilla.redhat.com/show_bug.cgi?id=767861

Looking through Red Hat's bugzilla report, I found something about a new version of glib interfering with lxdm. I seem to recall updating glib right before the cpu usage problem, so that might be it. I'll give downgrading glib a try.

Otherwise, I suppose that lxdm is only one of my recent attempts to replace gdm after Gnome 3 changed it to suck. I've been playing around with slim, so switching to that could be my surest solution. But I'll let you know how the glib downgrade works...

EDIT: it looks like my current dev-libs/glib (2.32.0), which was indeed emerged on the 12th, is now hardmasked. Perhaps our problem has something to do with it? There's a new version of glib to emerge (2.32.1), so I'll try that...


Last edited by djhyland on Sat Apr 14, 2012 2:16 pm; edited 1 time in total
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1576
Location: US

PostPosted: Sat Apr 14, 2012 2:10 pm    Post subject: Reply with quote

djhyland,

Thanks again for the update and bug info.

Freeky,
Quote:
I think that something can't terminate lxdm-binary normally

Yep, that definitely seem to be what the problem is :!:

According to genlop, glib-2.32.0 emerged on Thu Apr 12 15:33:18 2012 >>> dev-libs/glib-2.32.0

Coincidentally, dev-libs/glib-2.32.1 is emerging now on one of my machines so we'll see what happens :)
Back to top
View user's profile Send private message
djhyland
n00b
n00b


Joined: 26 Nov 2008
Posts: 43
Location: St. Paul MN

PostPosted: Sat Apr 14, 2012 2:22 pm    Post subject: Reply with quote

No luck on the updated glib, but there's a whole mess of other updates available. I suppose I can cross my fingers and hope that one of them fixes the problem...
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1576
Location: US

PostPosted: Sat Apr 14, 2012 2:44 pm    Post subject: Reply with quote

djhyland,

The emerge just completed with no change to lxdm :(

I tried killing the process as Freeky alluded to, but my screen kept flickering every couple of seconds.

I also tried a debug compile last evening to get a backtrace, but as a result I couldn't logon :(

I guess we'll just have to wait it out until a fix come in :?
Back to top
View user's profile Send private message
Freeky
n00b
n00b


Joined: 11 Mar 2011
Posts: 31
Location: Novosibirsk, Russia

PostPosted: Sat Apr 14, 2012 4:21 pm    Post subject: Reply with quote

Maybe It's important: After killing lxdm-binary I run

Code:
pcmanfm --desktop --profile LXDE


which command should be start when lxsession starts.

P.S. Sometimes It can be because packages emerged with different gcc/linux-headers/glibc.
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1576
Location: US

PostPosted: Sat Apr 14, 2012 5:35 pm    Post subject: Reply with quote

Freeky,

Thanks for the hint with pcmanfm, but that didn't do anything for me here :(

This is my lxdm-binary process tree before and after killing it:
Code:
   1  5542  5542  5542 ?           -1 Rs       0   2:50 /usr/sbin/lxdm-binary
 5542  5550  5550  5550 tty7      5550 Ss+      0   0:02  \_ /usr/bin/X :0 vt07 -nolisten tcp
 5542  5568  5568  5568 ?           -1 Ssl   1000   0:00  \_ /usr/bin/lxsession -s LXDE -e LXDE
 5568  5582  5568  5568 ?           -1 S     1000   0:00      \_ openbox --config-file /home/bill/.config/openbox/lxde-rc.xml
 5568  5585  5568  5568 ?           -1 Sl    1000   0:00      \_ lxpanel --profile LXDE
 5568  5586  5568  5568 ?           -1 S     1000   0:00      \_ pcmanfm --desktop --profile LXDE
 5568  5587  5568  5568 ?           -1 S     1000   0:00      \_ xscreensaver -no-splash
and after
Code:
   1  5562  5562  5562 ?           -1 Ssl   1000   0:00 /usr/bin/lxsession -s LXDE -e LXDE
 5562  5576  5562  5562 ?           -1 S     1000   0:00  \_ openbox --config-file /home/bill/.config/openbox/lxde-rc.xml
 5562  5579  5562  5562 ?           -1 Sl    1000   0:00  \_ lxpanel --profile LXDE
 5562  5580  5562  5562 ?           -1 S     1000   0:00  \_ pcmanfm --desktop --profile LXDE
 5562  5581  5562  5562 ?           -1 S     1000   0:00  \_ xscreensaver -no-splash

I tried this so I could add it to autostart, but again it screwed the display and flickered :(
Code:
prc=$(pgrep lxdm-binary); if [ ! -z ${prc} ];then kill -9 $(pgrep lxdm-binary) && $(/usr/bin/pcmanfm --desktop --profile LXDE);fi

I'm going to try a couple if things later and just keep my eye on the bug lists that djhyland provided

Thanks again for the info and if I should happen to stumble upon on anything I'll certainly let you guys know :)
Back to top
View user's profile Send private message
djhyland
n00b
n00b


Joined: 26 Nov 2008
Posts: 43
Location: St. Paul MN

PostPosted: Sat Apr 14, 2012 6:19 pm    Post subject: Reply with quote

Yeah, my system has finally finished compiling, and lxdm still eats up CPU. No luck here, either. I'll keep an eye open, but slim is working pretty well, so I guess my problem is solved. Still, I'll post if I find anything.
Back to top
View user's profile Send private message
XavierMiller
Moderator
Moderator


Joined: 23 Jul 2004
Posts: 4614
Location: ~Brussels - Belgique

PostPosted: Sat Apr 14, 2012 6:48 pm    Post subject: Reply with quote

Hello,

Same problem here.

Can you file a bug in http://bugs.gentoo.org so that Gentoo developers can take action (mask some packages, apply patches, ...)?

Thanks in advance!
_________________
Xavier Miller
(FR) Merci de respecter les règles du forum.
http://www.xaviermiller.be
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1576
Location: US

PostPosted: Sat Apr 14, 2012 7:21 pm    Post subject: Reply with quote

XavierMiller,

This bug has been reported :)

https://bugs.gentoo.org/show_bug.cgi?id=412025
Back to top
View user's profile Send private message
XavierMiller
Moderator
Moderator


Joined: 23 Jul 2004
Posts: 4614
Location: ~Brussels - Belgique

PostPosted: Sat Apr 14, 2012 7:23 pm    Post subject: Reply with quote

Thanks, I will watch it ;)
_________________
Xavier Miller
(FR) Merci de respecter les règles du forum.
http://www.xaviermiller.be
Back to top
View user's profile Send private message
spielc
Guru
Guru


Joined: 20 Apr 2004
Posts: 451

PostPosted: Sun Apr 15, 2012 7:47 am    Post subject: Reply with quote

Hi,

i thought i'd let you know that i found a fix for the problem. I fetched a patch from Ubuntu, updated the ebuild for lxdm-0.4.1-r4 and now cpu-usage is back at a sane state. I attached everything to the bugreport
_________________
Raise your beers up high...
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1576
Location: US

PostPosted: Sun Apr 15, 2012 1:37 pm    Post subject: Reply with quote

spielc,

Thanks a lot for the patch. Just applied it here and all looks good :D

Also thanks to djhyland, Freeky and XavierMiller

Man, was I on the wrong track with gtk+ and glib :oops:
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
XavierMiller
Moderator
Moderator


Joined: 23 Jul 2004
Posts: 4614
Location: ~Brussels - Belgique

PostPosted: Sun Apr 15, 2012 6:40 pm    Post subject: Reply with quote

Hello,

Thanks for the patch, it does the job on all my machines ! 8)
_________________
Xavier Miller
(FR) Merci de respecter les règles du forum.
http://www.xaviermiller.be
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