Author Topic: cpu over run in LXDE (Solved)  (Read 1917 times)

Offline cstrike77

  • Full Member
  • ***
  • Posts: 220
cpu over run in LXDE (Solved)
« on: November 09, 2010, 01:48:11 PM »
SOLUTION:

After un-installing firestarter and rkhunter this problem went away. I think it was rkhunter and another program having issues.

Tried to track this down, best I can say is it sometimes happens after synaptic updates and sometimes after running opera. Have no Idea of what's pegging my CPU. Anybody have a clue?

« Last Edit: November 28, 2010, 12:46:35 PM by cstrike77 »

Offline melodie

  • Hero Member
  • *****
  • Posts: 5946
  • Internet Relay Chat sur Freenode
    • PCLinuxOS Fr
Re: cpu over run in LXDE
« Reply #1 on: November 09, 2010, 02:31:30 PM »
Hi,

Synaptic uses cpu resources, I can see it each time I use it. It does not long last though.

For Opera, would it be related to a plugin ? Or if you used another browser, how would it be ? (Arora for instance, which is also qt based)

melodie at #lpic-fr on irc.freenode.net

Offline cstrike77

  • Full Member
  • ***
  • Posts: 220
Re: cpu over run in LXDE
« Reply #2 on: November 09, 2010, 02:45:05 PM »
Hi,

Synaptic uses cpu resources, I can see it each time I use it. It does not long last though.

For Opera, would it be related to a plugin ? Or if you used another browser, how would it be ? (Arora for instance, which is also qt based)



This episode just happened at the library whilst online. When I exited Opera it was fine, using about 12-13% CPU. when I came back after going to the restroom CPU was pegged at 100%. That's why I screenshot it and uploaded.

This just started happening a couple of weeks ago, I have rkhunter and run every day.

Have no plugins running on Opera, I first thought it was the turbo setting, which I can't use here at the library but can use at McDonalds.

After a re-boot it's fine, it I just log out and log in it still pegs the C
PU.

Tks!

Offline melodie

  • Hero Member
  • *****
  • Posts: 5946
  • Internet Relay Chat sur Freenode
    • PCLinuxOS Fr
Re: cpu over run in LXDE
« Reply #3 on: November 09, 2010, 03:26:50 PM »
I suggest you install htop, then use it to track processes. It's richly featured and allows doing many things (kill processes for example, as user, or as root if you start it from a root console, classify the processes by type of resource used, and much more).

About rootkit : not useful to look for them, I think. It uses resources for nothing. Manage to always have a good root password, and a good user password. This is important.

Then watch out to what websites you go (give a try to Firefox along with Noscript plugin : very good to avoid javascript on unsafe websites).

« Last Edit: November 09, 2010, 03:44:56 PM by melodie »
melodie at #lpic-fr on irc.freenode.net

Offline cstrike77

  • Full Member
  • ***
  • Posts: 220
Re: cpu over run in LXDE
« Reply #4 on: November 10, 2010, 12:55:30 PM »
I suggest you install htop, then use it to track processes. It's richly featured and allows doing many things (kill processes for example, as user, or as root if you start it from a root console, classify the processes by type of resource used, and much more).

About rootkit : not useful to look for them, I think. It uses resources for nothing. Manage to always have a good root password, and a good user password. This is important.

Then watch out to what websites you go (give a try to Firefox along with Noscript plugin : very good to avoid javascript on unsafe websites).



I'll try htop, and change my root/login passwords. It's so strange because it happens every once in a while, different programs, different times on the net or off. I seen once rkhunter running and it had been probably an hour before that I had run it.

Firefox is too heavy to run on this machine, I'd rather be running epiphany all the time, but it seems to be broke and not been fixed, midori has same problems.

Since I'm at the library they filter where you can go, and genealogy sites are usually where I'm at anyway.

Tks!
« Last Edit: November 10, 2010, 01:06:10 PM by cstrike77 »

Offline melodie

  • Hero Member
  • *****
  • Posts: 5946
  • Internet Relay Chat sur Freenode
    • PCLinuxOS Fr
Re: cpu over run in LXDE
« Reply #5 on: November 10, 2010, 01:14:18 PM »
Midori is not broken here. You might want to make it recreate it's user config directories and files.

