zilstat.1

ZILSTAT(1) General Commands Manual ZILSTAT(1)

zilstatreport ZFS Intent Log statistics

zilstat [-v] [-a|-p pool|-d dataset[,dataset…]] [-f field[,field…]] [-s separator] [-i interval]

zilstat prints statistics about the ZFS Intent Log (ZIL). The ZIL is used to log synchronous write operations and is replayed on pool import if the system crashes before those writes are committed to the main pool.

By default, global ZIL statistics are displayed. When a pool or dataset is specified, per-dataset statistics are shown instead.

If an interval is specified, the output is repeated every interval seconds showing the change in values since the previous sample. Without an interval, cumulative values are displayed.

The following fields are available:

Current time
Pool name
Dataset name
Objset ID
Commit count
Commit writer count
Commit error count
Commit stall count
Commit suspend count
Commit crash count
In-transaction count
Indirect in-transaction count
Indirect in-transaction bytes
Copied in-transaction count
Copied in-transaction bytes
Needcopy in-transaction count
Needcopy in-transaction bytes
Direct (copied + needcopy) count
Direct (copied + needcopy) bytes
Total write (indirect + direct) count
Total write (indirect + direct) bytes
Normal metaslab count
Normal metaslab bytes
Normal metaslab write bytes
Normal metaslab alloc bytes
SLOG metaslab count
SLOG metaslab bytes
SLOG metaslab write bytes
SLOG metaslab alloc bytes
Total metaslab (normal + SLOG) count
Total metaslab (normal + SLOG) bytes
Total metaslab (normal + SLOG) write bytes
Total metaslab (normal + SLOG) alloc bytes
Space efficiency percentage (bytes / alloc)
Normal space efficiency percentage
SLOG space efficiency percentage
Total efficiency percentage (bytes / write)
Normal total efficiency percentage
SLOG total efficiency percentage

Display a help message.
Print statistics for all datasets across all pools.
dataset
Print statistics for the specified dataset(s). Multiple datasets may be given as a comma-separated list.
field
Display only the specified fields. Multiple fields may be given as a comma-separated list. See DESCRIPTION for available fields.
interval
Print statistics every interval seconds. Values are reported as rates per second.
pool
Print statistics for all datasets in the specified pool.
separator
Override the default field separator (two spaces) with a custom string.
List all available field headers and their definitions.

Statistics are read from /proc/spl/kstat/zfs/zil for global stats and from per-pool objset files under /proc/spl/kstat/zfs/pool/.
Statistics are read via sysctl(8) from the tree.

zarcstat(1), zpool-status(8)

March 9, 2026 Debian