2012-05-14

MAC - top 指令的用法小記

ex : top 的用法 top -o cpu


-o <key>
       Order the process display by sorting on <key> in descending order.  A + or - can be prefixed  to  the
       key name to specify ascending or descending order, respectively.  The supported keys are:

       pid    Process ID (default).
       command
              Command name.
       cpu    CPU usage.
       csw    Number of context switches.
       time   Execution time.
       threads
              alias: th
              Number of threads (total/running).
       ports  alias: prt
              Number of Mach ports.
       mregion
              alias: mreg, reg
              Number of memory regions.
       rprvt  Resident private address space size.
       rshrd  Resident shared address space size.
       rsize  Resident memory size.
       vsize  Total memory size.
       vprvt  Private address space size.
       kprvt  Private kernel memory size.
       kshrd  Shared kernel memory size.
       pgrp   Process group id.
       ppid   Parent process id.
       state  alias: pstate
              Process state.
       uid    User ID.
       wq     alias: #wq, workqueue
              The workqueue total/running.
       faults alias: fault
              The number of page faults.
       cow    alias: cow_faults
              The copy-on-write faults.
       user   alias: username Username.
       msgsent
              Total number of mach messages sent.
       msgrecv
              Total number of mach messages received.
       sysbsd Total BSD syscalls.
       sysmach
              Total Mach syscalls.
       pageins
              Total pageins.



小記一下, 更多詳情就直接看 man




沒有留言:

張貼留言