Skip to content

Instantly share code, notes, and snippets.

@cocodrino
Created November 13, 2017 01:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cocodrino/790e1c784a5c6b6b13058a4f32b520c1 to your computer and use it in GitHub Desktop.
Save cocodrino/790e1c784a5c6b6b13058a4f32b520c1 to your computer and use it in GitHub Desktop.
show excesive IO in disk
iotop -bktoqqq -d .5
where: -b is batch mode
-k is kilobytes/s
-t adds timestamp
-o only show processes or threads actually doing I/O
-qqq removes output headers
-d .5 updates every .5 seconds
Once you have the process id, you can also find the files with
lsof -p $PID
@cocodrino
Copy link
Author

iotop -aoP

-a Will show accumulated output
-o Will only output
-P Will only show processes instead of threads

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment