From: Sage Weil Date: Tue, 12 May 2020 14:55:45 +0000 (-0500) Subject: ceph-dedup-tool: larger default op size X-Git-Tag: v16.1.0~2230^2~29 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=cfb6a75f8c834394b1489b1fbadaed5bb987158a;p=ceph.git ceph-dedup-tool: larger default op size If we don't read the entire object the rabin calculation won't work. Avoid this by default by just using a sufficiently large chunk size. Signed-off-by: Sage Weil --- diff --git a/src/tools/ceph_dedup_tool.cc b/src/tools/ceph_dedup_tool.cc index 181d96023c33..ae98f914160d 100644 --- a/src/tools/ceph_dedup_tool.cc +++ b/src/tools/ceph_dedup_tool.cc @@ -48,7 +48,7 @@ #include "common/rabin.h" using namespace librados; -unsigned default_op_size = 1 << 22; +unsigned default_op_size = 1 << 26; unsigned default_max_thread = 2; int32_t default_report_period = 2; map< string, pair > chunk_statistics; // < key, >