diff options
author | gibbs <gibbs@FreeBSD.org> | 2013-08-21 19:40:43 +0000 |
---|---|---|
committer | gibbs <gibbs@FreeBSD.org> | 2013-08-21 19:40:43 +0000 |
commit | 785cc185f4a7f3df9ae434828b04a0ef7d987b83 (patch) | |
tree | c2db47741f6621a726851ad9d09bd942a585d70f /sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu.c | |
parent | d8dc6ade5b16b922f401f6bde3d6ae887c5f52ea (diff) | |
download | FreeBSD-src-785cc185f4a7f3df9ae434828b04a0ef7d987b83.zip FreeBSD-src-785cc185f4a7f3df9ae434828b04a0ef7d987b83.tar.gz |
Add kstat entries for ZFS compression statistics.
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/zio_compress.h:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zio_compress.c:
Add module lifetime functions to allocate and teardown
state data.
Report:
- Compression attempts.
- Buffers found to be empty.
- Compression calls that are skipped because
the data length is already less than or
equal to the minimum block length.
- Compression attempts that fail to yield a 12.5%
compression ratio.
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu.c:
Add calls to the zio_compress.c module's init and fini
functions.
Sponosred by: Spectra Logic Corporation
MFC after: 2 weeks
Diffstat (limited to 'sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu.c')
-rw-r--r-- | sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu.c index fd0464e..f344f6a 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu.c +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu.c @@ -1832,6 +1832,7 @@ dmu_init(void) dnode_init(); dbuf_init(); zfetch_init(); + zio_compress_init(); l2arc_init(); arc_init(); } @@ -1842,6 +1843,7 @@ dmu_fini(void) arc_fini(); /* arc depends on l2arc, so arc must go first */ l2arc_fini(); zfetch_fini(); + zio_compress_fini(); dbuf_fini(); dnode_fini(); dmu_objset_fini(); |