Minset corpus edge indices#14856
Conversation
Benchmark: 1h Aave v4 SCFuzzBench campaign (seed=42)Stacked-PR follow-up to the #14853 benchmark. Same setup: Recon-Fuzz/aave-v4-scfuzzbench,
Results
Unique bugs by config
Key findings
|
|
#14856 (comment) |
Replace mutation-count favorability with top-rated minset culling for coverage-guided corpora. Corpus entries now track the coverage indices they contribute, and favored entries are selected as the cheapest known representatives for covered edges rather than by historical mutation success ratio. Remove total_mutations/new_finds_produced, the favorability threshold, and the obsolete corpus_min_mutations config. Culling now keeps the configured minimum corpus size and evicts non-minset entries. Track hash coverage hit indices explicitly alongside hitcounts so minset bookkeeping can use stable edge IDs without scanning the dense hitcount map. Collision-free mode continues to use stable EdgeIndexMap IDs. Add two on-disk crossover mutations: - CrossoverInsert inserts a transaction loaded from a persisted corpus entry into the current sequence. - CrossoverReplace replaces a transaction in the current sequence with one loaded from a persisted corpus entry. Cache persisted corpus file entries to avoid rescanning the corpus directory on every crossover while preserving the on-disk donor source.
d08cf34 to
e170eef
Compare
will redo the benches with the new per contract approach (similar with #14902 (comment)) and post back |
|
actually i am going to push another commit to see if i can shrink memory usage |
23cb414 to
333d94e
Compare
|
This pull request is stale because it has been open for 14 days with no activity. It will be closed in 7 days if there is no further activity. |
|
derek bench invariant |
|
cc @0xalpharush bench only runs for branches in Usage:
|
Stacked on #14853
Motivation
The current corpora may not retain an entry for which it is the only one coverage that edge. Additionally, once a corpus entry is on disk, we no longer splice it, losing some diversity of earlier discoveries if a subsequent entry "wins".
OSS-187
Solution
Replace mutation-count favorability with top-rated minset culling for coverage-guided corpora. Corpus entries now track the coverage indices they contribute, and favored entries are selected as the cheapest known representatives for covered edges rather than by historical mutation success ratio.
Remove total_mutations/new_finds_produced, the favorability threshold, and the obsolete corpus_min_mutations config. Culling now keeps the configured minimum corpus size and evicts non-minset entries.
Track hash coverage hit indices explicitly alongside hitcounts so minset bookkeeping can use stable edge IDs without scanning the dense hitcount map. Collision-free mode continues to use stable EdgeIndexMap IDs.
Add two on-disk crossover mutations:
CrossoverInsert inserts a transaction loaded from a persisted corpus entry into the current sequence.
CrossoverReplace replaces a transaction in the current sequence with one loaded from a persisted corpus entry.
Cache persisted corpus file entries to avoid rescanning the corpus directory on every crossover while preserving the on-disk donor source.
Experiment
On aave scfuzzbench target, I observe higher throughput and a smaller corpus. This was for a short run and more thorough benchmarking should probably be done.