Thank you for purchasing through links and ads on this site.
OWC / MacSales.com...
diglloyd Deal Finder...
Buy other stuff at Amazon.com...
Upgrade the memory of your 2018 Mac mini up to 64GB

Monitoring System Activity on the Command Line

Last updated 2013-12-29 - Send Feedback
Related: memory, optimization

Monitoring performance in Terminal can be useful for diagnosing performance issues, using the top and vm_stat tools (and iostat for disk I/O).

These tools are used in a Terminal window. The most useful tool is top, which can be left running continually, refreshing the window at regular intervals.

top

Show top 10 processes by CPU usage every 2 seconds, with data collected every 5 seconds:

top -o cpu -s 2 -i 5
Show top 10 processes by real memory every 2 seconds:

top -o rsize -s 2

'top' display by CPU usage

vm_stat

The vm_stat tool also provides some useful statistics on the use of real memory, compressed memory and virtual memory.

'vm_stat' output

iostat

The iostat tool also provides statistics on disk I/O.

Show up to 16 drives every 2 seconds:

iostat -w 2 -n 16

iostat output at 2-second intervals

World of Sigma and especially Sigma ART Lenses
B&H Deal ZoneDeals by Brand/Category/Savings
Deals expire in 22 hours unless noted. Certain deals may last longer.
$3199 SAVE $200 = 5.0% $99 FREE ITEMS Canon EOS R Mirrorless with 24-105mm in Cameras: Mirrorless
$1632 SAVE $700 = 28.0% $165 GIFT CARD LG C8PUA 55" Class HDR UHD Smart OLED TV in Electronics: Televisions
$3097 SAVE $200 = 6.0% $78 FREE ITEMS Nikon D850 DSLR in Cameras: DSLR
$1797 SAVE $200 = 10.0% Pentax K-1 Mark II DSLR in Cameras: DSLR
$998 SAVE $400 = 28.0% Sony a7 II Mirrorless in Cameras: Mirrorless
$1798 SAVE $200 = 10.0% Sony a7R II Mirrorless in Cameras: Mirrorless
$3998 SAVE $500 = 11.0% Sony a9 Mirrorless in Cameras: Mirrorless
$5987 SAVE $1839 = 23.0% ZEISS Loxia 5-Lens Bundle in Lenses: Mirrorless
$11594 SAVE $3157 = 21.0% ZEISS Otus ZF.2 3-Lens Bundle in Lenses: DSLR

diglloyd.com | Terms of Use | PRIVACY POLICY
Contact | About Lloyd Chambers | Consulting | Photo Tours
Mailing Lists | RSS Feeds | Twitter
Copyright © 2019 diglloyd Inc, all rights reserved.
Display info: __RETINA_INFO_STATUS__