■ Requirement : Command which provides IO details of process
■ OS Environment : Linux
■ Solution :
$ for i in {1..65353}; do if [ -f /proc/$i/io ] ; then echo "---------------------------------------------------"; echo "Process name :" ; cat /proc/$i/cmdline; echo "PID : $i" ; echo "IO Details:" ; cat /proc/$i/io ; fi; done
NOTE : To dig the IO issue, one can use "iostat, sar, nfsstat -x" commands.
■ OS Environment : Linux
■ Solution :
$ for i in {1..65353}; do if [ -f /proc/$i/io ] ; then echo "---------------------------------------------------"; echo "Process name :" ; cat /proc/$i/cmdline; echo "PID : $i" ; echo "IO Details:" ; cat /proc/$i/io ; fi; done
NOTE : To dig the IO issue, one can use "iostat, sar, nfsstat -x" commands.
No comments:
Post a Comment