rocksdb/memtable
matthewvon 4126bdc0e1 Feature: add SetBufferSize() so that managed size can be dynamic (#7961)
Summary:
This PR adds SetBufferSize() to the WriteBufferManager object.  This enables user code to adjust the global budget for write_buffers based upon other memory conditions such as growth in table reader memory as the dataset grows.

The buffer_size_ member variable is now atomic to match design of other changeable size_t members within WriteBufferManager.

This change is useful as is.  However, this change is also essential if someone decides they wanted to enable db_write_buffer_size modifications through the DB::SetOptions() API, i.e. no waste taking this as is.

Any format / spacing changes are due to clang-format as required by check-in automation.

Pull Request resolved: https://github.com/facebook/rocksdb/pull/7961

Reviewed By: ajkr

Differential Revision: D26639075

Pulled By: akankshamahajan15

fbshipit-source-id: 0604348caf092d35f44e85715331dc920e5c1033
2021-03-03 14:22:11 -08:00
..
alloc_tracker.cc
hash_linklist_rep.cc
hash_linklist_rep.h
hash_skiplist_rep.cc
hash_skiplist_rep.h
inlineskiplist_test.cc
inlineskiplist.h
memtablerep_bench.cc Add a SystemClock class to capture the time functions of an Env (#7858) 2021-01-25 22:09:11 -08:00
skiplist_test.cc
skiplist.h
skiplistrep.cc
stl_wrappers.h
vectorrep.cc
write_buffer_manager_test.cc Feature: add SetBufferSize() so that managed size can be dynamic (#7961) 2021-03-03 14:22:11 -08:00
write_buffer_manager.cc Add new API to report dummy entries size in cache in WriteBufferManager (#7837) 2021-01-08 13:26:24 -08:00