Skip to Content
Linux Shell Scripting Cookbook - Third Edition
book

Linux Shell Scripting Cookbook - Third Edition

by Clif Flynt, Sarath Lakshman, Shantanu Tushar
May 2017
Beginner
552 pages
28h 47m
English
Packt Publishing
Content preview from Linux Shell Scripting Cookbook - Third Edition

There's more...

The dstat utility can identify the top resource user in a category:

  • -top-bio Disk Usage: This reports the process performing the most block I/O
  • -top-cpu CPU Usage: This reports the process using the most CPU resources
  • -top-io I/O usage: This reports the process performing the most I/O (usually network I/O)
  • -top-latency System Load: This shows the process with the highest latency
  • -top-mem Memory Usage: This shows the process using the most memory

The following example displays the CPU and Network usage and the top users in each category:

$ dstat -c -top-cpu -n -top-io
----total-cpu-usage---- -most-expensive- -net/total- ----most-expensive----
usr sys idl wai hiq siq|  cpu process   | recv  send|     i/o process      
 1 2 97 0 0 0|vmware-vmx ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Linux Shell Scripting - Second Edition

Mastering Linux Shell Scripting - Second Edition

Mokhtar Ebrahim, Andrew Mallett

Publisher Resources

ISBN: 9781785881985