LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 06-14-2003, 03:50 AM   #1
FireAge
LQ Newbie
 
Registered: Jun 2002
Location: Groningen, The Netherlands
Distribution: Redhat 7.3
Posts: 13

Rep: Reputation: 0
howto check what's eating proc time???


I've got a redhat 7.0 NAT server running kernel 2.2.16. non-graphical.
It's run for ages without any problems whatsoever.
I've recently installed an extra hd and have configured it to be a local share via samba.

Now for some reason from time to time the pc seems te be doing a lot of work.

uptime gives me 200+ % proc usage (P120, 64 MB RAM)

It get's so bad, that my internet connection is cut off.

Does anybody know how I can check what the proc is working on?
 
Old 06-14-2003, 03:52 AM   #2
carlywarly
Member
 
Registered: Feb 2003
Location: Sunny Southport, again.
Distribution: PCLinuxOS 0.93 and 0.92, Vector sometimes
Posts: 825

Rep: Reputation: 30
Will the command top tell you what you want?
 
Old 06-14-2003, 04:09 AM   #3
FireAge
LQ Newbie
 
Registered: Jun 2002
Location: Groningen, The Netherlands
Distribution: Redhat 7.3
Posts: 13

Original Poster
Rep: Reputation: 0
hmm, top gives me an error:

top: error while loading shared libraries: libncurses.so.4: cannot open shared object file: No such file or directory

I'll go install it and try again
 
Old 06-14-2003, 04:25 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
that's strange that top was compiled against an old version of ncurses, version 5 has been standard for an age now. try upgrading top to the newest version.
 
Old 06-14-2003, 07:03 AM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,359
Blog Entries: 55

Rep: Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545
Btw, you're running a very old distro, usually the .1 releases of RH fix a lot. I hope you kept up to date. Also you're running a 2.2.16 kernel. 2.2.18 should be the minimum wrt security fixes, 2.2.20 even better. Don't forget new kernel releases often have performance fixes as well.

If you're running "ps" try running "/bin/ps axfhwwwS -eo %C -eo uid,gid,pid,pri,args". This will give you per-process raw CPU time, including child processes, the uid/gid a process runs as as well as the process ID, priority and full commandline. I would recommend running atop and/or atsar. Atop is just a "better" top, and atsar is the Linux Sar equivalent. With kernel 2.4x you can use kernel profiling (LILO append line "profile=2") and then you can use "kerneltop" to see where the kernel spends most of its time in. Dunno if this works on 2.2x, I doubt it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
HOWTO Check, Start and Stop Services GNewbie MEPIS 9 08-22-2012 10:09 PM
kacpid eating cpu 99% cpu time! tjclancy Linux - Software 13 09-19-2011 03:08 PM
courier-imap eating CPU time izghitu Linux - Newbie 14 11-30-2005 04:22 PM
about /proc/$pid/stat 's start time henryluo Programming 2 06-21-2004 09:15 AM
howto check cluster size of partions lowly_tech Linux - Newbie 1 03-21-2002 06:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration