Peter (Stig) Edwards
b20737709f
Add -report_open_timing to db_bench (#8464)
Summary:
Hello and thanks for RocksDB,
This PR adds support for ```-report_open_timing true``` to ```db_bench```.
It can be useful when tuning RocksDB on filesystem/env with high latencies for file level operations (create/delete/rename...) seen during ```((Optimistic)Transaction)DB::Open```.
Some examples:
```
> db_bench -benchmarks updaterandom -num 1 -db /dev/shm/db_bench
> db_bench -benchmarks updaterandom -num 0 -db /dev/shm/db_bench -use_existing_db true -report_open_timing true -readonly true 2>&1 | grep OpenDb
OpenDb: 3.90133 milliseconds
> db_bench -benchmarks updaterandom -num 0 -db /dev/shm/db_bench -use_existing_db true -report_open_timing true -use_secondary_db true 2>&1 | grep OpenDb
OpenDb: 3.33414 milliseconds
> db_bench -benchmarks updaterandom -num 0 -db /dev/shm/db_bench -use_existing_db true -report_open_timing true 2>&1 | grep -A1 OpenDb
OpenDb: 6.05423 milliseconds
> db_bench -benchmarks updaterandom -num 1
> db_bench -benchmarks updaterandom -num 0 -use_existing_db true -report_open_timing true -readonly true 2>&1 | grep OpenDb
OpenDb: 4.06859 milliseconds
> db_bench -benchmarks updaterandom -num 0 -use_existing_db true -report_open_timing true -use_secondary_db true 2>&1 | grep OpenDb
OpenDb: 2.85794 milliseconds
> db_bench -benchmarks updaterandom -num 0 -use_existing_db true -report_open_timing true 2>&1 | grep OpenDb
OpenDb: 6.46376 milliseconds
> db_bench -benchmarks updaterandom -num 1 -db /clustered_fs/db_bench
> db_bench -benchmarks updaterandom -num 0 -db /clustered_fs/db_bench -use_existing_db true -report_open_timing true -readonly true 2>&1 | grep OpenDb
OpenDb: 3.79805 milliseconds
> db_bench -benchmarks updaterandom -num 0 -db /clustered_fs/db_bench -use_existing_db true -report_open_timing true -use_secondary_db true 2>&1 | grep OpenDb
OpenDb: 3.00174 milliseconds
> db_bench -benchmarks updaterandom -num 0 -db /clustered_fs/db_bench -use_existing_db true -report_open_timing true 2>&1 | grep OpenDb
OpenDb: 24.8732 milliseconds
```
Pull Request resolved: https://github.com/facebook/rocksdb/pull/8464
Reviewed By: hx235
Differential Revision: D29398096
Pulled By: zhichao-cao
fbshipit-source-id: 8f05dc3284f084612a3f30234e39e1c37548f50c
2021-07-01 18:42:19 -07:00
..
2020-07-17 17:20:49 -07:00
2021-06-01 14:43:15 -07:00
2020-02-20 12:09:57 -08:00
2020-02-20 12:09:57 -08:00
2019-04-18 10:55:01 -07:00
2019-04-18 10:55:01 -07:00
2021-03-02 11:42:27 -08:00
2019-04-18 10:55:01 -07:00
2020-02-19 17:08:02 -08:00
2020-02-20 12:09:57 -08:00
2020-05-29 11:29:23 -07:00
2021-04-27 10:24:27 -07:00
2020-05-12 21:07:55 -07:00
2021-02-17 11:10:18 -08:00
2021-07-01 18:42:19 -07:00
2020-02-20 12:09:57 -08:00
2021-06-30 16:46:41 -07:00
2020-12-22 00:20:57 -08:00
2020-02-20 12:09:57 -08:00
2017-08-03 15:56:46 -07:00
2015-05-22 16:03:39 -07:00
2019-04-18 10:55:01 -07:00
2019-04-18 10:55:01 -07:00
2021-06-01 14:43:15 -07:00
2021-04-01 13:14:51 -07:00
2020-09-23 15:50:26 -07:00
2020-09-23 15:50:26 -07:00
2021-06-22 19:07:46 -07:00
2021-06-15 03:43:48 -07:00
2021-06-22 19:07:46 -07:00
2021-06-22 19:07:46 -07:00
2021-06-22 19:07:46 -07:00
2020-02-20 12:09:57 -08:00
2017-08-03 15:56:46 -07:00
2020-12-22 23:45:58 -08:00
2021-02-11 14:55:43 -08:00
2019-04-18 10:55:01 -07:00
2021-03-02 11:42:27 -08:00
2019-04-18 10:55:01 -07:00
2019-04-18 10:55:01 -07:00
2019-04-18 10:55:01 -07:00
2015-06-19 16:24:36 -07:00
2021-05-17 15:15:23 -07:00
2021-05-17 15:15:23 -07:00
2021-06-15 03:43:48 -07:00
2021-06-15 03:43:48 -07:00
2020-06-08 13:58:28 -07:00
2021-06-18 15:04:05 -07:00
2021-06-18 15:04:05 -07:00
2021-02-18 23:05:35 -08:00
2020-02-20 12:09:57 -08:00
2019-04-18 10:55:01 -07:00
2021-03-02 11:42:27 -08:00
2020-05-29 11:29:23 -07:00
2021-01-25 22:09:11 -08:00