Skip to content

Commit

Permalink
854: set the default bucket size of hashspdb to be 400k for best memo…
Browse files Browse the repository at this point in the history
…ry use and performance
  • Loading branch information
ayulas committed Mar 3, 2024
1 parent 3650775 commit 4fa136e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### New Features

### Enhancements
* set the default bucket size of hashspdb to be 400k for best memory use and performance (#854)

### Bug Fixes
* LOG Consistency:Display the pinning policy options same as block cache options / metadata cache options (#804).
Expand Down
2 changes: 1 addition & 1 deletion memtable/hash_spdb_rep.cc
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ static std::unordered_map<std::string, OptionTypeInfo> hash_spdb_factory_info =

class HashSpdbRepFactory : public MemTableRepFactory {
public:
explicit HashSpdbRepFactory(size_t hash_bucket_count = 1000000,
explicit HashSpdbRepFactory(size_t hash_bucket_count = 400000,
bool use_merge = true) {
options_.hash_bucket_count = hash_bucket_count;
options_.use_merge = use_merge;
Expand Down
2 changes: 1 addition & 1 deletion tools/db_bench_tool.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1910,7 +1910,7 @@ DEFINE_int64(multiread_stride, 0,
DEFINE_bool(multiread_batched, false, "Use the new MultiGet API");

DEFINE_string(memtablerep, "hash_spdb", "");
DEFINE_int64(hash_bucket_count, 1000000, "hash bucket count");
DEFINE_int64(hash_bucket_count, 400000, "hash bucket count");
DEFINE_bool(use_plain_table, false,
"if use plain table instead of block-based table format");
DEFINE_bool(use_cuckoo_table, false, "if use cuckoo table format");
Expand Down

0 comments on commit 4fa136e

Please sign in to comment.