You are not logged in.

#1 2011-04-02 14:46:30

dlin
Member
From: Taipei,Taiwan
Registered: 2005-09-21
Posts: 265

[Solved] cpu usage 100%, it is bug of lxpanel

My archlinux is on an old PIII machine.  Recently, I found its CPU usage is 100%.

But, I don't know how to solve it.  I can not found out which is cpu eater.
vmstat is 0 idle, but on top view, there are a few process with lower cpu usage.

I've tried both kernel, both cause 100% cpu usage.

kernel26 2.6.37.5-1
kernel26-lts 2.6.32.36-1


# vmstat 2 10
procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu----
r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa
1  0      0 103060  26496 227192    0    0    52    38  202  425 56 41  1  3
4  0      0 103300  26496 227196    0    0     0     0  192  439 54 47  0  0
1  0      0 103300  26496 227196    0    0     0     0  303  589 64 36  0  0
1  0      0 103316  26496 227196    0    0     0     0  367  656 64 37  0  0


# top - 22:37:53 up 52 min,  2 users,  load average: 2.46, 1.87, 1.80
Tasks:  81 total,   2 running,  79 sleeping,   0 stopped,   0 zombie
Cpu(s): 57.9%us, 41.1%sy,  0.0%ni,  0.0%id,  0.0%wa,  1.0%hi,  0.0%si,  0.0%st
Mem:    495416k total,   385172k used,   110244k free,    25784k buffers
Swap:        0k total,        0k used,        0k free,   224916k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND         
1152 root      20   0 70992  20m 5976 S 14.5  4.2   1:13.63 X               
23680 dlin      20   0  109m  22m  13m S  7.2  4.6   1:43.47 chromium         
1887 dlin      20   0  138m  12m 9848 S  6.9  2.6   0:12.89 lxterminal       
1182 dlin      20   0 99848  11m 8904 S  3.9  2.3   2:42.20 lxpanel         
1191 dlin      20   0  297m  43m  27m S  1.0  9.1   1:00.54 chromium         
21399 dlin      20   0  4404 1144  888 R  0.7  0.2   0:00.02 menu-cache-gen   
    1 root      20   0  1712  608  548 S  0.3  0.1   0:17.09 init             
    4 root      20   0     0    0    0 S  0.3  0.0   0:02.20 ksoftirqd/0     
  419 root      20   0     0    0    0 D  0.3  0.0   0:02.82 usb-storage     
1161 root      20   0  3648 1144  988 S  0.3  0.2   0:00.65 hald-addon-stor

Last edited by dlin (2011-04-02 16:38:08)


Running 4 ArchLinux including sh4twbox,server,notebook,desktop. my AUR packages

Offline

#2 2011-04-02 14:48:30

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: [Solved] cpu usage 100%, it is bug of lxpanel

pacman -S htop


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#3 2011-04-02 16:05:35

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] cpu usage 100%, it is bug of lxpanel

dlin wrote:

Recently, I found its CPU usage is 100%.

How did you do it?

Edit:

# top - 22:37:53 up 52 min,  2 users,  load average: 2.46, 1.87, 1.80

Load avg doesn't look good. What have you been doing? Compiling, compressing?

Last edited by karol (2011-04-02 16:14:59)

Offline

#4 2011-04-02 16:22:07

dlin
Member
From: Taipei,Taiwan
Registered: 2005-09-21
Posts: 265

Re: [Solved] cpu usage 100%, it is bug of lxpanel

karol wrote:
dlin wrote:

Recently, I found its CPU usage is 100%.

How did you do it?

Edit:

# top - 22:37:53 up 52 min,  2 users,  load average: 2.46, 1.87, 1.80

Load avg doesn't look good. What have you been doing? Compiling, compressing?

I use xorg,lxpanel,chromium, and just open a page for this forum.
No compressing, Compiling, you could see the top view.
Even I close the chromium, the load seems high.


Running 4 ArchLinux including sh4twbox,server,notebook,desktop. my AUR packages

Offline

#5 2011-04-02 16:27:17

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] cpu usage 100%, it is bug of lxpanel

Well, top shows that %CPU is clearly below 100% so I thought maybe you've been doing some very cpu-intensive task and took the top-screenshot after you've finished.

Is e.g. the UI responsive? If yes, than it may be a bug that artificially inflated the load avg.

Offline

#6 2011-04-02 16:37:29

dlin
Member
From: Taipei,Taiwan
Registered: 2005-09-21
Posts: 265

Re: [Solved] cpu usage 100%, it is bug of lxpanel

I've changed to kernel-ck, the problem still exist.
I turn off X11. It is OK.
I turn off lxpanel. 

BINGO, it is the cpu eater.

It always show the following message.
** (process:15327): WARNING **: removed previous socket file /tmp/.menu-cached-:0-dlin

And it is caused by my $HOME/.cache directory is readonly.

Last edited by dlin (2011-04-03 08:49:05)


Running 4 ArchLinux including sh4twbox,server,notebook,desktop. my AUR packages

Offline

#7 2011-04-03 08:44:45

Edward.H
Member
Registered: 2009-10-26
Posts: 69
Website

Re: [Solved] cpu usage 100%, it is bug of lxpanel

I got this problem with gnome3 ,but it solved after routine update.

Offline

#8 2011-04-05 12:16:33

manouchk
Member
Registered: 2008-07-29
Posts: 306

Re: [Solved] cpu usage 100%, it is bug of lxpanel

The problem is quite old (3 weeks old?) and bad (it eventually does freeze the computer if lxpanel is not killed). I still have the problem today. My last update was on first of april. Has it been fixed later? I will check update at night.

Last edited by manouchk (2011-04-05 12:22:38)

Offline

#9 2011-04-05 14:10:30

dlin
Member
From: Taipei,Taiwan
Registered: 2005-09-21
Posts: 265

Re: [Solved] cpu usage 100%, it is bug of lxpanel

manouchk wrote:

The problem is quite old (3 weeks old?) and bad (it eventually does freeze the computer if lxpanel is not killed). I still have the problem today. My last update was on first of april. Has it been fixed later? I will check update at night.

Hi, do you mean you have the same problem as me?

My workaround solution is just create a $HOME/.cache directory, and make sure I have permission, it solve this problem.
I back to use lxpanel.

I don't response to lxpanel's author, so the bug still exist there.


Running 4 ArchLinux including sh4twbox,server,notebook,desktop. my AUR packages

Offline

#10 2011-04-05 14:25:40

manouchk
Member
Registered: 2008-07-29
Posts: 306

Re: [Solved] cpu usage 100%, it is bug of lxpanel

It seems that the problem occurs to me too! Could it be linked with libreoffice?

I think I have permission in ~/.cache directory:

ls -lh |grep .cache
drwxr-xr-x  2 manu manu 4,0K 29 mars   2010 cache
[11:21][manu@compal:~]$ ls -lh .cache
total 36K
drwx------ 2 manu manu 4,0K 19 oct.  15:56 dconf
-rw-r--r-- 1 manu manu  12K 14 mars  11:52 event-sound-cache.tdb.12c7aa4c6ede9c34246c65044a475d7e.i686-pc-linux-gnu
drwxr-xr-x 3 manu manu 4,0K 18 août   2010 geeqie
drwx------ 3 manu manu 4,0K 22 sept.  2010 gegl-0.1
drwxr-xr-x 2 manu manu 4,0K 12 sept.  2010 gogglesmm
drwx------ 2 manu manu 4,0K  1 avril 19:49 menus
drwx------ 3 manu manu 4,0K 11 déc.  18:42 vlc
[11:21][manu@compal:~]$ ls -lh .cache/menus
total 80K
-rw------- 1 manu manu 38K 23 nov.  19:24 26a80813bb7494e1d982502af748aef6
-rw------- 1 manu manu 38K  1 avril 19:49 757379b1865bb943a0541b554ffbb809

lxpanel is linked with .cache/menus directory?

I will try to delete .cache and see what happens!!

Offline

#11 2011-04-05 14:36:15

dlin
Member
From: Taipei,Taiwan
Registered: 2005-09-21
Posts: 265

Re: [Solved] cpu usage 100%, it is bug of lxpanel

manual run lxpanel, do you have the similar output as mine?

** (process:15327): WARNING **: removed previous socket file /tmp/.menu-cached-:0-dlin


Running 4 ArchLinux including sh4twbox,server,notebook,desktop. my AUR packages

Offline

#12 2011-04-05 16:03:00

manouchk
Member
Registered: 2008-07-29
Posts: 306

Re: [Solved] cpu usage 100%, it is bug of lxpanel

No.
I just got the freezing of lxpanel right now and I didn't get any warning in the command line.

Offline

#13 2011-04-06 05:12:29

dlin
Member
From: Taipei,Taiwan
Registered: 2005-09-21
Posts: 265

Re: [Solved] cpu usage 100%, it is bug of lxpanel

manouchk wrote:

No.
I just got the freezing of lxpanel right now and I didn't get any warning in the command line.

I guess you face different problem of mine.

So, you could try another panel program.  Eg. fbpanel.
Or, you should try report the problem to lxpanel's author.


Running 4 ArchLinux including sh4twbox,server,notebook,desktop. my AUR packages

Offline

#14 2011-06-17 20:10:27

bamse
Member
Registered: 2011-06-17
Posts: 1

Re: [Solved] cpu usage 100%, it is bug of lxpanel

I've got the same issue with lxpanel. After some looking around, it seems that choosing "System theme" in the Background section of the Appearance tab in Panel Preferences causes this load. Don't ask me why.
What I can tell is that changing the setting to "Image" or "Solid color (with opacity)" solved the cpu problem for me.

Hope it helps someone.

Offline

#15 2011-06-18 10:47:12

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,911

Re: [Solved] cpu usage 100%, it is bug of lxpanel

i use that setting, and have no cpu problems, so it's likely theme related .

Check which theme is set in lxappearance  ('customize look and feel' in lxde menu', i am using clearlooks theme.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

Board footer

Powered by FluxBB