pub fn advise_mmap_for_persistence(mmap: &Mmap) -> Result<()>Expand description
Apply Linux-specific mmap advice flags that should be set on all persistent mmaps.
DontFork: prevents mmap regions from being copied into child processes onfork(), avoiding unnecessary memory duplication and potential SIGBUS.Unmergeable: opts pages out of KSM (Kernel Same-page Merging) since our data is unique compressed content that won’t benefit from deduplication scanning.