diff options
author | Brian Behlendorf <[email protected]> | 2011-02-25 13:26:19 -0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2011-02-25 16:56:22 -0800 |
commit | 5c1967ebe2ad28f3c3229cba85159ccbd4dfe93a (patch) | |
tree | 9c5357e1081f988e19027aa114803f07346dd457 /module/spl/Makefile.in | |
parent | 5a52a782a0a04efee3846e1a8f0bb4796930e0e4 (diff) |
Fix zlib compression
While portions of the code needed to support z_compress_level() and
z_uncompress() where in place. In reality the current implementation
was non-functional, it just was compilable.
The critical missing component was to setup a workspace for the
compress/uncompress stream structures to use. A kmem_cache was
added for the workspace area because we require a large chunk
of memory. This avoids to need to continually alloc/free this
memory and vmap() the pages which is very slow. Several objects
will reside in the per-cpu kmem_cache making them quick to acquire
and release. A further optimization would be to adjust the
implementation to additional ensure the memory is local to the cpu.
Currently that may not be the case.
Diffstat (limited to 'module/spl/Makefile.in')
-rw-r--r-- | module/spl/Makefile.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/module/spl/Makefile.in b/module/spl/Makefile.in index 483933b64..a0211d2db 100644 --- a/module/spl/Makefile.in +++ b/module/spl/Makefile.in @@ -27,3 +27,4 @@ spl-objs += @top_srcdir@/module/spl/spl-condvar.o spl-objs += @top_srcdir@/module/spl/spl-xdr.o spl-objs += @top_srcdir@/module/spl/spl-cred.o spl-objs += @top_srcdir@/module/spl/spl-tsd.o +spl-objs += @top_srcdir@/module/spl/spl-zlib.o |