]> git.proxmox.com Git - mirror_zfs.git/commit - module/zfs/zil.c
Add support for per dataset zil stats and use wmsum counters
authorixhamza <106930537+ixhamza@users.noreply.github.com>
Thu, 21 Jul 2022 00:14:06 +0000 (05:14 +0500)
committerGitHub <noreply@github.com>
Thu, 21 Jul 2022 00:14:06 +0000 (17:14 -0700)
commitfb087146de0118108e3b44222d2052415dcb1f7f
treed4d4ec788bc0ef3640b2dcfa02a6e9ad964e2b79
parent33dba8c79224ce33dc661d545ab1d17fc3d84a0c
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
cmd/ztest.c
include/sys/dataset_kstats.h
include/sys/zil.h
include/sys/zil_impl.h
module/os/freebsd/zfs/zfs_vfsops.c
module/os/freebsd/zfs/zvol_os.c
module/os/linux/zfs/zfs_vfsops.c
module/os/linux/zfs/zvol_os.c
module/zfs/dataset_kstats.c
module/zfs/zil.c