wiki:Monitoring

Version 2 (modified by Herwig Zilken, 8 years ago) ( diff )

--

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
  • cat /proc/meminfo

GPU

  • nvidia_smi -l 1 #loop every 1 second

Network

  • cat /proc/net/dev
  • ifstat
  • dstat -n
  • netstat -a

I/O

  • iostat -d
  • dstat -d
Note: See TracWiki for help on using the wiki.