This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
** 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 0/0 0.00 KB 0.0 10.3 0.0 10.3 61.9 51.7 0.0 1.2 54.8 331.0 191.65 112.61 3598 0.053 25M 7102 0.0 0.0 | |
L3 4/0 59.79 MB 0.9 147.4 51.7 95.7 147.2 51.6 0.0 2.8 384.9 384.5 392.18 275.78 470 0.834 368M 286K 0.0 0.0 | |
L4 11/0 154.73 MB 0.9 98.6 47.9 50.6 98.3 47.7 3.6 2.1 337.2 336.5 299.29 182.77 2990 0.100 246M 472K 0.0 0.0 | |
L5 102/0 1.35 GB 1. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[mysqld] | |
sql_mode=no_engine_substitution,no_unsigned_subtraction | |
default_tmp_storage_engine=MyISAM | |
sync_relay_log_info=100 | |
relay_log_recovery=1 | |
relay_log_info_repository=FILE | |
innodb_purge_threads=8 | |
innodb_compression_pad_pct_max=37 | |
innodb_compression_failure_threshold_pct=10 | |
innodb_flush_neighbors=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
v6.0.2 | |
16.83% db_bench db_bench.v6.0.2 [.] rocksdb::IndexBlockIter::Seek | |
14.69% db_bench db_bench.v6.0.2 [.] rocksdb::DataBlockIter::Seek | |
11.14% db_bench db_bench.v6.0.2 [.] rocksdb::LRUHandleTable::FindPointer | |
6.67% db_bench libc-2.31.so [.] __memcmp_avx2_movbe | |
3.98% db_bench db_bench.v6.0.2 [.] rocksdb::Block::NewIterator<rocksdb::DataBlockIter> | |
3.66% db_bench db_bench.v6.0.2 [.] rocksdb::LRUCacheShard::Lookup | |
3.51% db_bench db_bench.v6.0.2 [.] rocksdb::(anonymous namespace)::FullFilterBitsReader::MayMatch | |
3.13% db_bench db_bench.v6.0.2 [.] rocksdb::(anonymous namespace)::BytewiseComparatorImpl::Compare | |
2.94% db_bench libpthread-2.31.so [.] __pthread_mutex_unlock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff tools/db_bench_tool.cc db_bench_tool.cc.fillseq | |
--- tools/db_bench_tool.cc 2022-02-15 10:42:01.071748970 -0800 | |
+++ db_bench_tool.cc.fillseq 2022-02-14 14:33:55.101778301 -0800 | |
@@ -3115,6 +3115,7 @@ | |
if (port::kLittleEndian) { | |
for (int i = 0; i < bytes_to_fill; ++i) { | |
pos[i] = (prefix >> ((bytes_to_fill - i - 1) << 3)) & 0xFF; | |
+ printf("shift %d for i=%d to %ld\n", ((bytes_to_fill - i - 1) << 3), i, (prefix >> ((bytes_to_fill - i - 1) << 3))); | |
} | |
} else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/db/version_set.cc b/db/version_set.cc | |
index 5d9adf4b3..dc7f58695 100644 | |
--- a/db/version_set.cc | |
+++ b/db/version_set.cc | |
@@ -3721,11 +3721,40 @@ void VersionStorageInfo::CalculateBaseBytes(const ImmutableOptions& ioptions, | |
l0_size += f->fd.GetFileSize(); | |
} | |
- uint64_t base_bytes_max = | |
- std::max(options.max_bytes_for_level_base, l0_size); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ops_sec - operations per second | |
# mb_sec - ops_sec * size-of-operation-in-MB | |
# db_size - database size | |
# c_wgb - GB written by compaction | |
# w_amp - Write-amplification as (bytes written by compaction / bytes written by memtable flush) | |
# c_mbps - Average write rate for compaction | |
# c_secs - Wall clock seconds doing compaction | |
# usec_op - Microseconds per operation | |
# p50, p99, p99.9, p99.99 - 50th, 99th, 99.9th, 99.99th percentile response time in usecs | |
# pmax - max response time in usecs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
point-query.warm.range100.pk1 | |
--- absolute | |
cpu/o r/o rKB/o wKB/o o/s dbms | |
0.000362 0.003 0.248 1.33 74892 x.pg124.x5.pk1 | |
0.000343 0.003 0.311 1.22 84139 x.pg134.x5.pk1 | |
0.000326 0.003 0.322 1.223 84370 x.pg140.x5.pk1 | |
--- relative to first result | |
0.95 1.00 1.25 0.92 1.12 x.pg134.x5.pk1 | |
0.90 1.00 1.30 0.92 1.13 x.pg140.x5.pk1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db_1 = x.pg124.x5.pk1 | |
db_2 = x.pg134.x5.pk1 | |
db_3 = x.pg140.x5.pk1 | |
db_1 db_2 db_3 | |
1.00 1.12 1.13 point-query.warm.range100.pk1 | |
1.00 0.99 1.05 point-query.pre.range100.pk1 | |
1.00 1.00 1.02 random-points.pre.range10.pk1 | |
1.00 1.00 1.02 random-points.pre.range100.pk1 | |
1.00 1.00 1.00 random-points.pre.range1000.pk1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
point-query.warm.range100.pk1 | |
--- absolute | |
cpu/o r/o rKB/o wKB/o o/s dbms | |
0.000361 0.003 0.248 1.33 75046 x.pg124.x5.pk1 | |
0.000343 0.003 0.31 1.219 83857 x.pg134.x5.pk1 | |
0.000325 0.003 0.325 1.222 84459 x.pg140.x5.pk1 | |
--- relative to first result | |
0.95 1.00 1.25 0.92 1.12 x.pg134.x5.pk1 | |
0.90 1.00 1.31 0.92 1.13 x.pg140.x5.pk1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
point-query.warm.range100.pk1 | |
--- absolute | |
cpu/o r/o rKB/o wKB/o o/s dbms | |
0.000326 0 0 0.881 84033 x.pg124.x5.pk1 | |
0.000310 0 0 0.868 89285 x.pg134.x5.pk1 | |
0.000295 0 0 0.848 88495 x.pg140.x5.pk1 | |
--- relative to first result | |
0.95 1 1 0.99 1.06 x.pg134.x5.pk1 | |
0.90 1 1 0.96 1.05 x.pg140.x5.pk1 |
NewerOlder