You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//! The [`CachedOnDiskCorpus`] stores [`Testcase`]s to disk, keeping a subset of them in memory/cache, evicting in a FIFO manner.
However, both these docs are wrong: CachedOnDiskCorpus only ever evicts the actual input from memory, the rest of the Testcase is kept in memory, including all metadata.
We should either implement what the docs say (not sure about the performance implications though), or at least fix the docs.
(Disclaimer: I'm only about 95% sure.)
The text was updated successfully, but these errors were encountered:
I'm currently running a target that has a lot of wait states, so I'm using decently large overcommit values (10 leads to ~30% CPU load), and I'm mainly constrained by memory. And all these clients have to keep an entire corpus, so any entry that can be removed is good for me. Either because it's offloaded or because it's removed because it's a duplicate. That's why I was wondering.
From the docs of
OnDiskCorpus
:LibAFL/libafl/src/corpus/ondisk.rs
Lines 1 to 6 in 2842f95
OnDiskCorpus
usesCachedOnDiskCorpus
under the hood:LibAFL/libafl/src/corpus/cached.rs
Line 1 in 2842f95
However, both these docs are wrong:
CachedOnDiskCorpus
only ever evicts the actual input from memory, the rest of the Testcase is kept in memory, including all metadata.We should either implement what the docs say (not sure about the performance implications though), or at least fix the docs.
(Disclaimer: I'm only about 95% sure.)
The text was updated successfully, but these errors were encountered: