Go to file
Sagar Vemuri 06b37eef7b Set defaults for high-pri and low-pri thread pools in regression test script
Summary:
**Summary**:
Set defaults for high-pri and low-pri thread pools in regression test script.

**Reason for this change**:
With #2680 , high-pri and low-pri thread pools get different numbers than before if  `num_high_pri_threads` and `num_low_pri_threads` options are not explicitly passed to db_bench in regression test script ... leading to a false-positive regression.

**Test Plan**:
REMOTE_HOST=udb1671.prn3 TEST_MODE=1 FBSOURCE=~/fbsource ~/fbsource/fbcode/rocks/tools/debug_regression_test.sh viewstate  (with very minor changes to the internals).

Observe P50 and P99 which showed up as regressions in our graphs.

Stats with the commit prior to #2680 , ie. 4f81ab3 :
seekrandomwhilewriting :      75.096 micros/op 13316 ops/sec;  168.6 MB/s (7499074 of 7500000 found)
Microseconds per seek:
Count: 120000000 Average: 1197.7254  StdDev: 33.35
Min: 187  Median: 980.5292  Max: 1816424
Percentiles: **P50: 980.53** P75: 1494.57 **P99: 4185.64** P99.9: 7800.11 P99.99: 15039.64

Stats at #2680, ie. at commit dce6d5a (false-positive regression):
seekrandomwhilewriting :      85.330 micros/op 11719 ops/sec;  148.4 MB/s (7499073 of 7500000 found)
Microseconds per seek:
Count: 120000000 Average: 1362.3261  StdDev: 27.86
Min: 185  Median: 1088.1915  Max: 652760
Percentiles: **P50: 1088.19** P75: 1658.12 **P99: 5361.15** P99.9: 7997.95 P99.99: 11730.07

Stats with the current change on top of dce6d5a :
seekrandomwhilewriting :      77.780 micros/op 12856 ops/sec;  162.8 MB/s (7499102 of 7500000 found)
Microseconds per seek:
Count: 120000000 Average: 1226.6744  StdDev: 17.16
Min: 185  Median: 994.2956  Max: 2553530
Percentiles: **P50: 994.30** P75: 1513.68 **P99: 4284.30** P99.9: 9338.64 P99.99: 23008.86
Closes https://github.com/facebook/rocksdb/pull/2801

Differential Revision: D5742338

Pulled By: sagar0

fbshipit-source-id: cc5d727c1a131f2a7070d1bb892efbe929b976ff
2017-08-30 17:29:34 -07:00
buckifier rocksdb: make buildable on aarch64 2017-08-13 17:13:54 -07:00
build_tools Update RocksDBCommonHelper to use escapeshellarg 2017-08-15 06:56:31 -07:00
cache Not using aligned_alloc with gcc4 + asan 2017-08-29 21:56:02 -07:00
cmake CMake: Add support for CMake packages 2017-08-28 17:14:37 -07:00
coverage Fix /bin/bash shebangs 2017-08-03 15:56:46 -07:00
db Dump non-final ZSTD compression type support 2017-08-30 16:41:24 -07:00
docs Minor updates to FlushWAL blog 2017-08-27 07:41:02 -07:00
env Introduce bottom-pri thread pool for large universal compactions 2017-08-03 15:43:29 -07:00
examples Pinnableslice examples and blog post 2017-08-24 12:26:07 -07:00
hdfs
include/rocksdb Extend property map with compaction stats 2017-08-30 15:26:55 -07:00
java Provide byte[] version of SstFileWriter.merge to reduce GC Stall 2017-08-22 12:55:24 -07:00
memtable Introduce bottom-pri thread pool for large universal compactions 2017-08-03 15:43:29 -07:00
monitoring Scale histogram bucket size by constant factor 2017-08-21 17:10:40 -07:00
options fix some misspellings 2017-08-16 21:57:20 -07:00
port Not using aligned_alloc with gcc4 + asan 2017-08-29 21:56:02 -07:00
table support disabling checksum in block-based table 2017-08-23 19:40:47 -07:00
third-party
tools Set defaults for high-pri and low-pri thread pools in regression test script 2017-08-30 17:29:34 -07:00
util Support prefetch last 512KB with direct I/O in block based file reader 2017-08-11 12:16:45 -07:00
utilities WriteAtPrepare: Efficient read from snapshot list 2017-08-26 01:00:38 -07:00
.clang-format
.gitignore Remove leftover references to phutil_module_cache 2017-08-23 12:12:21 -07:00
.travis.yml
AUTHORS
CMakeLists.txt CMake: Fix formatting 2017-08-28 18:41:29 -07:00
CONTRIBUTING.md
COPYING
DEFAULT_OPTIONS_HISTORY.md
DUMP_FORMAT.md
HISTORY.md Bumping version to 5.8 2017-08-30 14:26:12 -07:00
INSTALL.md
LANGUAGE-BINDINGS.md add Erlang to the list of language bindings 2017-08-28 16:43:16 -07:00
LICENSE.Apache
LICENSE.leveldb
Makefile Overload new[] to properly align LRUCacheShard 2017-08-14 14:41:56 -07:00
README.md
ROCKSDB_LITE.md
TARGETS rocksdb: make buildable on aarch64 2017-08-13 17:13:54 -07:00
USERS.md Update USERS.md 2017-08-06 12:44:40 -07:00
Vagrantfile
WINDOWS_PORT.md
appveyor.yml
src.mk Refactor PessimisticTransaction 2017-08-07 16:12:29 -07:00
thirdparty.inc

README.md

RocksDB: A Persistent Key-Value Store for Flash and RAM Storage

Build Status Build status

RocksDB is developed and maintained by Facebook Database Engineering Team. It is built on earlier work on LevelDB by Sanjay Ghemawat (sanjay@google.com) and Jeff Dean (jeff@google.com)

This code is a library that forms the core building block for a fast key value server, especially suited for storing data on flash drives. It has a Log-Structured-Merge-Database (LSM) design with flexible tradeoffs between Write-Amplification-Factor (WAF), Read-Amplification-Factor (RAF) and Space-Amplification-Factor (SAF). It has multi-threaded compactions, making it specially suitable for storing multiple terabytes of data in a single database.

Start with example usage here: https://github.com/facebook/rocksdb/tree/master/examples

See the github wiki for more explanation.

The public interface is in include/. Callers should not include or rely on the details of any other header files in this package. Those internal APIs may be changed without warning.

Design discussions are conducted in https://www.facebook.com/groups/rocksdb.dev/