Solved

About command top

Posted on 2010-09-10
8
618 Views
Last Modified: 2013-12-06
whats the meaning of %CPU?

  PID USER      PR  NI  VIRT  RES  SHR S           %CPU %MEM    TIME+  COMMAND
31550 drweb     25   0  352m 301m  736 R       99.6 14.9   5:08.07 drwebd.real
 8380 popuser   16   0  7176 1172  932 S         4.8  0.1   0:00.14 imapd
 8321 root      15   0  2336 1088  796 R             0.4  0.1   0:00.08 top
 8379 root      15   0  4952 1832 1528 S            0.4  0.1   0:00.05 couriertls
14764 root      15   0  2336 1008  720 S            0.4  0.0   2:56.85 top
24297 root      15   0  5944  588  536 S             0.4  0.0   1:31.86 couriertcp

thanks
0
Comment
Question by:VMWARE
8 Comments
 
LVL 68

Expert Comment

by:woolmilkporc
Comment Utility
That's
The task's share of the elapsed CPU time since the last  screen
          update, expressed as a percentage of total CPU time.  
In a true SMP environment, if 'Irix mode' is Off,  top  will  operate  in
          ´Solaris  mode' where a task's cpu usage will be divided by the
          total number of CPUs.  You toggle 'Irix/Solaris' modes with the
          'I' interactive command.

(from manpage)
wmp
 
0
 
LVL 18

Expert Comment

by:TobiasHolm
Comment Utility
Hi!

Remember to run the 'top' command as root if you want to see all processes from all users.

Regards, Tobias
0
 
LVL 4

Assisted Solution

by:MikeGeig
MikeGeig earned 166 total points
Comment Utility
CPU% is the percentage of the total CPU time being taken by a particular service or app.
0
 
LVL 4

Assisted Solution

by:MikeGeig
MikeGeig earned 166 total points
Comment Utility
To elaborate more, the higher the number, the more CPU time the process is taking. In your example: drwebd.real (process ID 31550) is taking 99.6% of your CPU time.
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 25

Expert Comment

by:madunix
Comment Utility
install sysstat to find more about CPU usage. If you are using SMP (Multiple CPU) system, use mpstat command to display the utilization of each CPU individually. You can display CPU activity, with sar.
0
 
LVL 4

Accepted Solution

by:
rajendraone earned 84 total points
Comment Utility
You are running Dr.Web anti virus scan that is consuming much of the CPU resources.
0
 
LVL 25

Expert Comment

by:madunix
Comment Utility
Are you sure the AV scan  it's not doing  a scheduled background scan or updating his engine...?
0
 

Author Closing Comment

by:VMWARE
Comment Utility
Thanks
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now