Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
blktrace 区分同步写入和异步写入(输出 W 或 WS)。
我想知道,blktrace 如何判断 I/O 请求是否同步?它会查看生物结构中的一些标志吗?
我觉得你是对的。blktrace(在内核空间中)将检查 bio->bi_rw,标志 BIO_RW_SYNCIO。详细信息在 ./kernel/trace/blktrace.c