commit | 2ccf91acdec8b977c630238cee65c59b1778311a | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@fb.com> | Sat Sep 27 21:29:03 2014 -0600 |
committer | Mohamad Ayyash <mkayyash@google.com> | Fri Mar 06 17:57:18 2015 -0800 |
tree | e3320f6e08e0f2f7a9459cdcee99dad279726127 | |
parent | 91d9721ad7a061437ec2903e5f6b4077a7d59b8d [diff] [blame] |
t/dedupe: fixup bloom entry calculation With m/n at 8x and with 5 default hashes for blooming, we should be around ~2% false positive rate max. Signed-off-by: Jens Axboe <axboe@fb.com>
diff --git a/t/dedupe.c b/t/dedupe.c index 12ede8f..f9fb8c4 100644 --- a/t/dedupe.c +++ b/t/dedupe.c
@@ -452,7 +452,7 @@ if (use_bloom) { uint64_t bloom_entries; - bloom_entries = (3 * dev_size ) / (blocksize * 2); + bloom_entries = 8 * (dev_size / blocksize); bloom = bloom_new(bloom_entries); }