diff options
author | Tor Vic <torvic9@mailbox.org> | 2020-12-16 13:58:02 +0100 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2021-01-19 11:04:05 +0900 |
commit | 463acf196e164294cbe28af6e55b239f0706a05f (patch) | |
tree | 52544cf6146d2f6431ad70e94d584971bbdac2bf /Makefile | |
parent | 19c329f6808995b142b3966301f217c831e7cf31 (diff) | |
download | linux-next-463acf196e164294cbe28af6e55b239f0706a05f.tar.gz |
Makefile: use smaller dictionary size for xz module compression
By default, xz without parameters uses a dictionary size of 8 MB.
However, most modules are much smaller than that.
The xz manpage states that 'increasing dictionary size usually improves
compression ratio, but a dictionary bigger than the uncompressed file
is waste of memory'.
Use a dictionary size of 2 MB for module compression, resulting in
slightly higher compression speed while still maintaining a good
compression ratio.
Signed-off-by: Tor Vic <torvic9@mailbox.org>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1058,7 +1058,7 @@ ifdef CONFIG_MODULE_COMPRESS mod_compress_cmd = $(KGZIP) -n -f endif # CONFIG_MODULE_COMPRESS_GZIP ifdef CONFIG_MODULE_COMPRESS_XZ - mod_compress_cmd = $(XZ) -f + mod_compress_cmd = $(XZ) --lzma2=dict=2MiB -f endif # CONFIG_MODULE_COMPRESS_XZ endif # CONFIG_MODULE_COMPRESS export mod_compress_cmd |