diff options
author | mav <mav@FreeBSD.org> | 2014-01-05 22:09:18 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2014-01-05 22:09:18 +0000 |
commit | fe82b61321d95949dd3b45f4e9ea7923b97ec6d8 (patch) | |
tree | 8618a1d268205f0114f8e8fbe9fac74ebfb08806 /sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_misc.c | |
parent | 1bba01828c15c706eae833685b7f0c07c42f7c54 (diff) | |
download | FreeBSD-src-fe82b61321d95949dd3b45f4e9ea7923b97ec6d8.zip FreeBSD-src-fe82b61321d95949dd3b45f4e9ea7923b97ec6d8.tar.gz |
MFC r258137:
Introduce allocation cache to store LZ4 compression contexts without kicking
VM subsystem twice for every written record.
Tests on 24-core system show double reduction of CPU time spent on copying
single large well-compressed file.
This patch is not really needed on illumos (while not harm either) since
their memory allocator by default uses caching for all requests up to 128K.
Diffstat (limited to 'sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_misc.c')
-rw-r--r-- | sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_misc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_misc.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_misc.c index d92bcf0..17983bf 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_misc.c +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_misc.c @@ -1739,6 +1739,7 @@ spa_init(int mode) unique_init(); space_map_init(); zio_init(); + lz4_init(); dmu_init(); zil_init(); vdev_cache_stat_init(); @@ -1764,6 +1765,7 @@ spa_fini(void) vdev_cache_stat_fini(); zil_fini(); dmu_fini(); + lz4_fini(); zio_fini(); space_map_fini(); unique_fini(); |