rocksdb/include/leveldb
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
..
c.h Added bloom filter support. 2012-04-17 08:36:46 -07:00
cache.h Print the block cache size in the LOG. 2012-09-29 21:39:19 -07:00
comparator.h A number of fixes: 2011-10-31 17:22:06 +00:00
db.h The BackupAPI should also list the length of the manifest file. 2012-09-25 03:13:25 -07:00
env.h Enable LevelDb to create a new log file if current log file is too large. 2012-10-26 14:55:02 -07:00
filter_policy.h Added bloom filter support. 2012-04-17 08:36:46 -07:00
iterator.h A number of fixes: 2011-10-31 17:22:06 +00:00
options.h Adds DB::GetNextCompaction and then uses that for rate limiting db_bench 2012-10-29 10:17:43 -07:00
slice.h Support for java access to leveldb via leveldbjni. 2012-06-20 15:17:03 -07:00
statistics.h Clean up compiler warnings generated by -Wall option. 2012-08-29 14:24:51 -07:00
status.h build shared libraries; updated version to 1.3; add Status accessors 2012-03-30 13:15:49 -07:00
table_builder.h Added bloom filter support. 2012-04-17 08:36:46 -07:00
table.h Trigger read compaction only if seeks to storage are incurred. 2012-09-28 11:10:52 -07:00
write_batch.h A number of fixes: 2011-10-31 17:22:06 +00:00