Merge pull request #1039 from bureau14/master

Improve documentation of the allow_os_buffer parameter.
main
Siying Dong 9 years ago
commit 9cad56861a
  1. 18
      include/rocksdb/options.h

@ -1041,7 +1041,23 @@ struct DBOptions {
// large amounts of data (such as xfs's allocsize option). // large amounts of data (such as xfs's allocsize option).
size_t manifest_preallocation_size; 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 // Default: true
bool allow_os_buffer; bool allow_os_buffer;

Loading…
Cancel
Save