aboutsummaryrefslogtreecommitdiffstats
path: root/module/zfs/zio.c
diff options
context:
space:
mode:
authorAlexander Motin <[email protected]>2022-06-15 17:25:08 -0400
committerGitHub <[email protected]>2022-06-15 14:25:08 -0700
commitdd8671459f59484b1c20fc1b5e1c3acaa2a290c1 (patch)
tree5c14d9f9355a93c42fc3dea5faa98718435f1b71 /module/zfs/zio.c
parentbc00d2c711c5bd930fe63deae3946ed3fb2463b4 (diff)
Reduce ZIO io_lock contention on sorted scrub
During sorted scrub multiple threads (one per vdev) are issuing many ZIOs same time, all using the same scn->scn_zio_root ZIO as parent. It causes huge lock contention on the single global lock on that ZIO. Improve it by introducing per-queue null ZIOs, children to that one, and using them instead as proxy. For 12 SSD pool storing 1.5TB of 4KB blocks on 80-core system this dramatically reduces lock contention and reduces scrub time from 21 minutes down to 12.5, while actual read stages (not scan) are about 3x faster, reaching 100K blocks per second per vdev. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Alexander Motin <[email protected]> Sponsored-By: iXsystems, Inc. Closes #13553
Diffstat (limited to 'module/zfs/zio.c')
0 files changed, 0 insertions, 0 deletions