资 源 简 介
Motivation
Blktrace is low-overhead, configurable kernel component that generates events for specific operations performed on I/O entering or leaving the block layer. The events generated by kernel blktrace are get intercepted by a user level application also named blktrace. (I will call these components kernel blktrace and user blktrace respectively.)
Current blktrace have a serious technical limitation. The log information that kernel blktrace generate indicates the PID and the application name as following example:
8,0 0 132 3.170084711 14403 C W 24165559 + 8 pdflush
The problem is process ID and name information might not be the correct process responsible for that operation. It is mostly because the Linux kernel writes dirty pages asynchronously and the pdflush is the ultimate process that flushes dirty pages to the disk.
Goals
In this pr