]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
compressor: Set the Zstd default compression level to 1 37253/head
authorBryan Stillwell <bstillwell@godaddy.com>
Tue, 24 Mar 2020 21:15:41 +0000 (15:15 -0600)
committerBryan Stillwell <bstillwell@godaddy.com>
Fri, 18 Sep 2020 21:18:55 +0000 (15:18 -0600)
The default compression level of 5 for Zstandard is too high for the majority
of use cases since it requires too many CPU cycles.  This patch switches the
default to 1.

Fixes: https://tracker.ceph.com/issues/44724
Signed-off-by: Bryan Stillwell <bstillwell@godaddy.com>
(cherry picked from commit caf74d533b0c6c9e6fc5b1463ae2c3be1103d7f3)

src/common/options.cc

index 46efcc6a2fbad170278427aa609869052d5d5b16..70ace312853ada957d312b1094d681015ebf8753 100644 (file)
@@ -786,7 +786,7 @@ std::vector<Option> get_global_options() {
     .set_description("Zlib compression level to use"),
 
     Option("compressor_zstd_level", Option::TYPE_INT, Option::LEVEL_ADVANCED)
-    .set_default(5)
+    .set_default(1)
     .set_description("Zstd compression level to use"),
 
     Option("qat_compressor_enabled", Option::TYPE_BOOL, Option::LEVEL_ADVANCED)