HomeFreeBSD

Add support for per dataset zil stats and use wmsum counters

Description

Add support for per dataset zil stats and use wmsum counters

ZIL kstats are reported in an inclusive way, i.e., same counters are
shared to capture all the activities happening in zil. Added support
to report zil stats for every datset individually by combining them
with already exposed dataset kstats.

Wmsum uses per cpu counters and provide less overhead as compared
to atomic operations. Updated zil kstats to replace wmsum counters
to avoid atomic operations.

Reviewed-by: Christian Schwarz <christian.schwarz@nutanix.com>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Ameer Hamza <ahamza@ixsystems.com>
Closes #13636

Details

Provenance
ixhamza <106930537+ixhamza@users.noreply.github.com>Authored on Jul 21 2022, 12:14 AM
GitHub <noreply@github.com>Committed on Jul 21 2022, 12:14 AM
Parents
rG33dba8c79224: Fix scrub resume from newly created hole
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGfb087146de01: Add support for per dataset zil stats and use wmsum counters (authored by ixhamza <106930537+ixhamza@users.noreply.github.com>).Jul 21 2022, 12:14 AM