Minset corpus edge indices#14856
Open
0xalpharush wants to merge 2 commits into
Open
Conversation
Collaborator
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
|
Collaborator
Author
|
#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
Collaborator
will redo the benches with the new per contract approach (similar with #14902 (comment)) and post back |
Collaborator
Author
|
actually i am going to push another commit to see if i can shrink memory usage |
23cb414 to
333d94e
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.