Skip to content

Instantly share code, notes, and snippets.

@siying
siying / gist:190114297e9ec63e6fce67c82cdeb654
Created October 29, 2021 23:59
Compaction Penalty Cutting file time boundary
========= With Change =========
fillrandom : 11.612 micros/op 86121 ops/sec; 9.5 MB/s
** Compaction Stats [default] **
Level Files Size Score Read(GB) Rn(GB) Rnp1(GB) Write(GB) Wnew(GB) Moved(GB) W-Amp Rd(MB/s) Wr(MB/s) Comp(sec) CompMergeCPU(sec) Comp(cnt) Avg(sec) KeyIn KeyDrop Rblob(GB) Wblob(GB)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
L0 3/0 89.64 MB 0.8 0.0 0.0 0.0 1.3 1.3 0.0 1.0 0.0 80.0 16.05 16.04 43 0.373 0 0 0.0 0.0
L1 4/0 183.44 MB 0.7 3.1 1.2 1.9 2.9 0.9 0.0 2.5 75.2 69.9 42.03 42.02 10 4.203 48M 3314K 0.0 0.0
[ec2-user@ip-172-31-25-140 rocksdb]$ TEST_TMPDIR=/data/ ./db_bench --benchmarks=fillrandom --num=50000000 -use_direct_io_for_flush_and_compaction -use_direct_reads
Initializing RocksDB Options from the specified file
Initializing RocksDB Options from command-line flags
RocksDB: version 6.10
Date: Thu May 28 22:01:48 2020
CPU: 8 * AMD EPYC 7571
CPUCache: 512 KB
Keys: 16 bytes each
Values: 100 bytes each (50 bytes after compression)
Entries: 50000000