Skip to content

Instantly share code, notes, and snippets.

@sagar0
sagar0 / gist:53693edc320a18abeaeca94ca32f5737
Last active April 29, 2019 17:27
RocksDB Iterator explicit-user-initiated-readahead improvement experiments
Experiments done for: https://github.com/facebook/rocksdb/pull/5246
Each experiment run thrice. 3 runs.
Master at commit: 1c8cbf315
Database size: 1B keys
Fill database:
TEST_TMPDIR=/data/users/$USER/benchmarks/iter ./db_bench -benchmarks=fillrandom -num=1000000000 -compression_type="none" -level_compaction_dynamic_level_bytes
@sagar0
sagar0 / LOG
Created March 10, 2018 01:16
Level Compaction with TTL Log
2018/03/09-17:13:24.225099 7f30fffcc200 RocksDB version: 5.10.0
2018/03/09-17:13:24.225116 7f30fffcc200 Git sha rocksdb_build_git_sha:cc90087235d6a71cb4654eff15594d6512464b79
2018/03/09-17:13:24.225117 7f30fffcc200 Compile date Mar 9 2018
2018/03/09-17:13:24.225118 7f30fffcc200 DB SUMMARY
2018/03/09-17:13:24.225124 7f30fffcc200 SST files in /dev/shm/db_compaction_test dir, Total Num: 0, files:
2018/03/09-17:13:24.225126 7f30fffcc200 Write Ahead Log file in /dev/shm/db_compaction_test:
2018/03/09-17:13:24.225126 7f30fffcc200 Options.error_if_exists: 0
2018/03/09-17:13:24.225127 7f30fffcc200 Options.create_if_missing: 1
2018/03/09-17:13:24.225128 7f30fffcc200 Options.paranoid_checks: 1
2018/03/09-17:13:24.225129 7f30fffcc200 Options.env: 0x7f30fe74d500
@sagar0
sagar0 / gist:fcba5c2c2d6592929078a295da583d11
Last active January 17, 2018 20:56
RocksDB RangeScan improvement with ReadAhead
Run micros/op ops/sec MB/s Avg MB/s
64KB
Run 1 9419.922 106 117.5 117.43333
Run 2 9433.72 106 117.3
Run 3 9418.928 106 117.5
128KB
Run 1 8835.056 113 125.2 125.86667
Run 2 8780.587 113 126

Keybase proof

I hereby claim:

  • I am sagar0 on github.
  • I am sagar0 (https://keybase.io/sagar0) on keybase.
  • I have a public key whose fingerprint is 8D54 67C9 A311 4C2A AB42 C458 C86B 7E33 39A4 3998

To claim this, I am signing this object: