]> git.proxmox.com Git - mirror_zfs.git/commit - module/zfs/zil.c
zil: Add some more statistics.
authorAlexander Motin <mav@FreeBSD.org>
Thu, 25 May 2023 20:51:53 +0000 (16:51 -0400)
committerGitHub <noreply@github.com>
Thu, 25 May 2023 20:51:53 +0000 (13:51 -0700)
commitb6fbe61fa6a75747d9b65082ad4dbec05305d496
tree8ac0969a3cd6e72ac63095d44e6350ebccca32c9
parentf63811f07213361d49878648bd597af88d06859c
zil: Add some more statistics.

In addition to a number of actual log bytes written, account also a
total written bytes including padding and total allocated bytes (bytes
<= write <= alloc).  It should allow to monitor zil traffic and space
efficiency.

Add dtrace probe for zil block size selection.

Make zilstat report more information and fit it into less width.

Reviewed-by: Ameer Hamza <ahamza@ixsystems.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Alexander Motin <mav@FreeBSD.org>
Sponsored by:   iXsystems, Inc.
Closes #14863
cmd/zilstat.in
include/os/linux/zfs/sys/trace_zil.h
include/sys/zil.h
module/zfs/dataset_kstats.c
module/zfs/zil.c
tests/zfs-tests/tests/functional/cli_user/misc/zilstat_001_pos.ksh