performance monitoring
Posted
by
Sunny
on Super User
See other posts from Super User
or by Sunny
Published on 2012-03-26T16:47:21Z
Indexed on
2012/03/26
17:33 UTC
Read the original article
Hit count: 210
I want to monitor CPU usage, disk read/write usage for a particular process, say ./myprocess
.
To monitor CPU top
command seems to be a nice option and for read and write iotop
seems to be a handy one.
For example to monitor read/write for every second i use the command iotop -tbod1 | grep "myprocess"
.
My difficulty is I just want only three variables to store, namely read/sec, write/sec, cpu usage/sec. Could you help me with a script that combines the outputs the above said three variables from top
and iotop
to be stored into a log file?
Thanks!
© Super User or respective owner