Erase  ~/.local/share/webkit, move ~/.config/midori out of the way (rename it to "midori-back" for instance, so you don't loose bookmarks or other preferences if you have arranged it you way), erase ~/.cache/midori (the icons cache : no need to keep it).


melodie at #lpic-fr on irc.freenode.net

Offline cstrike77

  • Full Member
  • ***
  • Posts: 220
Re: cpu over run in LXDE
« Reply #6 on: November 10, 2010, 02:02:17 PM »
Midori is not broken here. You might want to make it recreate it's user config directories and files.

Erase  ~/.local/share/webkit, move ~/.config/midori out of the way (rename it to "midori-back" for instance, so you don't loose bookmarks or other preferences if you have arranged it you way), erase ~/.cache/midori (the icons cache : no need to keep it).





Humm, wonder if that would work with Epiphany. I like it better than midori.

Update, got to the library, got updates w/synaptic. quit synaptic, ran repo speed test and then started synaptic again. Closed it out, fired up Opera and read forums. Exited opera, fired up synaptic again and got htop. Closed synaptic and then fired up my windows based email reader and got mail. Exited out of email reader and cpu was pegged again..


Offline melodie

  • Hero Member
  • *****
  • Posts: 5946
  • Internet Relay Chat sur Freenode
    • PCLinuxOS Fr
Re: cpu over run in LXDE
« Reply #7 on: November 10, 2010, 02:09:02 PM »
Hi,

Please redo the screenshot after you use F6 in htop and choose "sort by : cpu". Get rid of firestarter, look at what processes are started at boot in the PCC > System > Services section and do a screenshot there as well. Try install and to boot to a new kernel : the latest 2.6.33.7-bfs.pclos.

Have you said how the problem started, and what hardware you have ?

(cpu brand and model, ram is 128 MB right ? and video card ?)

(Synaptic might be too heavy for the hardware you have. Thinking... )
melodie at #lpic-fr on irc.freenode.net

Offline cstrike77

  • Full Member
  • ***
  • Posts: 220
Re: cpu over run in LXDE
« Reply #8 on: November 10, 2010, 02:46:06 PM »
Hi,

Please redo the screenshot after you use F6 in htop and choose "sort by : cpu". Get rid of firestarter, look at what processes are started at boot in the PCC > System > Services section and do a screenshot there as well. Try install and to boot to a new kernel : the latest 2.6.33.7-bfs.pclos.

Have you said how the problem started, and what hardware you have ?

(cpu brand and model, ram is 128 MB right ? and video card ?)

(Synaptic might be too heavy for the hardware you have. Thinking... )

CPU Intel Celeron 600 mhz 128 mb ram, video is ati rage pro mobility.

It just started about the same time that pcmanfm updated and fixed all the problems we all were having with it.

Not done a new kernel yet, that might be interesting... I've been thinking about downloading the newer version of LXDE, only copy I have burnt is 2010.4, sure don't want to install from that if I needed a re-install..

Tks!

Offline melodie

  • Hero Member
  • *****
  • Posts: 5946
  • Internet Relay Chat sur Freenode
    • PCLinuxOS Fr
Re: cpu over run in LXDE
« Reply #9 on: November 10, 2010, 03:57:19 PM »
With this kind of machine you should make the services ran at boot (and after) as few as possible, (but some do need to be run) and go smooth on starting heavy apps at same time : Opera + Synaptic, or Synaptic + PCC and so on... Opera makes use of Qt : what about trying Arora which is among the light web browsers ? (not sure it will act better but you could give it a try)

melodie at #lpic-fr on irc.freenode.net

Offline cstrike77

  • Full Member
  • ***
  • Posts: 220
Re: cpu over run in LXDE
« Reply #10 on: November 13, 2010, 01:19:38 PM »
Took me a couple of days to get this thing to do act up again. This time offline hit f6 and here's the shot. I've not been running firestarter and so far it's not over run online..




Offline melodie

  • Hero Member
  • *****
  • Posts: 5946
  • Internet Relay Chat sur Freenode
    • PCLinuxOS Fr
Re: cpu over run in LXDE
« Reply #11 on: November 13, 2010, 02:07:38 PM »
Hi,

Whatever you have running on 3rd line /usr/sbin/rk<something> ? is it rkhunter ? Could you stop it ? Stop conky as well. You can run htop once a while to see what goes on in there. Try urxvt-unicode as a terminal. You will have to add a line in ~/.Xdefaults to get it to work fine:
Code: [Select]
URxvt*termName: rxvt
You can add it at the beginning just after:
Quote
! ~/.Xdefaults
!

! Urxvt --------------------------------------------------------------------


It is one of the lightest terminals.

Here is my full .Xdefaults, incase you would like one that it pre-configured:
Code: [Select]
! ~/.Xdefaults
!

! Urxvt --------------------------------------------------------------------

URxvt*termName: rxvt

urxvt*depth: 32
urxvt*background: rgba:0000/0000/0200/c800

URxvt*geometry: 95x30
urxvt.foreground: #ffffff
urxvt.font: xft:Dejavu Sans Mono:pixelsize=13:antialias=true
urxvt.modifier:alt
urxvt.matcher.button: 1
urxvt.perl-ext-common: default,matcher

! Taille du buffer et barre de défilement
URxvt*saveLines: 10000
URxvt*scrollBar: true
URxvt*scrollBar_right: true
!URxvt*scrollColor: #c2dd5a
URxvt*scrollColor: #7ba2d2
URxvt*scrollBar_floating: true
URxvt*scrollstyle: plain

! Colors
urxvt.color0: #000000
urxvt.color1: #a40000
urxvt.color2: #4a9a06
urxvt.color3: #c4a000
urxvt.color4: #204a87
urxvt.color5: #5c3566
urxvt.color6: #729fcf
urxvt.color7: #eeeeec
urxvt.color8: #000000
urxvt.color9: #cc0000
urxvt.color10: #73d216
urxvt.color11: #edd409
urxvt.color12: #3465a4
urxvt.color13: #75507b
urxvt.color14: #729fcf
urxvt.color15: #ffffff

You can see on a screenshot I did in my machine with htop running in urxvt that it is possible to run htop in full screen if you start it from command line in a new terminal session (and not from the menus), and you can see better what goes on the line that starts with "/etc/X11/X : 0".

In your shot we can't see what goes at the end.

My machine has a cpu Celeron 1.46 Ghz, and 1 GB ram. Still, X11 doesn't use as much resource as in your's:

http://meets.free.fr/images/htop-running.png

Hope this helps you a little.


melodie at #lpic-fr on irc.freenode.net

Offline cstrike77

  • Full Member
  • ***
  • Posts: 220
Re: cpu over run in LXDE
« Reply #12 on: November 13, 2010, 02:37:12 PM »
That does look like rkhunter running, tho it had been run and closed maybe abt half an hour or so before.

Wish I could do a better screen shot, but running in 8X6 not 1024X768 and I don't think this ancient thing will do that or may and have to scroll sideways to  view the end of the desktop.

Going to copy and paste your email and read later, not enough coffee today and most everything is going over my head at the moment....

Tks!

Offline melodie

  • Hero Member
  • *****
  • Posts: 5946
  • Internet Relay Chat sur Freenode
    • PCLinuxOS Fr
Re: cpu over run in LXDE
« Reply #13 on: November 13, 2010, 02:52:36 PM »
That does look like rkhunter running, tho it had been run and closed maybe abt half an hour or so before.

Wish I could do a better screen shot, but running in 8X6 not 1024X768 and I don't think this ancient thing will do that or may and have to scroll sideways to  view the end of the desktop.

Going to copy and paste your email and read later, not enough coffee today and most everything is going over my head at the moment....

Tks!


Hi,

I can't figure out what machine is one that has a 8x6 screen ?

For your problem : why do you need rkhunter for ? Just pick a good password with letters numbers and special characters in it, such as a0!tUh{$@@ (but do not pick this one!) and get rid of that unuseful program. I have run Linux distributions since 2004 February, never had a firewall or a rooktit hunting in my machine (tried chkrootkit a few times at the beginning, it never found any malware so I left it aside).

Remove all services you do not need all the time. You can activate one you need once a while on the fly, and deactivate it after use.

Do not use greedy programs. (Opera might be too greedy for this machine). if it is not enough, you might try to start Openbox Bonsai on it, to see if it makes a difference.

melodie at #lpic-fr on irc.freenode.net

Offline cstrike77

  • Full Member
  • ***
  • Posts: 220
Re: cpu over run in LXDE
« Reply #14 on: November 14, 2010, 12:42:46 PM »
Quote
Hi,

I can't figure out what machine is one that has a 8x6 screen ?

For your problem : why do you need rkhunter for ? Just pick a good password with letters numbers and special characters in it, such as a0!tUh{$@@ (but do not pick this one!) and get rid of that unuseful program. I have run Linux distributions since 2004 February, never had a firewall or a rooktit hunting in my machine (tried chkrootkit a few times at the beginning, it never found any malware so I left it aside).

Remove all services you do not need all the time. You can activate one you need once a while on the fly, and deactivate it after use.

Do not use greedy programs. (Opera might be too greedy for this machine). if it is not enough, you might try to start Openbox Bonsai on it, to see if it makes a difference.



I checked, only thing in that directory with those first letters is rkhunter, so it's gone after today along with firestarter.

This is a fujitsu I4190 (?) laptop, checked monitor setup last night when I got home 8X6 is highest setting on 12 in screen.. I did have 1024X768 running on it once in XP but you had to scroll the screen to do it. Anyway need 8X6 as eyesight is not the best, half the fime need magnifying glass to see things one of the reasons I'm missing keys, dropped it and lopped off a few. What you have is what I've been looking for, just not been able to find a freebe. Someone offered me an HP w/fried mobo and no HD, it had Vista on it so it's a whale of a lot better than this but trying to come up with MB and probably a SATA drive out of my league, plus it was offered to me weeks ago, and he's not brought it with him, so I'll probably never see it.

I switched over to Netscape, seems a little less of pig than opera or firefox so far. Still like opera but this seems to do a good job so far.

We'll see if I get any more over runs after uninstalling those two...

EDIT:
Well, if I could have SEEN the screen, it says ENTER on the lower left, duh, after doing that my screen looks like yours... Oh well...

Tks again!
« Last Edit: November 15, 2010, 01:32:42 PM by cstrike77 »