-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Make RocksDB config dependant of current hardware #3740
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make RocksDB config dependant of current hardware #3740
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
205506b to
b3ed57c
Compare
d9ef4ef to
538e084
Compare
| options.set_level_zero_slowdown_writes_trigger(12); | ||
| options.set_level_zero_stop_writes_trigger(20); | ||
| options.increase_parallelism((num_cpus / 2).max(1)); | ||
| options.set_max_background_jobs((num_cpus / 3).max(1)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be useful to comment on the reason for choosing such parameters.
About commenting vs not commenting a good heuristic is to comment on things that
would take 10 minutes for a developer to find out. Here, I do not see why you chose
num_cpus / 2 and num_cpus / 3. That feels arbitrary and so deserves comment.
b3ed57c to
cd7e8d6
Compare
538e084 to
a8c7917
Compare
cd7e8d6 to
212506f
Compare
344a842 to
4029c25
Compare
212506f to
936230c
Compare
MathieuDutSik
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
4029c25 to
87a1499
Compare
936230c to
0840bd6
Compare
0840bd6 to
5ca761a
Compare

Motivation
Previously the RocksDB settings were not dependant on the current hardware
Proposal
Make them dependent on the current hardware. These settings seem to work well even for the benchmarks, for example.
Test Plan
Ran benchmarks with these settings
Release Plan