rocksdb/include/leveldb
Chip Turner 3dafdfb2c4 Use fallocate to prevent excessive allocation of sst files and logs
Summary:
On some filesystems, pre-allocation can be a considerable
amount of space.  xfs in our production environment pre-allocates by
1GB, for instance.  By using fallocate to inform the kernel of our
expected file sizes, we eliminate this wasteage (that isn't recovered
until the file is closed which, in the case of LOG files, can be a
considerable amount of time).

Test Plan:
created an xfs loopback filesystem, mounted with
allocsize=4M, and ran db_stress.  LOG file without this change was 4M,
and with it it was 128k then grew to normal size.

Reviewers: dhruba

Reviewed By: dhruba

CC: adsharma, leveldb

Differential Revision: https://reviews.facebook.net/D7953
2013-01-24 12:25:13 -08:00
..
c.h Various build cleanups/improvements 2013-01-14 18:40:22 -08:00
cache.h Fix a number of object lifetime/ownership issues 2013-01-23 16:54:11 -08:00
comparator.h A number of fixes: 2011-10-31 17:22:06 +00:00
db.h Enhance ReadOnly mode to process the all committed transactions. 2012-12-19 16:30:46 -08:00
env.h Use fallocate to prevent excessive allocation of sst files and logs 2013-01-24 12:25:13 -08: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 Use fallocate to prevent excessive allocation of sst files and logs 2013-01-24 12:25:13 -08:00
slice.h manifest_dump: Add --hex=1 option 2012-12-16 08:58:28 -08:00
statistics.h Add counters to count gets and writes 2013-01-17 12:27:56 -08:00
status.h Added an API in rocksdb for checking for "invalid argument" and "not supported" for leveldb::Status 2013-01-16 14:30:45 -08:00
table_builder.h Fix all the lint errors. 2012-11-28 17:18:41 -08:00
table.h Fix a number of object lifetime/ownership issues 2013-01-23 16:54:11 -08:00
transaction_log_iterator.h GetSequence API in write batch. 2012-12-12 22:21:10 -08:00
types.h GetUpdatesSince API to enable replication. 2012-12-07 11:42:13 -08:00
write_batch.h Enhancements to rocksdb for better support for replication. 2012-12-17 11:40:19 -08:00