Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
01-22-2009, 12:10 PM
|
#1
|
|
Senior Member
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Etch/Lenny/Squeeze
Posts: 3,796
|
Debian: top process under user root uses all CPU time
Debian Lenny KDE 3.5.9
Kernel 2.6.26
Sometimes my desktop computer becomes very sluggish. Often it is famd or Opera responsible for this. Anyway, I run 'top' a lot of times. Today I did that again and this is what I saw:
The top process started by user root is using over 90% of all CPU time. Then top is not that useful anymore.
http://pdis.rnw.nl/~hansl/links/top1.jpg
That is weird, but root was not even logged in at that time, which makes it even more weird. See below on the picture.
After logging in as root and killing the process everything was back to normal. No suspicious entries in auth.log.
I have two more problems which occured over the course of time:
- after a few days both of my scanners become very, veeeeeeeeeeeeeeery slow. Replugging doesn't help, rebooting does.
- at random times, my network is gone and I have to restart my network. This can happen within 12 hours of a reboot, or in 12 days. After a reset of the network the period is as random, but sometimes it can happen several times on one evening.
Sounds like a HW problemm BUT... at home I am running Debian Lenny as well, and since dec 29 2008 I see exactly the same behaviour that I have to reset the network regularly.
And now this with the top process...
Don't ask me what I installed the past few months and what not. Of course I install Debian programs now and then, with associated dependencies. Bot the office machine and home machine have identical packages installed, have an identical NIC (3C905) and one scanner is identical (Canon LiDE 25)
Any other Debian user seen this weird behaviour?
jlinkels
|
|
|
|
01-22-2009, 12:39 PM
|
#2
|
|
Senior Member
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,167
|
I wouldn't be alarmed by the cpu usage of top, so long as it doesn't stay up there. It is expected that processes, while on the CPU, will utilicize it well. At a particular polling instance, top may be running its backend slice, and sure, it'll be doing some work. Does top sustain that level for a while, or just appear at the top every now and again? Also, it has been widely argued that top is not the most accurate monitoring utility, in particular when it comes to memory usage (see the internetz 4 more details.)
|
|
|
|
01-22-2009, 01:22 PM
|
#3
|
|
Senior Member
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Etch/Lenny/Squeeze
Posts: 3,796
Original Poster
|
I know how top behaves, usually it shows some bursts. But it stays there put. Using 80-95% CPU time, dependent on what the other processes leave, and for more than a few minutes. And I cannot understand why it runs as root account while root wasn't logged in.
jlinkels
|
|
|
|
01-22-2009, 01:48 PM
|
#4
|
|
Senior Member
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,167
|
Quote:
Originally Posted by jlinkels
I know how top behaves, usually it shows some bursts. But it stays there put. Using 80-95% CPU time, dependent on what the other processes leave, and for more than a few minutes. And I cannot understand why it runs as root account while root wasn't logged in.
jlinkels
|
hm, odd indeed. (didn't mean to baby you on a generic top/scheduler rant, i see that you have "been around!") sorry not to be of any more help.
|
|
|
|
01-22-2009, 02:19 PM
|
#5
|
|
Senior Member
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Etch/Lenny/Squeeze
Posts: 3,796
Original Poster
|
No offence taken, I just a bit stressed 
|
|
|
|
01-22-2009, 03:46 PM
|
#6
|
|
Member
Registered: Mar 2007
Distribution: Debian
Posts: 547
Rep:
|
it looks like an old top process (maybe a crashed one), not the one that is visible (look at the cpu time).
As for myself, I haven't seen any unusual behaviour of top. I have, however, had the same problems with famd. Fam annoyed me with cpu usage and unnessary blocking of ressources (which prevented unmounts and so on), so I replaced it with gamin. Gamin runs fine and hasn't shown any such behaviour so far.
|
|
|
|
01-22-2009, 04:06 PM
|
#7
|
|
Senior Member
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 3,670
|
hmm, I haven't seen that behaviour (and top seems to be better behaved in difficult circumstances than ksysguard). However I note that recently I seem to have switched from 'top' to 'htop' without having a very clear reason for doing that, apart from that the display seems 'friendlier'.
So one question that you might like to answer is does htop do the same thing as top?
|
|
|
|
01-22-2009, 09:02 PM
|
#8
|
|
Senior Member
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Etch/Lenny/Squeeze
Posts: 3,796
Original Poster
|
Quote:
Originally Posted by almatic
it looks like an old top process (maybe a crashed one), not the one that is visible (look at the cpu time).
|
Well, of course I don't have an how long it has been running. But when I started it as root, and logged out, the process should have been stopped, shouldn't it? There might have been an error in the process, but I was able to kill it with a normal kill, not kill -9 or so.
Quote:
Originally Posted by almatic
Fam annoyed me with cpu usage and unnessary blocking of ressources (which prevented unmounts and so on), so I replaced it with gamin. Gamin runs fine and hasn't shown any such behaviour so far.
|
Yes, I know all about famd. That is the reason that I use top so often. To see if any non-responsiveness comes from famd. Thanks for the advice on Gamin.
Quote:
|
Originally Posted by salasi
So one question that you might like to answer is does htop do the same thing as top?
|
Couldn't tell you what htop does. It is not reproducable. After I killed this one, the next top was fine. Popped up now and then with 1% CPU usage or so, quite normal. It is the first time in 9 years that I see top go berserk  Will give htop a try to see what it is. Thanks for recommending.
Maybe this is just the next step to a detoriationg system. No, I am not wanting to reinstal this system. I installed it in 2004 already and upgraded it ever since, it is not Windows. Although... since New Year I already restarted the machine twice. I used to do that twice a year.
jlinkels
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 07:48 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|