Linux performance tracing

Материал из Eugene Paniot Wiki
Перейти к: навигация, поиск

Disk IO

Mounting the debugfs file system

blktrace utilizes files under the debug file system, and thus must have the mount point set up - mounted on the directory /sys/kernel/debug. To do this one may do either of the following:

Manually mount after each boot:

mount -t debugfs debugfs /sys/kernel/debug

Add an entry into /etc/fstab, and have it done automatically at each boot1:

debug /sys/kernel/debug debugfs default 0 0
blktrace -d /dev/sda -o - | blkparse -i -
btrace /dev/sda
iotop -bod 5


<seealso> http://www.cse.unsw.edu.au/~aaronc/iosched/doc/blktrace.html blktrace User Guide </seealso>