Home Man
Search
Today's Posts
Register

BSD, Linux, and UNIX shell scripting — Post awk, bash, csh, ksh, perl, php, python, sed, sh, shell scripts, and other shell scripting languages questions here.

Understanding the output of TOP

Tags
shell scripts

Login to Reply

 
Thread Tools Search this Thread
# 1  
Old 07-09-2010
Understanding the output of TOP

ok, so I have a script im running on a linux box that uses "egrep" a lot. now, when i run this script, i check the TOP to see how much system resource it is using.

the "top" command gives the following output:

Code:
last pid: 25384;  load avg:  1.06,  1.04,  0.76;       up 351+06:30:24                                                                                                                           00:10:08
139 processes: 2 running, 136 sleeping, 1 zombie
CPU states: 93.5% user,  0.0% nice,  6.3% system,  0.0% idle,  0.2% iowait
Kernel: 8 newproc
Memory: 5149M used, 2965M free, 303M buffers, 1341M cached
Swap: 6840K used, 1986M free, 1844K cached

  PID USERNAME  THR PRI NICE  SIZE   RES STATE   TIME    CPU COMMAND
25174 root        1  25    0 4256K  716K run     0:24 99.59% egrep
14120 www         1  15    0  127M  110M sleep   0:08  8.00% mongrel_rails
10243 root        1  15    0   48M   45M sleep  46.1H  3.60% ruby
 8880 www         1  15    0  146M  131M sleep   0:12  1.80% mongrel_rails
18157 www         1  15    0  155M  140M sleep   0:21  0.60% mongrel_rails

In the above output, it shows that the egrep command is using 99% of the CPU. does this mean it is actually taking up 99% of the entire CPU resource of the system, which would mean there's only 1% left for the other numerous processes on the system to use? this can't be right.

What do I need to look at in the above output to determine or isolate the system impact of this script i'm running.
Login to Reply

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Understanding output of "last" command kitykitykity UNIX for Advanced & Expert Users 2 02-24-2015 01:02 PM
Command understanding the output file destination in case of standard output!!!!! ravisingh Red Hat 3 02-22-2013 04:41 PM
Understanding the output of fwtmp confusedAdmin Shell Programming and Scripting 6 03-02-2012 10:30 AM
Understanding nm command output yatrik007 UNIX for Dummies Questions & Answers 2 02-07-2011 08:42 PM
understanding {%/*}/ vemana UNIX for Dummies Questions & Answers 3 08-16-2010 10:19 AM
problem in understanding the output of errpt -d H -T PERM -s `date +"%m%d%H00%y"` Sounddappan Shell Programming and Scripting 1 07-09-2010 11:57 AM
Problem in understanding the output of errpt -d H -T PERM -s `date +"%m%d%H00%y"` Sounddappan AIX 0 07-09-2010 10:32 AM
Understanding the output command Ariean UNIX for Dummies Questions & Answers 5 01-13-2010 04:54 PM
Help Understanding Output and question about /dev/ mojoman UNIX for Dummies Questions & Answers 5 07-09-2009 07:13 PM
Ifconfig output - help understanding flags 'Smart, Simplex', etc littlefrog OS X (Apple) 1 01-14-2009 01:33 PM


All times are GMT -4. The time now is 11:32 PM.

Unix & Linux Forums Content Copyright©1993-2018. All Rights Reserved.
UNIX.COM Login
Username:
Password:  
Show Password