This topic has been archived. It cannot be replied.
-
工作学习 / IT技术讨论 / 在redhat6下面,如何查找一个大量读取硬盘内容的进程?谢谢
-oceandeep(北极熊® Zzz Zzz);
2003-5-1
(#1166575@0)
-
The OS does not track disk I/O on per process basis. You can approach the problem by looking at the stime/utime ratio. A process does lots of disk I/O will have a higher ratio.
-shaomiao(shaomiao);
2003-5-1
(#1166635@0)
-
how to show the stime/utime? what I can get are the pecentages of CPU and Memory.
-oceandeep(北极熊® Zzz Zzz);
2003-5-1
(#1166703@0)
-
There is no out-of-box command for this. You need to write a script to read /proc/<process_id> and do the calculation yourself.
-shaomiao(shaomiao);
2003-5-1
(#1166749@0)
-
thank you for your reply? You mean that I have to write a script to check the 'stat' file in each process folder? But how can I know what this numbers indicate?443 (sqlexecd) S 1 88 88 0 -1 64 5737 69171 541 1090097 14 33 62762 26236 0 0 0
0 3933 1998848 65 2147483647 134512640 134865515 3221224848 3221219604 107486744
2 0 0 4103 65536 3222665561 65 129 17
-oceandeep(北极熊® Zzz Zzz);
2003-5-1
{200}
(#1166761@0)
-
Using "man proc", you will see the 14th word is utime, and 15th is the stime.
-shaomiao(shaomiao);
2003-5-1
(#1166793@0)
-
Thank you so much:)
-oceandeep(北极熊® Zzz Zzz);
2003-5-1
(#1167444@0)