sdong 7842920be5 Slow down writes by bytes written
Summary:
We slow down data into the database to the rate of options.delayed_write_rate (a new option) with this patch.

The thread synchronization approach I take is to still synchronize write controller by DB mutex and GetDelay() is inside DB mutex. Try to minimize the frequency of getting time in GetDelay(). I verified it through db_bench and it seems to work

hard_rate_limit is deprecated.

options.delayed_write_rate is still not dynamically changeable. Need to work on it as a follow-up.

Test Plan: Add new unit tests in db_test

Reviewers: yhchiang, rven, kradhakrishnan, anthony, MarkCallaghan, igor

Reviewed By: igor

Subscribers: ikabiljo, leveldb, dhruba

Differential Revision: https://reviews.facebook.net/D36351
2015-06-11 20:42:18 -07:00
..
2015-03-17 14:08:00 -07:00
2014-11-21 14:11:40 -08:00
2015-03-12 21:13:53 +03:00
2015-04-23 21:33:44 -07:00
2015-03-17 14:08:00 -07:00
2015-04-25 18:14:27 +09:00
2014-11-07 15:04:30 -08:00
2015-03-17 14:08:00 -07:00
2014-08-19 06:48:21 -07:00
2015-02-26 11:28:41 -08:00
2015-04-06 12:50:44 -07:00
2015-03-17 14:08:00 -07:00
2015-03-17 14:08:00 -07:00
2015-04-25 18:14:27 +09:00
2015-06-11 14:32:10 -07:00
2015-03-17 14:08:00 -07:00
2014-11-14 11:38:26 -08:00
2014-11-14 11:38:26 -08:00
2015-03-17 14:08:00 -07:00
2014-11-20 10:49:32 -08:00
2015-04-25 18:14:27 +09:00
2015-04-25 18:14:27 +09:00
2015-06-11 20:42:18 -07:00
2015-02-26 15:19:17 -08:00
2015-03-17 14:08:00 -07:00
2015-02-26 11:28:41 -08:00
2015-04-13 16:15:05 -07:00
2015-04-13 16:15:05 -07:00
2015-06-11 20:42:18 -07:00
2015-02-26 11:28:41 -08:00
2015-01-23 18:10:52 -08:00
2014-07-28 12:10:49 -07:00
2015-05-29 14:36:35 -07:00
2013-12-03 12:42:15 -08:00
2014-07-28 12:22:37 -07:00
2014-11-21 11:05:28 -05:00
2015-04-23 21:33:44 -07:00
2014-09-08 22:24:40 -07:00
2015-02-26 11:28:41 -08:00
2015-03-17 14:08:00 -07:00
2015-03-17 14:08:00 -07:00
2015-04-13 17:33:24 -07:00
2015-05-29 14:36:35 -07:00
2015-05-29 14:36:35 -07:00