tracing block activity
페이지 정보
작성자 조희승 댓글 0건 조회 11,840회 작성일 12-08-17 15:23본문
실시간 확인
blktrace /dev/sda1 -a complete -o - | blkparse -f "%d,%S,%n,%N\n" -i -
blktrace /dev/sda1 -a complete -o - | blkparse -f "%s %t %t %m %d %S %n\n" -i -
결국 btrace만 사용하면 된다..
btrace -a complete /dev/sda1
btrace -a issued /dev/sda1
barrier: barrier attribute
complete: completed by driver
fs: requests
issue: issued to driver
pc: packet command events
queue: queue operations
read: read traces
requeue: requeue operations
sync: synchronous attribute
write: write traces
notify: trace messages
complete: completed by driver
fs: requests
issue: issued to driver
pc: packet command events
queue: queue operations
read: read traces
requeue: requeue operations
sync: synchronous attribute
write: write traces
notify: trace messages
btt를 사용하려면......
blktrace /dev/sda1
현재디렉토리에 cpu별로 파일이 여러개 생김
blkrawverify
한번 돌려주고
blkparse -O -d rs2 sdc3.blktrace.0 sdc3.blktrace.1
하나의 파일로 묶어줌
파일을 하나로 만들려면
blktrace /dev/sdc1 -o - | cat > /tmp/rs
btt -i rs2
최종 결과가 나옴
다큐먼트 ===> btt.pdf
CONFIG_BLK_DEV_IO_TRACE: Support for tracing block io actions
General informations
The Linux kernel configuration item
CONFIG_BLK_DEV_IO_TRACE
has multiple definitions:block/Kconfig
The configuration item CONFIG_BLK_DEV_IO_TRACE:
- prompt: Support for tracing block io actions
- type: tristate
- depends on:
CONFIG_SYSFS
- defined in block/Kconfig
- found in Linux Kernels: from 2.6.17 release still available on 2.6.30 release
Help text
Say Y here if you want to be able to trace the block layer actions on a given queue. Tracing allows you to see any traffic happening on a block device queue. For more information (and the userspace support tools needed), fetch the blktrace tools from:
git://git.kernel.dk/blktrace.git
If unsure, say N.
kernel/trace/Kconfig
The configuration item CONFIG_BLK_DEV_IO_TRACE:
- prompt: Support for tracing block io actions
- type: tristate
- depends on:
( CONFIG_SYSFS ) && ( CONFIG_BLOCK )
- defined in kernel/trace/Kconfig
- found in Linux Kernels: from 2.6.17 release still available on 2.6.30 release
Help text
Say Y here if you want to be able to trace the block layer actions on a given queue. Tracing allows you to see any traffic happening on a block device queue. For more information (and the userspace support tools needed), fetch the blktrace tools from:
git://git.kernel.dk/blktrace.git
Tracing also is possible using the ftrace interface, e.g.:
echo 1 > /sys/block/sda/sda1/trace/enable
echo blk > /sys/kernel/debug/tracing/current_tracer
cat /sys/kernel/debug/tracing/trace_pipe
If unsure, say N.
Hardware
LKDDb
Raw data from LKDDb:
- (none)
Sources
댓글목록
등록된 댓글이 없습니다.