• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

top

top

top Displays system usage statistics.
top [-u] [-w] [-k] [-s <interval>] [-e | -d | -a] [-l <samples>] [<number>]

top

-u Sorts by CPU usage and displays usage starting with the highest usage.
-w Generates additional columns of output data. The additional columns include VPRVT and the delta information for #PRTS, RSHRD, RSIZE, and VSIZE.
-k Causes top to traverse and report the memory object map for pid 0 (kernel task). This option is optional; it is expensive to traverse the object maps because the kernel task may have a large number of entries.
-s <interval> Samples processes at the specified <interval>. Default is one-second intervals.
-e Switches to event counting mode where counts reported are absolute counters. Options -w and -k are ignored.
-d Switches to an event counting mode in which counts are reported as deltas relative to the previous sample. Options -w and -k are ignored.
-a Switches to an event counting mode where counts are reported as cumulative counters relative to when top was launched. Options -w and -k are ignored.
-l <samples> Switches from default screen mode to a logging mode suitable for saving the output to a file. If <samples> is specified, top samples the number of samples specified before exiting. The default is 1.
<number> Limits the number of processes displayed to <number>.
Typing q causes top to exit immediately.
Columns displayed in default data mode:
PID Unix process ID.
COMMAND Unix command name.
%CPU Percentage of CPU used (kernel and user).
TIME Absolute CPU consumption (min:secs.hundredths).
#TH Number of threads.
#PRTS(delta) Number of mach ports.
#MERG Number of memory regions.
VPRVT(-w only) Private address space currently allocated.
RPRVT(delta) Resident shared memory (as represented by the resident page count of each shared memory object).
RSHRD(delta) Total resident memory. (Real pages that this process currently has associated with it. Some may be shared by other processes.)
VSIZE(delta) Total address space currently allocated (including shared).
Columns displayed in event counting modes:
PID Unix process ID.
COMMAND Unix command name.
%CPU Percentage of CPU used (kernel and user).
TIME Absolute CPU consumption (min:secs.hundredths).
FAULTS Number of page faults.
PAGEINS Number of requests for pages from a pager.
COW_FAULTS Number of faults that caused a page to be copied.
MSGS_SENT Number of mach messages sent by the process.
MSGS_RCVD Number of mach messages received by the process.
BSDSYSCALL Number of BSD system calls made by the process.
MACHSYSCALL Number of MACH system calls made by the process.
CSWITCH Number of context switches to this process.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint