文章来源: How I Use Iostat and Vmstat for Performance Analysis
考虑到svctm在iostat是不保证准确的. 分析io await相关问题需要和blktrace结合起来分析.
1. Is the I/O heavy?
- Check the sum of w/s and r/s. The larger, the heavier I/O.
-
Also check %util, the more, the heavier.
- If it is close to 100, then the I/O is definitely significant. It should be noted that during writing,
- if the disk is the bottleneck (%util is 100% for a long time), but the applications keep writing, as long as the dirty pages exceeds 30% of memory, the system will block all the write system call, no matter sync or async, and focuses on writing to the disk. Once this occurs, the entire system is slow as hell.
- check wa in vmstat log.
(more…)