Maysam Yabandeh
e9f91a5176
Add a fetch_add variation to AddDBStats
...
Summary:
AddDBStats is in two steps of load and store, which is more efficient than fetch_add. This is however not thread-safe. Currently we have to protect concurrent access to AddDBStats with a mutex which is less efficient that fetch_add.
This patch adds the option to do fetch_add when AddDBStats. The results for my 2pc benchmark on sysbench is:
- vanilla: 68618 tps
- removing mutex on AddDBStats (unsafe): 69767 tps
- fetch_add for all AddDBStats: 69200 tps
- fetch_add only for concurrently access AddDBStats (this patch): 69579 tps
Closes https://github.com/facebook/rocksdb/pull/2505
Differential Revision: D5330656
Pulled By: maysamyabandeh
fbshipit-source-id: af64d7bee135b0e86b4fac323a4f9d9113eaa383
2017-06-29 17:12:19 -07:00
..
2017-06-27 17:11:48 -07:00
2017-06-27 17:11:48 -07:00
2017-05-26 12:11:21 -07:00
2017-05-26 12:11:21 -07:00
2017-06-24 14:11:29 -07:00
2017-06-22 15:56:47 -07:00
2017-06-22 15:56:47 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-05-17 11:42:42 -07:00
2017-06-12 06:41:27 -07:00
2017-06-12 06:41:27 -07:00
2017-05-23 11:12:27 -07:00
2017-06-29 15:26:52 -07:00
2017-06-29 15:26:52 -07:00
2017-04-27 18:06:12 -07:00
2017-06-01 17:56:59 -07:00
2017-06-05 11:27:34 -07:00
2017-04-27 18:06:12 -07:00
2017-06-27 17:11:48 -07:00
2017-06-27 17:11:48 -07:00
2017-06-27 17:11:48 -07:00
2017-06-27 17:11:48 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-06-26 16:56:24 -07:00
2017-04-27 18:06:12 -07:00
2017-06-02 17:26:19 -07:00
2017-06-02 15:11:38 -07:00
2017-06-13 16:58:01 -07:00
2017-06-02 14:26:56 -07:00
2017-06-26 16:56:24 -07:00
2017-04-27 18:06:12 -07:00
2017-05-23 11:12:27 -07:00
2017-06-22 19:41:50 -07:00
2017-05-24 11:29:08 -07:00
2017-04-27 18:06:12 -07:00
2017-06-28 13:13:22 -07:00
2017-06-27 17:11:48 -07:00
2017-06-24 14:11:29 -07:00
2017-04-27 18:06:12 -07:00
2017-06-29 17:12:19 -07:00
2017-06-24 14:11:29 -07:00
2017-06-29 17:12:19 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-06-26 17:28:22 -07:00
2017-06-02 17:26:19 -07:00
2017-06-28 15:42:27 -07:00
2017-04-27 18:06:12 -07:00
2017-06-02 17:26:19 -07:00
2017-06-24 14:11:29 -07:00
2017-06-02 14:26:56 -07:00
2017-05-26 12:11:21 -07:00
2017-06-26 16:56:24 -07:00
2017-06-02 17:26:19 -07:00
2017-06-26 16:56:24 -07:00
2017-06-12 16:57:21 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-06-26 16:56:24 -07:00
2017-06-26 16:56:24 -07:00
2017-06-26 16:56:24 -07:00
2017-06-27 17:11:48 -07:00
2017-05-17 23:12:36 -07:00
2017-06-24 14:11:29 -07:00
2017-06-24 14:11:29 -07:00
2017-04-27 18:06:12 -07:00
2017-05-05 23:20:01 -07:00
2017-06-28 15:42:27 -07:00
2017-04-27 18:06:12 -07:00
2017-06-22 19:41:50 -07:00
2017-06-22 19:41:50 -07:00
2017-04-27 18:06:12 -07:00
2017-05-31 13:57:19 -07:00
2017-06-28 21:27:01 -07:00
2017-06-05 11:27:34 -07:00
2017-05-26 12:11:21 -07:00
2017-06-24 14:11:29 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-06-27 17:11:48 -07:00
2017-06-27 17:11:48 -07:00
2017-05-19 14:26:42 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-05-05 23:20:01 -07:00
2017-04-27 18:06:12 -07:00
2017-06-12 07:12:08 -07:00
2017-06-29 17:12:19 -07:00
2017-04-27 18:06:12 -07:00
2017-06-26 16:56:24 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-06-24 14:11:29 -07:00
2017-06-24 14:11:29 -07:00
2017-05-31 22:43:02 -07:00
2017-05-31 22:43:02 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-06-02 12:12:06 -07:00
2017-06-01 22:26:49 -07:00
2017-06-01 22:26:49 -07:00
2017-06-02 14:26:56 -07:00
2017-06-02 14:26:56 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-05-31 07:41:44 -07:00
2017-05-31 07:41:44 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-06-02 17:26:19 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-06-02 17:26:19 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-06-27 17:11:48 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-06-28 21:27:01 -07:00
2017-06-13 14:56:46 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-05-22 18:41:28 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-06-12 07:12:08 -07:00
2017-05-04 18:16:12 -07:00
2017-06-28 21:27:01 -07:00
2017-06-24 14:11:29 -07:00
2017-06-24 14:11:29 -07:00
2017-05-22 18:41:28 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-05-31 10:56:45 -07:00
2017-06-02 12:12:06 -07:00
2017-05-31 10:56:45 -07:00
2017-06-24 14:11:29 -07:00
2016-02-09 15:12:00 -08:00
2017-04-27 18:06:12 -07:00
2017-06-05 15:02:35 -07:00
2017-06-05 15:02:35 -07:00
2017-05-19 14:26:42 -07:00
2017-05-19 14:26:42 -07:00