Islam AbdelRahman
d52f334cbd
Break stalls when no bg work is happening
Summary:
Current stall will keep sleeping even if there is no Flush/Compactions to wait for, I changed the logic to break the stall if we are not flushing or compacting
db_bench command used
```
# fillrandom
# memtable size = 10MB
# value size = 1 MB
# num = 1000
# use /dev/shm
./db_bench --benchmarks="fillrandom,stats" --value_size=1048576 --write_buffer_size=10485760 --num=1000 --delayed_write_rate=XXXXX --db="/dev/shm/new_stall" | grep "Cumulative stall"
```
```
Current results
# delayed_write_rate = 1000 Kb/sec
Cumulative stall: 00:00:9.031 H:M:S
# delayed_write_rate = 200 Kb/sec
Cumulative stall: 00:00:22.314 H:M:S
# delayed_write_rate = 100 Kb/sec
Cumulative stall: 00:00:42.784 H:M:S
# delayed_write_rate = 50 Kb/sec
Cumulative stall: 00:01:23.785 H:M:S
# delayed_write_rate = 25 Kb/sec
Cumulative stall: 00:02:45.702 H:M:S
```
```
New results
# delayed_write_rate = 1000 Kb/sec
Cumulative stall: 00:00:9.017 H:M:S
# delayed_write_rate = 200 Kb/sec
Cumulative stall: 00
Closes https://github.com/facebook/rocksdb/pull/1884
Differential Revision: D4585439
Pulled By: IslamAbdelRahman
fbshipit-source-id: aed2198
2017-03-16 18:24:17 -07:00
..
2017-03-15 19:39:12 -07:00
2017-02-28 11:09:11 -08:00
2017-02-28 11:09:11 -08:00
2017-03-02 17:54:15 -08:00
2016-11-19 14:24:12 -08:00
2017-01-20 13:24:13 -08:00
2017-03-13 11:39:13 -07:00
2017-02-13 11:09:13 -08:00
2017-03-15 19:39:12 -07:00
2017-01-19 15:39:12 -08:00
2017-02-06 14:54:18 -08:00
2017-03-15 19:39:12 -07:00
2017-03-13 11:54:10 -07:00
2016-12-01 07:09:15 -08:00
2017-02-23 15:09:12 -08:00
2017-01-11 15:09:21 -08:00
2017-01-11 15:09:21 -08:00
2017-02-23 12:09:11 -08:00
2016-09-23 16:34:04 -07:00
2017-03-15 19:39:12 -07:00
2017-01-11 15:09:21 -08:00
2017-02-21 10:24:17 -08:00
2017-03-15 19:39:12 -07:00
2016-12-07 11:54:11 -08:00
2016-12-07 11:54:11 -08:00
2016-12-07 11:54:11 -08:00
2016-09-27 18:20:57 -07:00
2016-02-09 15:12:00 -08:00
2017-01-27 11:24:16 -08:00
2016-11-16 09:39:09 -08:00
2017-02-27 12:24:11 -08:00
2016-08-23 13:53:49 -07:00
2017-03-13 09:54:11 -07:00
2016-12-01 07:09:15 -08:00
2017-02-06 14:54:18 -08:00
2017-03-13 09:54:11 -07:00
2017-03-15 19:39:12 -07:00
2017-03-13 09:54:11 -07:00
2017-01-19 15:39:12 -08:00
2017-03-15 19:39:12 -07:00
2017-03-15 19:39:12 -07:00
2017-03-13 11:54:10 -07:00
2017-03-16 18:24:17 -07:00
2017-03-13 11:54:10 -07:00
2016-09-23 16:34:04 -07:00
2016-09-23 16:34:04 -07:00
2016-11-16 09:39:09 -08:00
2016-11-21 18:09:13 -08:00
2017-03-08 17:24:11 -08:00
2017-03-15 19:39:12 -07:00
2016-11-04 12:09:22 -07:00
2017-03-13 09:54:11 -07:00
2016-02-09 15:12:00 -08:00
2017-03-13 09:54:11 -07:00
2017-03-13 09:54:11 -07:00
2017-03-13 09:54:11 -07:00
2017-03-13 09:54:11 -07:00
2017-01-25 11:09:12 -08:00
2017-03-16 12:09:15 -07:00
2017-03-13 09:54:11 -07:00
2017-03-13 09:54:11 -07:00
2017-03-07 11:54:10 -08:00
2017-03-13 09:54:11 -07:00
2017-03-13 09:54:11 -07:00
2017-03-13 11:54:10 -07:00
2017-02-23 18:39:13 -08:00
2017-02-28 17:39:10 -08:00
2016-04-25 23:02:14 -07:00
2017-03-13 10:39:12 -07:00
2016-12-19 16:54:12 -08:00
2016-07-05 11:57:14 -07:00
2017-01-11 10:54:37 -08:00
2016-04-29 11:35:00 -07:00
2016-02-09 15:12:00 -08:00
2017-03-13 11:39:13 -07:00
2017-03-15 19:39:12 -07:00
2016-12-06 14:09:17 -08:00
2017-03-13 11:39:13 -07:00
2016-12-01 10:09:22 -08:00
2016-02-09 15:12:00 -08:00
2016-12-16 11:24:18 -08:00
2016-02-09 15:12:00 -08:00
2016-02-09 15:12:00 -08:00
2017-02-13 11:09:13 -08:00
2016-09-23 16:34:04 -07:00
2016-11-14 17:39:13 -08:00
2017-03-15 19:39:12 -07:00
2017-01-19 23:09:15 -08:00
2016-07-08 17:50:51 -07:00
2016-02-09 15:12:00 -08:00
2017-02-06 14:54:18 -08:00
2017-02-02 16:54:19 -08:00
2016-09-27 18:20:57 -07:00
2016-11-22 14:09:13 -08:00
2016-11-22 14:09:13 -08:00
2017-02-08 10:39:15 -08:00
2017-02-08 10:39:15 -08:00
2016-10-13 08:48:40 -07:00
2016-12-13 18:39:14 -08:00
2016-02-09 15:12:00 -08:00
2016-07-08 17:50:51 -07:00
2016-05-22 22:00:15 -07:00
2016-05-22 22:00:15 -07:00
2016-02-09 15:12:00 -08:00
2016-07-21 16:29:06 -07:00
2017-02-23 12:09:11 -08:00
2016-09-27 18:20:57 -07:00
2016-02-09 15:12:00 -08:00
2016-07-13 19:33:57 -07:00
2016-07-05 18:11:25 -07:00
2016-11-03 18:54:20 -07:00
2017-03-15 19:39:12 -07:00
2017-02-06 14:54:16 -08:00
2017-02-06 14:54:16 -08:00
2017-02-06 14:54:16 -08:00
2017-02-06 14:54:18 -08:00
2016-07-25 15:31:41 -07:00
2017-02-23 15:09:12 -08:00
2017-02-23 15:09:12 -08:00
2017-02-23 15:09:12 -08:00
2016-07-20 09:49:03 -07:00
2017-02-23 15:09:12 -08:00
2016-02-09 15:12:00 -08:00
2017-02-06 14:54:18 -08:00
2016-12-29 15:54:19 -08:00
2016-11-17 11:09:13 -08:00
2016-11-16 09:39:09 -08:00
2017-01-05 10:39:12 -08:00
2017-01-25 11:09:12 -08:00
2017-01-05 10:39:12 -08:00
2017-02-16 10:39:13 -08:00
2017-03-15 19:39:12 -07:00
2016-09-27 18:20:57 -07:00
2016-09-27 18:20:57 -07:00
2016-02-09 15:12:00 -08:00
2016-02-09 15:12:00 -08:00
2016-11-28 22:54:13 -08:00
2016-11-21 21:24:11 -08:00
2016-10-21 11:31:42 -07:00
2016-05-19 14:24:48 -07:00
2016-05-19 14:24:48 -07:00
2016-09-23 16:34:04 -07:00
2017-03-15 19:39:12 -07:00
2016-10-07 17:21:45 -07:00
2017-02-06 14:54:18 -08:00
2016-07-20 11:23:31 -07:00
2016-02-09 15:12:00 -08:00
2016-07-12 14:15:32 -07:00
2016-07-13 15:36:22 -07:00
2016-10-07 17:21:45 -07:00
2017-03-15 19:39:12 -07:00
2017-03-13 11:54:10 -07:00
2016-09-23 16:34:04 -07:00
2017-03-15 19:39:12 -07:00
2016-09-23 16:34:04 -07:00
2016-08-16 08:16:04 -07:00
2016-10-07 11:32:10 -07:00
2016-11-21 12:24:13 -08:00
2016-11-15 15:24:16 -08:00
2017-02-06 14:54:18 -08:00
2016-02-09 15:12:00 -08:00
2017-02-14 18:24:24 -08:00
2017-03-16 18:24:17 -07:00
2017-03-16 18:24:17 -07:00
2017-01-17 11:24:28 -08:00
2016-11-21 18:09:13 -08:00