Why blktrace didn't trace requests merge?
Hi all:
I used blktrace to trace some io.But i can't find requests merge. I searched the code and did't not find. Why?
Thanks! Jianpeng�翳簕.n�+壏煯壄�+%娝�遍荻w�簕.n�+壏{炳G珴�妠ay�蕠跈�,jf"穐殢飦�戧鐉_璁(殠娸"濟�m���G珴�⒏?櫒璀�&x忈秈O曟瑉窔v豝�m����鹅�⒏?朓�
Quoted 4 lines · Jianpeng Ma
Hi all:
I used blktrace to trace some io.But i can't find requests merge. I searched the code and did't not find. Why?
No idea. I don't use blktrace much, but I Cc'd those that understand it better than I.
-- Steve
(cc'ing Jens)
Quoted 8 lines · Steven Rostedt
Quoted 4 lines · Jianpeng Ma
Hi all:
I used blktrace to trace some io.But i can't find requests merge. I searched the code and did't not find. Why?No idea. I don't use blktrace much, but I Cc'd those that understand it better than I.
Signature · 1 line
tejun
Quoted 11 lines · Tejun Heo
(cc'ing Jens)
Quoted 8 lines · Steven Rostedt
Quoted 4 lines · Jianpeng Ma
Hi all:
I used blktrace to trace some io.But i can't find requests merge. I searched the code and did't not find. Why?No idea. I don't use blktrace much, but I Cc'd those that understand it better than I.
backmerge/fronmerge event?
Quoted 11 lines · Tejun Heo
(cc'ing Jens)
Quoted 8 lines · Steven Rostedt
Quoted 4 lines · Jianpeng Ma
Hi all:
I used blktrace to trace some io.But i can't find requests merge. I searched the code and did't not find. Why?No idea. I don't use blktrace much, but I Cc'd those that understand it better than I.
Works for me:
[...]
8,0 0 26 0.009147735 664 A WS 315226143 + 8 <- (8,7) 19406344 8,0 0 27 0.009148677 664 Q WS 315226143 + 8 [btrfs-submit-1] 8,0 0 28 0.009152967 664 G WS 315226143 + 8 [btrfs-submit-1] 8,0 0 29 0.009154242 664 P N [btrfs-submit-1] 8,0 0 30 0.009155538 664 A WS 315226151 + 8 <- (8,7) 19406352 8,0 0 31 0.009155743 664 Q WS 315226151 + 8 [btrfs-submit-1] 8,0 0 32 0.009157086 664 M WS 315226151 + 8 [btrfs-submit-1] 8,0 0 33 0.009158716 664 I WS 315226143 + 16 [btrfs-submit-1]
That's from a quick trace of /dev/sda. I started blktrace, then did:
$ dd if=/dev/zero of=foo bs=4k count=128 && sync
to ensure that I knew merges would be happening. Output stats at the end:
Total (sda):
Reads Queued: 7, 44KiB Writes Queued: 447, 7692KiB Read Dispatches: 7, 44KiB Write Dispatches: 416, 7692KiB Reads Requeued: 0 Writes Requeued: 0 Reads Completed: 7, 44KiB Writes Completed: 435, 5864KiB Read Merges: 0, 0KiB Write Merges: 23, 428KiB IO unplugs: 78 Timer unplugs: 0
Signature · 1 line
Jens Axboe
On 2012-09-18 02:27 Jens Axboe <[email protected]> Wrote:
Quoted 33 lines · Tejun Heo
Quoted 11 lines
(cc'ing Jens)
Quoted 8 lines · Steven Rostedt
Quoted 4 lines · Jianpeng Ma
Hi all:
I used blktrace to trace some io.But i can't find requests merge. I searched the code and did't not find. Why?No idea. I don't use blktrace much, but I Cc'd those that understand it better than I.
Works for me:
[...]
8,0 0 26 0.009147735 664 A WS 315226143 + 8 <- (8,7) 19406344 8,0 0 27 0.009148677 664 Q WS 315226143 + 8 [btrfs-submit-1] 8,0 0 28 0.009152967 664 G WS 315226143 + 8 [btrfs-submit-1] 8,0 0 29 0.009154242 664 P N [btrfs-submit-1] 8,0 0 30 0.009155538 664 A WS 315226151 + 8 <- (8,7) 19406352 8,0 0 31 0.009155743 664 Q WS 315226151 + 8 [btrfs-submit-1] 8,0 0 32 0.009157086 664 M WS 315226151 + 8 [btrfs-submit-1] 8,0 0 33 0.009158716 664 I WS 315226143 + 16 [btrfs-submit-1]That's from a quick trace of
/dev/sda. I started blktrace, then did:$ dd if=/dev/zero of=foo bs=4k count=128 && syncto ensure that I knew merges would be happening. Output stats at the end:
Quoted 11 lines
Total (sda):
Reads Queued: 7, 44KiB Writes Queued: 447, 7692KiB Read Dispatches: 7, 44KiB Write Dispatches: 416, 7692KiB Reads Requeued: 0 Writes Requeued: 0 Reads Completed: 7, 44KiB Writes Completed: 435, 5864KiB Read Merges: 0, 0KiB Write Merges: 23, 428KiB IO unplugs: 78 Timer unplugs: 0Signature · 1 line
Jens Axboe
First, Thanks your time!
If i understand correctly, the merge of your example is bio with request, not request wiht request. Yes or no?
Thanks!
Jianpeng �翳簕.n�+壏煯壄�+%娝�遍荻w�簕.n�+壏{炳G珴�妠ay�蕠跈�,jf"穐殢飦�戧鐉_璁(殠娸"濟�m���G珴�⒏?櫒璀�&x忈秈O曟瑉窔v豝�m����鹅�⒏?朓�
Quoted 42 lines · Jianpeng Ma
On 2012-09-18 02:27 Jens Axboe <[email protected]> Wrote:
Quoted 41 lines · Tejun Heo
Quoted 11 lines
(cc'ing Jens)
Quoted 8 lines · Steven Rostedt
Quoted 4 lines · Jianpeng Ma
Hi all:
I used blktrace to trace some io.But i can't find requests merge. I searched the code and did't not find. Why?No idea. I don't use blktrace much, but I Cc'd those that understand it better than I.
Works for me:
[...]
8,0 0 26 0.009147735 664 A WS 315226143 + 8 <- (8,7) 19406344 8,0 0 27 0.009148677 664 Q WS 315226143 + 8 [btrfs-submit-1] 8,0 0 28 0.009152967 664 G WS 315226143 + 8 [btrfs-submit-1] 8,0 0 29 0.009154242 664 P N [btrfs-submit-1] 8,0 0 30 0.009155538 664 A WS 315226151 + 8 <- (8,7) 19406352 8,0 0 31 0.009155743 664 Q WS 315226151 + 8 [btrfs-submit-1] 8,0 0 32 0.009157086 664 M WS 315226151 + 8 [btrfs-submit-1] 8,0 0 33 0.009158716 664 I WS 315226143 + 16 [btrfs-submit-1]That's from a quick trace of
/dev/sda. I started blktrace, then did:$ dd if=/dev/zero of=foo bs=4k count=128 && syncto ensure that I knew merges would be happening. Output stats at the end:
Total (sda):
Reads Queued: 7, 44KiB Writes Queued: 447, 7692KiB Read Dispatches: 7, 44KiB Write Dispatches: 416, 7692KiB Reads Requeued: 0 Writes Requeued: 0 Reads Completed: 7, 44KiB Writes Completed: 435, 5864KiB Read Merges: 0, 0KiB Write Merges: 23, 428KiB IO unplugs: 78 Timer unplugs: 0
Quoted 6 lines
Quoted 3 lines
Signature · 1 line
Jens AxboeFirst, Thanks your time!
If i understand correctly, the merge of your example is bio with request, not request wiht request. Yes or no?
It is bio to request, correct. Request to request merges are relatively more rare.
Signature · 1 line
Jens Axboe
On 2012-09-18 13:49 Jens Axboe <[email protected]> Wrote:
Quoted 46 lines · Jianpeng Ma
Quoted 45 lines
On 2012-09-18 02:27 Jens Axboe <[email protected]> Wrote:
Quoted 44 lines · Tejun Heo
Quoted 11 lines
(cc'ing Jens)
Quoted 8 lines · Steven Rostedt
Quoted 4 lines · Jianpeng Ma
Hi all:
I used blktrace to trace some io.But i can't find requests merge. I searched the code and did't not find. Why?No idea. I don't use blktrace much, but I Cc'd those that understand it better than I.
Works for me:
[...]
8,0 0 26 0.009147735 664 A WS 315226143 + 8 <- (8,7) 19406344 8,0 0 27 0.009148677 664 Q WS 315226143 + 8 [btrfs-submit-1] 8,0 0 28 0.009152967 664 G WS 315226143 + 8 [btrfs-submit-1] 8,0 0 29 0.009154242 664 P N [btrfs-submit-1] 8,0 0 30 0.009155538 664 A WS 315226151 + 8 <- (8,7) 19406352 8,0 0 31 0.009155743 664 Q WS 315226151 + 8 [btrfs-submit-1] 8,0 0 32 0.009157086 664 M WS 315226151 + 8 [btrfs-submit-1] 8,0 0 33 0.009158716 664 I WS 315226143 + 16 [btrfs-submit-1]That's from a quick trace of
/dev/sda. I started blktrace, then did:$ dd if=/dev/zero of=foo bs=4k count=128 && syncto ensure that I knew merges would be happening. Output stats at the end:
Total (sda):
Reads Queued: 7, 44KiB Writes Queued: 447, 7692KiB Read Dispatches: 7, 44KiB Write Dispatches: 416, 7692KiB Reads Requeued: 0 Writes Requeued: 0 Reads Completed: 7, 44KiB Writes Completed: 435, 5864KiB Read Merges: 0, 0KiB Write Merges: 23, 428KiB IO unplugs: 78 Timer unplugs: 0Signature · 1 line
Jens Axboe
Quoted 10 lines
Quoted 3 lines
First, Thanks your time!
If i understand correctly, the merge of your example is bio with request, not request wiht request. Yes or no?It is bio to request, correct. Request to request merges are relatively more rare.
Signature · 1 line
Jens Axboe
Thanks very much, I know.
Jianpeng�翳簕.n�+壏煯壄�+%娝�遍荻w�簕.n�+壏{炳G珴�妠ay�蕠跈�,jf"穐殢飦�戧鐉_璁(殠娸"濟�m���G珴�⒏?櫒璀�&x忈秈O曟瑉窔v豝�m����鹅�⒏?朓