dbufstat.1

DBUFSTAT(1) General Commands Manual DBUFSTAT(1)

dbufstatdisplay statistics for DMU buffer cache

dbufstat [-bdhnrtvx] [-f field[,field…]] [-F field=value[,…]] [-i file] [-o file] [-s separator]

dbufstat displays statistics about the DMU (Data Management Unit) buffer cache, also known as the dbuf cache. This information is read from the dbufs kstat (/proc/spl/kstat/zfs/dbufs on Linux and on FreeBSD).

dbufstat can display data in three modes:

Display a table of information for each individual dbuf (buffer). This is the most detailed view.
Display a table of information for each dnode (the default mode). Multiple dbufs belonging to the same dnode are aggregated.
Display a table of information for each dnode type. Multiple dnodes of the same type are aggregated.

The following fields are available for display. Not all fields are compatible with all modes; use -v to see which fields are incompatible with each mode.

Pool name.
Dataset identification number.
Object number.
Indirection level of buffer.
Block number of buffer.
Offset in object of buffer.
Size of buffer.
Size of attached user data.
Whether this buffer is metadata.
State of buffer (read, cached, etc).
Number of holds on buffer.
Whether this buffer is in the dbuf cache.
Which ARC list contains this buffer.
ARC header type (data or metadata).
ARC read flags.
ARC data count.
Size of this ARC buffer.
Time this ARC buffer was last accessed.
Hits while on the ARC's MRU list.
Hits while on the ARC's MRU ghost list.
Hits while on the ARC's MFU list.
Hits while on the ARC's MFU ghost list.
Hits while on the L2ARC.
L2ARC disk address/offset.
L2ARC allocated size (depends on compression).
L2ARC compression algorithm for buffer.
Number of holds on this ARC buffer.
Dnode type.
Bonus buffer type.
Data block size.
Metadata block size.
Bonus buffer size.
Number of indirection levels.
Number of holds on dnode.
Number of allocated blocks.
Size of dnode.
Bytes cached for all blocks.
Bytes cached for direct blocks.
Bytes cached for indirect blocks.
Bytes cached for bonus buffer.
Bytes cached for spill block.

Display information for each individual dbuf.
Display information for each dnode (default).
field[,field…]
Display only the specified fields.
field=value[,…]
Filter output by field value or regular expression. Multiple filters may be specified as a comma-separated list.
Display a help message.
file
Redirect input from the specified file instead of the dbufs kstat.
Exclude the header from output.
file
Redirect output to the specified file instead of standard output.
Display raw values. Specify twice to also display numeric type and compression identifiers instead of names.
separator
Override the default field separator (two spaces) with a custom character or string.
Display information for each dnode type.
List all possible field headers, definitions, and incompatibilities for each mode.
Display extended statistics.

Display per-dnode statistics (default mode):

# dbufstat -d
       pool  objset  object                      dtype  cached
      zroot      30   34466  DMU_OT_DIRECTORY_CONTENTS    240K
      zroot      30       0               DMU_OT_DNODE     14M
      zroot      30   36343  DMU_OT_DIRECTORY_CONTENTS    1024
      zroot      30   32921 DMU_OT_PLAIN_FILE_CONTENTS    2.5K

Display per-type statistics:

# dbufstat -t
       pool  objset                      dtype  cached
      zroot      30  DMU_OT_DIRECTORY_CONTENTS    1.9M
      zroot      30               DMU_OT_DNODE     14M
      zroot      30 DMU_OT_PLAIN_FILE_CONTENTS    8.4M
      zroot       0           DMU_OT_DSL_PROPS    2.6M

Display per-buffer statistics:

# dbufstat -b
       pool  objset  object  level  blkid  offset  dbsize
      zroot      30   34466      1      0       0    128K
      zroot      30       0      0    292    4.6M     16K
      zroot      30   34466      0      8    128K     16K
      zroot       0       4      0      0       0    128K

Display specific fields per dnode:

# dbufstat -d -f pool,object,objset,dsize,cached

Display per-type statistics with comma-separated output:

# dbufstat -t -s ""
,

Display extended per-buffer statistics with filters:

# dbufstat -bx -F dbc=1,pool=zroot

zarcstat(1), zfs(8), zpool-iostat(8)

This man page was written by Christos Longros <chris.longros@gmail.com>.

March 19, 2026 Debian