rocksdb/test_util
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
..
fault_injection_test_env.cc Fix ingested file and direcotry not being sync (#5435) 2019-06-21 10:15:38 -07:00
fault_injection_test_env.h Fix ingested file and direcotry not being sync (#5435) 2019-06-21 10:15:38 -07:00
mock_time_env.h Move test related files under util/ to test_util/ (#5377) 2019-05-30 11:25:51 -07:00
sync_point_impl.cc Move test related files under util/ to test_util/ (#5377) 2019-05-30 11:25:51 -07:00
sync_point_impl.h Move test related files under util/ to test_util/ (#5377) 2019-05-30 11:25:51 -07:00
sync_point.cc Move test related files under util/ to test_util/ (#5377) 2019-05-30 11:25:51 -07:00
sync_point.h Move test related files under util/ to test_util/ (#5377) 2019-05-30 11:25:51 -07:00
testharness.cc Move test related files under util/ to test_util/ (#5377) 2019-05-30 11:25:51 -07:00
testharness.h Move test related files under util/ to test_util/ (#5377) 2019-05-30 11:25:51 -07:00
testutil.cc Add an option to prevent DB::Open() from querying sizes of all sst files (#6353) 2020-02-04 01:27:26 -08:00
testutil.h Allow readahead when reading option files. (#6372) 2020-02-07 15:18:26 -08:00
transaction_test_util.cc Apply formatter to recent 200+ commits. (#5830) 2019-09-20 12:04:26 -07:00
transaction_test_util.h Move test related files under util/ to test_util/ (#5377) 2019-05-30 11:25:51 -07:00