rocksdb/include/rocksdb
Dhruba Borthakur 4012ca1c7b Added a parameter to limit the maximum space amplification for universal compaction.
Summary:
Added a new field called max_size_amplification_ratio in the
CompactionOptionsUniversal structure. This determines the maximum
percentage overhead of space amplification.

The size amplification is defined to be the ratio between the size of
the oldest file to the sum of the sizes of all other files. If the
size amplification exceeds the specified value, then min_merge_width
and max_merge_width are ignored and a full compaction of all files is done.
A value of 10 means that the size a database that stores 100 bytes
of user data could occupy 110 bytes of physical storage.

Test Plan: Unit test DBTest.UniversalCompactionSpaceAmplification added.

Reviewers: haobo, emayanke, xjin

Reviewed By: haobo

CC: leveldb

Differential Revision: https://reviews.facebook.net/D12825
2013-09-13 16:27:18 -07:00
..
arena.h Replace include/leveldb with include/rocksdb. 2013-08-23 10:51:00 -07:00
c.h Replace include/leveldb with include/rocksdb. 2013-08-23 10:51:00 -07:00
cache.h Replace include/leveldb with include/rocksdb. 2013-08-23 10:51:00 -07:00
compaction_filter.h Replace include/leveldb with include/rocksdb. 2013-08-23 10:51:00 -07:00
comparator.h Replace include/leveldb with include/rocksdb. 2013-08-23 10:51:00 -07:00
db.h Update documentation for backups and LogData 2013-09-05 15:33:37 -07:00
env.h [RocksDB] Enhance Env to support two thread pools LOW and HIGH 2013-09-12 16:15:36 -07:00
filter_policy.h Replace include/leveldb with include/rocksdb. 2013-08-23 10:51:00 -07:00
iterator.h Introduced a new flag non_blocking_io in ReadOptions. 2013-08-28 10:49:14 -07:00
ldb_tool.h Replace include/leveldb with include/rocksdb. 2013-08-23 10:51:00 -07:00
memtablerep.h [RocksDB] Fix TransformRepFactory related valgrind problem 2013-08-28 19:27:54 -07:00
merge_operator.h Replace include/leveldb with include/rocksdb. 2013-08-23 10:51:00 -07:00
options.h [RocksDB] Remove Log file immediately after memtable flush 2013-09-12 11:54:44 -07:00
perf_context.h [RocksDB] Added nano second stopwatch and new perf counters to track block read cost 2013-09-07 21:14:54 -07:00
slice.h Replace include/leveldb with include/rocksdb. 2013-08-23 10:51:00 -07:00
slice_transform.h Replace include/leveldb with include/rocksdb. 2013-08-23 10:51:00 -07:00
statistics.h An iterator may automatically invoke reseeks. 2013-09-06 11:50:53 -07:00
status.h Introduced a new flag non_blocking_io in ReadOptions. 2013-08-28 10:49:14 -07:00
table_builder.h Replace include/leveldb with include/rocksdb. 2013-08-23 10:51:00 -07:00
transaction_log.h Return pathname relative to db dir in LogFile and cleanup AppendSortedWalsOfType 2013-09-04 13:44:43 -07:00
types.h Replace include/leveldb with include/rocksdb. 2013-08-23 10:51:00 -07:00
universal_compaction.h Added a parameter to limit the maximum space amplification for universal compaction. 2013-09-13 16:27:18 -07:00
write_batch.h Update documentation for backups and LogData 2013-09-05 15:33:37 -07:00