Skip to content

Commit

Permalink
Merge pull request facebook#1039 from bureau14/master
Browse files Browse the repository at this point in the history
Improve documentation of the allow_os_buffer parameter.
  • Loading branch information
siying committed Mar 16, 2016
2 parents 3ff98bd + 3d29f91 commit 9cad568
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion include/rocksdb/options.h
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,23 @@ struct DBOptions {
// large amounts of data (such as xfs's allocsize option).
size_t manifest_preallocation_size;

// Data being read from file storage may be buffered in the OS
// Hint the OS that it should not buffer disk I/O. Enabling this
// parameter may improve performance but increases pressure on the
// system cache.
//
// The exact behavior of this parameter is platform dependent.
//
// On POSIX systems, after RocksDB reads data from disk it will
// mark the pages as "unneeded". The operating system may - or may not
// - evict these pages from memory, reducing pressure on the system
// cache. If the disk block is requested again this can result in
// additional disk I/O.
//
// On WINDOWS system, files will be opened in "unbuffered I/O" mode
// which means that data read from the disk will not be cached or
// bufferized. The hardware buffer of the devices may however still
// be used. Memory mapped files are not impacted by this parameter.
//
// Default: true
bool allow_os_buffer;

Expand Down

0 comments on commit 9cad568

Please sign in to comment.