mirror of https://github.com/facebook/rocksdb.git
70cb330a4a
Summary: Execute `ls` once when counting the file size of the `DB_DIR` and remove unused file number counter variable `c` . The test information as follow : ```Shell # benchmark command NUM_KEYS=30000000 CACHE_SIZE=6442450944 DB_DIR=/mnt/rocksdb_test WAL_DIR=/mnt/rocksdb_test ../tools/benchmark.sh fillseq_disable_wal # before modification cat /tmp/benchmark_fillseq.wal_disabled.v400.log.stats.sizes 0.0 0.0 0.0 0.0 195250 1.1 1.1 0.0 0.0 195300 2.5 2.5 0.0 0.0 195310 3.8 3.7 0.0 0.0 195320 5.1 5.1 0.0 0.0 195330 max sizes (GB): 5.1 all, 5.1 sst, 0.0 log, 0.0 blob # after modification cat /tmp/benchmark_fillseq.wal_disabled.v400.log.stats.sizes 0.0 0.0 0.0 0.0 194839 1.2 1.2 0.0 0.0 194849 2.6 2.6 0.0 0.0 194859 4.0 4.0 0.0 0.0 194909 5.4 5.4 0.0 0.0 194919 max sizes (GB): 5.4 all, 5.4 sst, 0.0 log, 0.0 blob ``` Pull Request resolved: https://github.com/facebook/rocksdb/pull/12363 Reviewed By: hx235 Differential Revision: D54005427 Pulled By: ajkr fbshipit-source-id: fae149705eb3fcda48d7381c42836a150f35ddc4 |
||
---|---|---|
.. | ||
advisor | ||
block_cache_analyzer | ||
dump | ||
CMakeLists.txt | ||
Dockerfile | ||
analyze_txn_stress_test.sh | ||
auto_sanity_test.sh | ||
backup_db.sh | ||
benchmark.sh | ||
benchmark_ci.py | ||
benchmark_compare.sh | ||
benchmark_leveldb.sh | ||
blob_dump.cc | ||
check_all_python.py | ||
check_format_compatible.sh | ||
db_bench.cc | ||
db_bench_tool.cc | ||
db_bench_tool_test.cc | ||
db_crashtest.py | ||
db_repl_stress.cc | ||
db_sanity_test.cc | ||
dbench_monitor | ||
generate_random_db.sh | ||
ingest_external_sst.sh | ||
io_tracer_parser.cc | ||
io_tracer_parser_test.cc | ||
io_tracer_parser_tool.cc | ||
io_tracer_parser_tool.h | ||
ldb.cc | ||
ldb_cmd.cc | ||
ldb_cmd_impl.h | ||
ldb_cmd_test.cc | ||
ldb_test.py | ||
ldb_tool.cc | ||
pflag | ||
reduce_levels_test.cc | ||
regression_test.sh | ||
restore_db.sh | ||
rocksdb_dump_test.sh | ||
run_blob_bench.sh | ||
run_flash_bench.sh | ||
run_leveldb.sh | ||
sample-dump.dmp | ||
simulated_hybrid_file_system.cc | ||
simulated_hybrid_file_system.h | ||
sst_dump.cc | ||
sst_dump_test.cc | ||
sst_dump_tool.cc | ||
trace_analyzer.cc | ||
trace_analyzer_test.cc | ||
trace_analyzer_tool.cc | ||
trace_analyzer_tool.h | ||
verify_random_db.sh | ||
write_external_sst.sh | ||
write_stress.cc | ||
write_stress_runner.py |