Repository navigation
Replace repository content with QMDB benchmark artifact (cc26e3d) - #58
Conversation
- Generic engine run_bench.sh + system plugins (systems/qmdb.sh), replacing the duplicated per-system run_*_benchmark.sh scripts - Unified hardware monitor (monitor/hwmonitor.sh): CPU + memory(cgroup) + SSD in one hardware_usage.csv at 5s, replacing the smaps-based pid_monitor that perturbed write throughput - monitor/make_all_plots.py: CPU/SSD/Memory plots from hardware_usage.csv - speed.rs/cli.rs: single-source --db-dir (derives monitor disk + SSD usage), key metrics routed to --result-log, removed TPS test, hover insert/delete only on the final post-population hover, removed hardcoded paths - crates/ workspace layout (qmdb, qmdb-common, hpfile) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
speed.rs/cli.rs: new --init-db-path loads a pre-computed InitDbBundle (bincode: populate_start/end + init_db + boundary_ops) from gen-init-db, skipping Phase 1 BaseStateSplitter regeneration from traces. Adds run_eth_replay_from_bundle + run_eth_replay_inner (streaming Phase 3 + boundary_ops.retain to replay range). Trace-mode run_eth_replay_mode (pre-load Phase 3) left unchanged; --eth-trace-dir still required for Phase 3 replay ops. lvmt_adapter.rs: execute_writes now collects a block's ops, sorts by key, then applies (matches LVMT's official benchmark warmup; improves RocksDB SST locality). MEMORY_MB set to 2048 to match the hybrid's RocksDB memory budget. Verified on h0 against the real 93GB bundle: init_db=63,830,024, boundary_blocks=5,130,880, full Phase 2 populate + 200-block streaming replay (755,994 ops) finished clean. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
… system Student-facing guide: compile-time backend dispatch (db_backend.rs), build matrix (switch_backend + features, incl. LVMT CXXFLAGS / Reth mode), speed binary flags + the hover workload, ETH replay mode, and a step-by-step recipe for adding a new backend (new adapter + mod.rs + db_backend.rs arm + Cargo.toml feature/dep). Documents the sibling path-dep layout and the zstd/NOFILE/start-from-existing gotchas. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
… repo Make the repo self-contained: a single clone now builds all 5 systems with no external downloads. Backends vendored at repo root; bench path-deps rewritten ../../X -> ../X (Cargo.toml + .lvmt + .reth); root Cargo.toml workspace excludes them (each carries its own crates/workspace). lvmt/pp BLS params (88M+12.5M) force-added since lvmt's own .gitignore drops them. All four backends (QMDB/NOMT/LVMT/Reth) verified to build from the vendored layout on h0. README updated for the vendored layout. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Reconstructs the ETH-replay streaming base-state load so replay runs on 62GB-RAM machines (r6gd.2xlarge). The prior code deserialized the whole ~60GB init_db Vec at once (bincode::deserialize_from::<InitDbBundle>), OOMing on <128GB boxes. New InitDbSource enum: - Stream: reads the bundle header (populate_start/end, init_db len) up front, then pulls each (key,value) via next_entry(); finish_boundary_ops reads the trailing boundary_ops map off the same reader and filters to the replay range as it reads. - Mem: wraps the trace-mode splitter output (unchanged behaviour). Field-by-field reads are byte-identical to one deserialize because bincode 1.3's free functions use a flat fixint/u64-length-prefixed layout. Phase 2 populate now drains via while-let src.next_entry(); the boundary_ops.retain filter is replaced by src.finish_boundary_ops(replay_start, replay_end). Verified: cargo build --release --bin speed (QMDB backend) compiles clean. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
NOMT is now identical to thrumdev/nomt@5fa289a except beatree/leaf_cache.rs insert(), which evicts LRU entries on every insert. LVMT is identical to ChenxingLi/authenticated-storage-benchmarks@c22ff82 except lvmt-db commit(), which deduplicates writes within an epoch. Removed: IO counters, cache hit-rate logging, debug prints and commented-out tracers in NOMT; timing and counters in lvmt-db; changes to LVMT's standalone runner (asb-authdb/src/lvmt.rs, benchmarks/src/run.rs, cfx-kvdb-rocksdb MyStat) and our scripts inside lvmt/. Reth was already identical to paradigmxyz/reth@1ba631b. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
lib.rs, updater.rs, seqads.rs, flusher/, prefetcher/, tasks/: remove commented-out code, separator comment lines, and the VERBOSE-only instrumentation (PIPELINE_LOG markers, UPDATER_STATS, FLUSHER_PROFILE, SLOT_ANALYSIS monitor thread and their timer fields). VERBOSE was false, so none of this ran in the measured builds. Also drops the orphaned tasks/task_id_set.rs, which no module declared. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Remove commented-out code and separator comment lines, plus unused imports, an unused private constant (singleproof.rs), the print_set debug helper (memidx.rs), a debug println in the test generator, and unused progress-tracking locals in Tree::scan_entries. No behavior changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Remove commented-out code, separator comment lines and unused imports. No behavior changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Remove separator banners, commented-out commands and one unused import. run_bench.sh lines 2-30 are kept because its usage() prints them. No behavior changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
bench/src: remove commented-out code, separator comment lines, adapter debug prints ([PERF] stage timestamps in the NOMT adapter, commit and read latency counters in the LVMT adapter, the Reth trie-node debug print, memory-estimate prints in the ETH pre-load path) and dead code: the never-called GC_SNAPSHOT monitor (spawn_qmdb_monitor) and the empty log_io_stat stub. Every line parsed by the result parsers is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Restructure the README the way recent artifact READMEs are organized: claims mapped to figures, hardware and software requirements, build per backend, a kick-the-tires run with expected output, the synthetic and Ethereum workloads, per-figure reproduction commands with run times, output format, baseline versions/patches/licenses, differences from LayerZero's QMDB, troubleshooting, per-directory licenses and citation. Items that need the authors' decision or extra material are marked TODO(release) and collected in a release checklist. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… switch The client-side PIPELINE_LOG prints in speed.rs were the last users of qmdb::VERBOSE (a constant false, so they were compiled out). Drop them, the vprintln! macro, the VERBOSE constant and qmdb's chrono dependency, which only these logs used. Per-flush roots and phase reports are unchanged on h0-qmdb. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Use a 16 GiB page cache and a 10 GiB leaf cache, and read the hashtable bucket count from NOMT_BUCKETS (default 575,546,222), as the adapter used for the database-size runs did, instead of a 1 MiB page cache, no leaf cache and a fixed 248,354,236 buckets. Document the per-size bucket counts and set a small NOMT_BUCKETS in the smoke test, since NOMT preallocates 4 KiB of SSD per bucket. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The repository should not ship result data. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The root .gitignore entry `debug/` had kept book/cli/reth/debug/*.md out of the vendored copy. With them added, all 1,559 files under reth/ match paradigmxyz/reth@1ba631b in content and mode. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Keep only bench/switch_backend.sh. The sweep engine (run_bench.sh with systems/qmdb.sh) and the four run_*_benchmark.sh scripts were tied to our cluster (NUMA layout, a home-directory monitor library, source edits with sed) and the latter no longer ran; monitor/ held the cluster monitors and the plot script; bench/run.sh and bench/README.md described flags that speed no longer has; archive/ was not compiled. Also drop the macOS AppleDouble (._*) files that had been committed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The pruned-segment channel added a prune_sender field to Flusher and an argument to Flusher::new, but test_flusher and the no_run example still used the old shape, so `cargo test -p qmdb` did not compile. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rness None was used for the paper and none built: use_mdbx and use_rocksdb selected backends whose dispatch no longer compiled (the RocksDB module did not exist), and qmdb_bench_correctness threaded a bitmap model through the run that no longer matched the code. Drop the three features, the MDBX adapter, the correctness module, the --check-correctness flag and the reth-libmdbx dependency; the backend conditions now list only NOMT, LVMT and Reth. QMDB, NOMT, LVMT and Reth builds compile on h0-qmdb. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
These changes lived only in an untracked copy (qmdb-drainfix) and were never pushed: - Read phases: QMDB's updater treats reads as no-ops, so flush() returns while the io_uring prefetcher is still issuing disk reads. hover phases now poll the new DIO_READ_COUNT and stop the timer at the last read (no-op for write phases). A stub returns 0 for non-DIO builds. - HOVER_RW_RATIOS="0.0,...,1.0" runs one mixed read/write hover per ratio on the final hover (insert/delete are skipped), recorded as rw_readNN; results registers such phase names on first use. - qmdb feature pipeline_off waits for both task-hub slots before starting a block (pipeline depth 1) for the pipelining ablation. The diagnostic counters and their log lines from that copy are not taken. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Drop the JSON results file (--output-filename), the separate metrics file (--result-log), the samples that only went into the JSON (all-disk /proc/diskstats counters, /proc/<pid>/io, hardware and timestamps), the read-latency statistics that were never recorded (--num-read-latency-samples, metrics.rs) and results2benchmark.py. The per-phase throughput, TEST_REPORT, OS physical read/write, MEM, SSD and CPU lines and the final summary are printed as before. result_log.rs keeps only the monitor-disk resolution and is renamed disk_monitor.rs. Also drop the record calls for fresh_inserts and eth_replay_ops, which were never registered and so printed nothing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
speed only used eth-replay-kv's reader for the per-block base_kv and operation_kv files, its in-order prefetching producers and the BaseStateSplitter. Move those into bench/src/speed/eth_replay.rs, reading from a local directory only (the S3 path and its AWS SDK dependency are dropped; the public S3 source no longer exists), and remove the crate with its CLI and analysis tools (gen-init-db, kv_* binaries). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
LVMT's core code has no license, so it should not be redistributed. The one change we carried in its source, keeping only the last write of a key in an epoch, now lives in our adapter: execute_writes already sorts the block's operations by key, so it passes LVMT only the last write of each key, and LVMT's get() never sees uncommitted writes, so reads are unaffected. With the vendored copy and its generated public parameters (pp/) removed, lvmt/ is a submodule at ChenxingLi/authenticated-storage-benchmarks@c22ff82; LVMT regenerates pp/ on first use (about two minutes). On h0-qmdb every per-block LVMT root matches the previous build when given the same parameters. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
LVMT and Reth cannot share one dependency graph, so the single committed Cargo.lock matched only Reth-mode while the default bench/Cargo.toml is LVMT-mode, and every default build re-resolved dependencies. Add bench/Cargo.lock.lvmt and bench/Cargo.lock.reth, derived from the old lock so existing versions are kept (Reth-mode changes no version; LVMT-mode adds LVMT's own dependencies), make switch_backend.sh copy the matching lock to the workspace root, and commit the LVMT-mode lock as Cargo.lock. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The DIO prefetcher registers every segment it reads as an io_uring fixed
file. A registration keeps the kernel's reference to the file after the
flusher prunes (unlinks) it, so the space was reclaimed only when that slot
happened to be reused, and SSD usage grew during runs. Now the flusher sends
one PruneCmd{shard_id, end_seg_id} per shard before pruning; every io_uring
worker clears the registered slots of that shard below end_seg_id with
register_files_update(slot, -1), recycles them, drops pending registrations
of those segments and keeps a per-shard watermark so they are never
registered again. Per-worker prune channels are unbounded, and an idle
worker also wakes for prune notifications. Commands are cumulative, so the
flusher's try_send on the bounded master channel loses nothing that matters.
zz_gccheck on h0-qmdb (1 MiB segments, 4,000 blocks): up to 693 deleted
segments stayed registered after prunes before, none after, and the
per-shard roots are identical.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Clear slots only while the submission queue is empty. submit_and_wait may submit only part of the queue, and an SQE still queued must not reference a cleared slot; prune notifications wait in a queue until then. - Retry failed clears. If register_files_update(-1) fails, the slot still holds the deleted segment; it is kept aside and retried instead of being recycled. - Never drop the newest notification. With the DIO prefetcher the prune channel is unbounded, so try_send cannot fail; without it nothing reads the channel, which stays bounded. zz_gccheck on h0-qmdb: no deleted segment stays registered, roots unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
QMDB and LVMT always started from an empty database and ignored the flag (with QMDB the hover then waited forever on the empty database), and no experiment used it. Remove the flag, the existing-database branch of the speed driver (TestGen fast-forward, NOMT read warmup, Reth warmup_trie and the immediate hover) and the parameters that only served it. NOMT and Reth now always start from an empty directory, as they did without the flag. README: drop the troubleshooting note and the parameter from the backend interface. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Comments only; no code changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Drop the references to removed tools (run_bench.sh, systems/, monitor/, the run_*_benchmark.sh scripts, eth-replay-kv and gen-init-db, the JSON output) and give the direct speed commands instead; describe LVMT as an unmodified submodule; document HOVER_RW_RATIOS, pipeline_off and the read-phase timing; remove the release TODOs that are resolved or dropped (fio, analysis scripts, known differences, DOI and tag, licensing). The dataset download location is the only TODO left. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…sections Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… commands Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…selines and QMDB Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
du -s reports KiB, so the bytes/entry figure was 1,024 times too small. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…elling Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…heck All new behaviour is opt-in through environment variables; with them unset the replay behaves as before. - ETH_PREFETCH=N: number of trace files loaded concurrently (default PREFETCH_BUFFER_BLOCKS). - ETH_PAR_LOAD (any value): read and decode the trace files on Tokio's blocking thread pool so the loads run in parallel. - ETH_PAR_PACK=N: pack operations into DB blocks on N rayon threads and deliver them in order; the blocks are identical to the serial packer's. - QMDB_BIGBUF_MEMSET (any value): new_big_buf_boxed() zeroes the buffer with resize instead of calloc, avoiding jemalloc's madvise(MADV_DONTNEED) TLB-shootdown interrupts on recycled extents. After "Duration:" is printed (outside the timed region) the replay flushes the DB; QMDB then prints its 16 shard roots and "state_root_digest height=H <blake3 of the roots>" so a run can be checked for correctness. Other backends print nothing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… per-machine settings Section 6.3 now gives the command used for Fig. 6: the ETH_* and QMDB_BIGBUF_MEMSET environment variables, the 32 GiB cap applied with systemctl set-property at "=== Phase 2" (after the uncapped bundle load), the inclusive end height, the expected QMDB state_root_digest, and the CPU sets and input placement for c7gd.metal, c6id.16xlarge and r6gd.2xlarge. Sections 6.1, 7 and 8 are updated to match. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Takes the tree of the artifact-cleanup bundle (cc26e3d) verbatim, keeping its history as the second parent. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
| jq --exit-status 'all(.result == "success")' <<< '${{ toJson(needs) }}' No newline at end of file | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Install Rust toolchain |
| - name: Install Rust toolchain | ||
| uses: dtolnay/rust-toolchain@stable | ||
|
|
||
| - name: Install cargo-nextest |
|
Caution Review the following alerts detected in dependencies. According to your organization's Security Policy, you must resolve all "Block" alerts before proceeding. Learn more about Socket for GitHub.
|
…e kept for reproducibility Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
0x4C756B65
left a comment
There was a problem hiding this comment.
approved with known issues (CVEs, unpinned actions, etc) for the purposes of reproducing published research paper
Replaces the contents of this repo with the QMDB benchmark artifact (bundle
QMDB-Benchmark-artifact-cc26e3d, branchartifact-cleanup@cc26e3d).cc26e3d. Changes made onmainsince the artifact branched off (8def52e), including Update QMDB to new version #57, are superseded.bench/,crates/,lvmt/,nomt/,reth/plus the README with the benchmark and Ethereum replay instructions.lvmtis a submodule (ChenxingLi/authenticated-storage-benchmarks @c22ff82). An ~88 MBlvmt/pp/amt-params-ho1sTw-16.binexists in the artifact's history but not in the final tree.🤖 Generated with Claude Code