Thank you for purchasing through links and ads on this site.
OWC / MacSales.com...
diglloyd B&H Deal Finder...
Buy other stuff at Amazon.com...
877-865-7002
Today’s Deal Zone Items... Handpicked deals...
$12 $12
SAVE $0

$1799 $1349
SAVE $450

$1399 $1049
SAVE $350

$150 $50
SAVE $100

$380 $340
SAVE $40

$489 $389
SAVE $100

$274 $174
SAVE $100

$400 $300
SAVE $100

$699 $499
SAVE $200

$499 $499
SAVE $0

$4500 $3500
SAVE $1000

$1000 $500
SAVE $500

$700 $600
SAVE $100

$1499 $699
SAVE $800

$700 $600
SAVE $100

$1499 $699
SAVE $800

$369 $200
SAVE $169

$1699 $1199
SAVE $500

$649 $449
SAVE $200

$1498 $1198
SAVE $300

$999 $949
SAVE $50

$1099 $999
SAVE $100

$400 $300
SAVE $100

Upgrade the memory of your 2019 iMac up to 128GB

Monitoring System Activity on the Command Line

Last updated 2013-12-29 - Send Feedback
Related: command line, 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

Deals Updated Daily at B&H Photo
View all handpicked deals...

Vello Octa Softbox for Portable Flash (Medium, 8")
$12 $12
SAVE $0

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