rocksdb/util
Mark Callaghan 70c42bf05f Adds DB::GetNextCompaction and then uses that for rate limiting db_bench
Summary:
Adds a method that returns the score for the next level that most
needs compaction. That method is then used by db_bench to rate limit threads.
Threads are put to sleep at the end of each stats interval until the score
is less than the limit. The limit is set via the --rate_limit=$double option.
The specified value must be > 1.0. Also adds the option --stats_per_interval
to enable additional metrics reported every stats interval.

Task ID: #

Blame Rev:

Test Plan:
run db_bench

Revert Plan:

Database Impact:

Memcache Impact:

Other Notes:

EImportant:

- begin *PUBLIC* platform impact section -
Bugzilla: #
- end platform impact -

Reviewers: dhruba

Reviewed By: dhruba

Differential Revision: https://reviews.facebook.net/D6243
2012-10-29 10:17:43 -07:00
..
arena_test.cc A number of fixes: 2011-10-31 17:22:06 +00:00
arena.cc A number of fixes: 2011-10-31 17:22:06 +00:00
arena.h A number of fixes: 2011-10-31 17:22:06 +00:00
auto_split_logger.h Add the missing util/auto_split_logger.h 2012-10-26 15:23:50 -07:00
bloom_test.cc Added bloom filter support. 2012-04-17 08:36:46 -07:00
bloom.cc bits_per_key is already configurable. It defines how many bloom bits will be used for every key in the database. 2012-07-09 23:06:07 -07:00
build_version.h Record the version of the source repository that was used to build the leveldb library. 2012-08-21 14:47:15 -07:00
cache_test.cc A number of fixes: 2011-10-31 17:22:06 +00:00
cache.cc Print the block cache size in the LOG. 2012-09-29 21:39:19 -07:00
coding_test.cc merge 1.5 2012-08-28 11:43:33 -07:00
coding.cc A number of fixes: 2011-10-31 17:22:06 +00:00
coding.h A number of fixes: 2011-10-31 17:22:06 +00:00
comparator.cc merge 1.5 2012-08-28 11:43:33 -07:00
crc32c_test.cc A number of fixes: 2011-10-31 17:22:06 +00:00
crc32c.cc SSE4 optimization 2012-05-15 10:10:01 -07:00
crc32c.h A number of fixes: 2011-10-31 17:22:06 +00:00
env_hdfs.cc Clean up compiler warnings generated by -Wall option. 2012-08-29 14:24:51 -07:00
env_posix.cc An configurable option to write data using write instead of mmap. 2012-10-03 17:08:13 -07:00
env_test.cc fixed issues 66 (leaking files on disk error) and 68 (no sync of CURRENT file) 2012-01-25 14:56:52 -08:00
env.cc fixed issues 66 (leaking files on disk error) and 68 (no sync of CURRENT file) 2012-01-25 14:56:52 -08:00
filelock_test.cc Prevent concurrent multiple opens of leveldb database. 2012-08-20 23:55:04 -07:00
filter_policy.cc Added bloom filter support. 2012-04-17 08:36:46 -07:00
hash.cc A number of fixes: 2011-10-31 17:22:06 +00:00
hash.h reverting disastrous MOE commit, returning to r21 2011-04-19 23:11:15 +00:00
histogram.cc A number of fixes: 2011-10-31 17:22:06 +00:00
histogram.h A number of fixes: 2011-10-31 17:22:06 +00:00
logging.cc A number of fixes: 2011-10-31 17:22:06 +00:00
logging.h A number of fixes: 2011-10-31 17:22:06 +00:00
murmurhash.cc Implement RowLocks for assoc schema 2012-10-03 23:19:01 -07:00
murmurhash.h Implement RowLocks for assoc schema 2012-10-03 23:19:01 -07:00
mutexlock.h Implement ReadWrite locks for leveldb 2012-10-01 22:37:39 -07:00
options.cc Adds DB::GetNextCompaction and then uses that for rate limiting db_bench 2012-10-29 10:17:43 -07:00
posix_logger.h Enable LevelDb to create a new log file if current log file is too large. 2012-10-26 14:55:02 -07:00
random.h A number of fixes: 2011-10-31 17:22:06 +00:00
stats_logger.h Clean up compiler warnings generated by -Wall option. 2012-08-29 14:24:51 -07:00
status.cc A number of fixes: 2011-10-31 17:22:06 +00:00
testharness.cc A number of fixes: 2011-10-31 17:22:06 +00:00
testharness.h A number of fixes: 2011-10-31 17:22:06 +00:00
testutil.cc A number of fixes: 2011-10-31 17:22:06 +00:00
testutil.h A number of fixes: 2011-10-31 17:22:06 +00:00