diff options
author | John Layman <[email protected]> | 2013-11-19 16:34:46 -0500 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2014-01-07 10:33:11 -0800 |
commit | ecf3d9b8e63e5659269e15db527380c65780f71a (patch) | |
tree | 93c1a7b7cf0c66b14ae4a63a6511a9f87a62baa1 /module/zfs/spa_misc.c | |
parent | 4dad7d91e24875f077e26808fec900224e97dcb2 (diff) |
Add ddt, ddt_entry, and l2arc_hdr caches
Back the allocations for ddt tables+entries and l2arc headers with
kmem caches. This will reduce the cost of allocating these commonly
used structures and allow for greater visibility of them through the
/proc/spl/kmem/slab interface.
Signed-off-by: John Layman <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #1893
Diffstat (limited to 'module/zfs/spa_misc.c')
-rw-r--r-- | module/zfs/spa_misc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/module/zfs/spa_misc.c b/module/zfs/spa_misc.c index 07bfb3112..58c4e67bd 100644 --- a/module/zfs/spa_misc.c +++ b/module/zfs/spa_misc.c @@ -1653,6 +1653,7 @@ spa_init(int mode) refcount_init(); unique_init(); space_map_init(); + ddt_init(); zio_init(); dmu_init(); zil_init(); @@ -1675,6 +1676,7 @@ spa_fini(void) zil_fini(); dmu_fini(); zio_fini(); + ddt_fini(); space_map_fini(); unique_fini(); refcount_fini(); |