Tweak index size computation.

This commit is contained in:
Moinak Ghosh 2013-04-26 19:21:11 +05:30
parent c4f3bd14c0
commit 2f2fc23771

View file

@ -190,10 +190,10 @@ set_cfg:
*memreqd = MEM_REQD(*hash_slots, *hash_entry_size);
/*
* If memory required is more than thrice the indicated memory limit then
* If memory required is more than twice the indicated memory limit then
* we switch to Segmented Similarity based dedupe.
*/
if (*memreqd > (memlimit * 3) && cfg->dedupe_mode == MODE_SIMPLE &&
if (*memreqd > (memlimit * 2) && cfg->dedupe_mode == MODE_SIMPLE &&
*pct_interval == 0 && tmppath != NULL) {
*pct_interval = DEFAULT_PCT_INTERVAL;
set_user = 1;