HomeFreeBSD

For vm_map, #defining DIAGNOSTIC to turn on full assertion-based

Description

For vm_map, #defining DIAGNOSTIC to turn on full assertion-based
consistency checking slows performance dramatically. This change
reduces the number of assertions checked by completely walking the
vm_map tree only when the write-lock is released, and only then if the
number of modifications to the tree since the last walk exceeds the
number of tree nodes.

Reviewed by: alc, kib
Tested by: pho
Differential Revision: https://reviews.freebsd.org/D22163

Details

Provenance
dougmAuthored on
Reviewer
alc
Differential Revision
D22163: reduce vm_map consistency assertions
Parents
rS354569: MFC r354095, r354118, r354132:
Branches
Unknown
Tags
Unknown