]> granicus.if.org Git - zfs/commit
Add dbuf hash and dbuf cache kstats
authorGiuseppe Di Natale <dinatale2@users.noreply.github.com>
Mon, 29 Jan 2018 18:24:52 +0000 (10:24 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 29 Jan 2018 18:24:52 +0000 (10:24 -0800)
commit5e021f56d3437d3523904652fe3cc23ea1f4cb70
tree0953de761a9f65b79e7123197076fbc77560687a
parent0735ecb33485e91a78357a274e47c2782858d8b9
Add dbuf hash and dbuf cache kstats

Introduce kstats about the dbuf hash and dbuf cache
to make it easier to inspect state. This should help
with debugging and understanding of these portions
of the codebase.

Correct format of dbuf kstat file.

Introduce a dbc column to dbufs kstat to indicate if
a dbuf is in the dbuf cache.

Introduce field filtering in the dbufstat python script.

Introduce a no header option to the dbufstat python script.

Introduce a test case to test basic mru->mfu list movement
in the ARC.

Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Closes #6906
12 files changed:
cmd/dbufstat/dbufstat.py
configure.ac
module/zfs/dbuf.c
module/zfs/dbuf_stats.c
tests/runfiles/linux.run
tests/zfs-tests/tests/functional/Makefile.am
tests/zfs-tests/tests/functional/arc/Makefile.am [new file with mode: 0644]
tests/zfs-tests/tests/functional/arc/cleanup.ksh [new file with mode: 0755]
tests/zfs-tests/tests/functional/arc/dbufstats_001_pos.ksh [new file with mode: 0755]
tests/zfs-tests/tests/functional/arc/dbufstats_002_pos.ksh [new file with mode: 0755]
tests/zfs-tests/tests/functional/arc/setup.ksh [new file with mode: 0755]
tests/zfs-tests/tests/functional/cli_user/misc/dbufstat_001_pos.ksh