rocksdb/options
sdong 876c2dbff4 Allow readahead when reading option files. (#6372)
Summary:
Right, when reading from option files, no readahead is used and 8KB buffer is used. It might introduce high latency if the file system provide high latency and doesn't do readahead. Instead, introduce a readahead to the file. When calling inside DB, infer the value from options.log_readahead. Otherwise, a default 512KB readahead size is used.
Pull Request resolved: https://github.com/facebook/rocksdb/pull/6372

Test Plan: Add --log_readahead_size in db_bench. Run it with several options and observe read size from option files using strace.

Differential Revision: D19727739

fbshipit-source-id: e6d8053b0a64259abc087f1f388b9cd66fa8a583
2020-02-07 15:18:26 -08:00
..
cf_options.cc Introduce a new storage specific Env API (#5761) 2019-12-13 14:48:41 -08:00
cf_options.h Introduce a new storage specific Env API (#5761) 2019-12-13 14:48:41 -08:00
db_options.cc Add an option to prevent DB::Open() from querying sizes of all sst files (#6353) 2020-02-04 01:27:26 -08:00
db_options.h Add an option to prevent DB::Open() from querying sizes of all sst files (#6353) 2020-02-04 01:27:26 -08:00
options.cc Add ReadOptions.auto_prefix_mode (#6314) 2020-01-28 14:44:05 -08:00
options_helper.cc Add an option to prevent DB::Open() from querying sizes of all sst files (#6353) 2020-02-04 01:27:26 -08:00
options_helper.h Option string/map/file can set env from object registry (#5237) 2019-04-25 11:35:09 -07:00
options_parser.cc Allow readahead when reading option files. (#6372) 2020-02-07 15:18:26 -08:00
options_parser.h Allow readahead when reading option files. (#6372) 2020-02-07 15:18:26 -08:00
options_sanity_check.cc
options_sanity_check.h
options_settable_test.cc Add an option to prevent DB::Open() from querying sizes of all sst files (#6353) 2020-02-04 01:27:26 -08:00
options_test.cc Allow readahead when reading option files. (#6372) 2020-02-07 15:18:26 -08:00