]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC: r258137
authormav <mav@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 18 Feb 2014 14:50:31 +0000 (14:50 +0000)
committermav <mav@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 18 Feb 2014 14:50:31 +0000 (14:50 +0000)
commit72c55ad6c5ab2cf2d24c601fe4bb3106a4e3639a
treec1381f658f99fc1001d98413120cd425e0d398dc
parentb85c2c60580267853fb8c66f20ed3750ab270343
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.

git-svn-id: svn://svn.freebsd.org/base/stable/9@262164 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/lz4.c
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_misc.c
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/zio_compress.h