Newer Linux kernels have per-process I/O accounting and you can use the iotop tool to find out what’s performing I/O, but in many cases I’m trying to find the source of an I/O problem in an older kernel. I found sort of a hack-ish way to do that today, while trying to figure out why a system was basically unresponsive.

I found a post on Stack Overflow that showed a way you can get per process I/O statistics from the kernel even in older kernels. I adapted this to my needs, and wrote a little script.

本日志由 flyinweb 于 2011-09-27 14:38:13 发表到 Linux 中,目前已经被浏览 526 次,评论 0 次;

作者添加了以下标签: iodump

首页只显示了部分日志内容,要查看日志的全部内容请阅读全文