How To Monitor System Utilization
CPU
Infos can be found here and here (with examples how to parse output with sed and awk).
Here are some commands/methods:
- top -bn 1
- iostat -c
- dstat -c
- mpstat #from sysstat package
- sar -u 2 1 #average over 2 seconds, for 1 time
- cat /proc/stat
- ps -eo pcpu,pid,user,args | sort -k 1 -r | head -10
Memory
- top -bn 1
- dstat -m
- cat /proc/meminfo
GPU
- nvidia_smi -l 1 #loop every 1 second
- nvidia_smi -q -d UTILIZATION -l 1 --id=0000:02:00 #just show GPU on a specific PCI bus
Network
- cat /proc/net/dev
- ifstat
- dstat -n
- netstat -a
Disk I/O
- iostat -d
- dstat -d
Last modified
8 years ago
Last modified on 03/04/16 11:07:31
Note:
See TracWiki
for help on using the wiki.