Skip to content

Latest commit

 

History

History

verification

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Verification

Model checking for the index protocols: the gates, the watermarks, the capacity counters, the public calls interleaved, the CUDA index's rows and the NVMe index's rings. Spin checks each protocol as a Promela model, and GenMC checks the C++ against the real header where it fits.

  • basic_gate.pml: the unique side of basic::shared_mutex, as the stop-the-world calls take it.
  • basic_shared_mutex.pml, basic_shared_mutex.cpp: the one-word gate every mutator holds shared and the certified searches bracket with two probes.
  • basic_ram_index_rows.pml: the basic index's rows under their lock word, behind the gate's shared and unique sides.
  • basic_ram_index_back_link.pml: the back-link re-selection on one full row, against link and unlink.
  • basic_ram_index_steps.pml: the basic load path, two steps' tally, then finish under the unique side.
  • basic_vram_index_reach.pml: the basic VRAM refine's reach on every vendor, listed re-selections and their back-links, then the heal.
  • basic_ram_index_batches/: a basic batch, placed serially or planned over steppers, on one index or across two shards, publishes whole.
  • watermark_turn.pml: the watermark turn every dense index takes once its rows are placed.
  • dense_ram_index_watermark/: the dense mono-index's publication protocol, with its keys, cursor, save, load and refinement.
  • dense_ram_index_batches.pml, dense_ram_index_batches.cpp: a batch's commit, one add for its range and one watermark turn.
  • dense_ram_index_capacity/: storage capacity grown on demand behind one elected grower.
  • dense_ram_index_refine.pml: a refinement round's rewrite_row_ relocking a row while a search walks it.
  • dense_ram_indexes_claims.pml: the sharded index's claims, beside a snapshot.
  • dense_ram_indexes_commits.pml: a batch's commit across the shards, behind one counted sequence word.
  • dense_ram_indexes_plans/: the sharded save and load plans.
  • dense_ram_indexes_generations/: the shard set's generations, each opened by one caller, with batches crossing and spanning the bound.
  • dense_ram_indexes_gate/: the sharded index's gate and epoch, against clears, absorbs, cursors and compaction, the MaxSim scan's leads over a snapshot, and a walk beside a clear.
  • dense_vram_index_claims.pml: the CUDA index's host side, the claim, the growth, the turn and the admission ramp.
  • dense_vram_index_locks.pml: the CUDA index's rows, published by one release under the bounded slot-zero lock.
  • dense_vram_index_merge.pml: the Apple refine merging a re-selected row into the live one.
  • dense_vram_indexes/: the sharded CUDA index's batches, load and save, and the await of a search across its shards' streams.
  • arena_lifetime.pml: an arena's calls, generation and exports, its free and its executor's free, the same file in every engine.
  • nvme_ring.pml: the io_uring words of linux_uring_ring_t behind the ring engines.
  • ram_tables.pml, ram_tables_growth.pml: chunked_multimap's probes and its chunk growth.

Running

./check.sh runs every model, and ./check.sh <file>... only those; the GenMC clients run when GENMC names its executable. The runner comes from the forkunion submodule, git submodule update --init forkunion, or from the checkout FORKUNION_SOURCE names. ForkUnion's verification README documents the runner, the @verify grammar, the include roots and the memory budgets.

What the Models Found

What Is Not Covered

  • The dense header's first chunk is more events than GenMC's execution graph holds, so the dense clients spell the counters' lines.
  • The far-memory results are Spin's alone: GenMC has no posted add.
  • chunked_multimap has no client: chunked_column zeroes each fresh chunk with a std::memset of runtime length into heap memory, which GenMC 0.20 refuses to run, and its first chunk holds 2048 slots, more turns than --unroll gives a zeroing loop.
  • The rows model has no client either: the row lock sits inside basic::ram_index.
  • The executors' holds are plain try-locks around the per-thread arenas and are not modelled.
  • IMM may admit more than real Arm and POWER chips do, and nothing here runs on silicon.
  • A dying load plan's wait on its stream before the shards reopen is not modelled; load_plan_t's destructor holds it.
  • The CUDA rows model folds the prior lock holder into one lane and takes bar.warp.sync's ordering among its participants from the ISA text.
  • Litmus tests for the instruction-set references belong beside ForkUnion's probes, and are the next layer down.