HomeFreeBSD

Save a call to pmap_remove() if entry cannot have any pages mapped.

Description

Save a call to pmap_remove() if entry cannot have any pages mapped.

Due to the way rtld creates mappings for the shared objects, each dso
causes unmap of at least three guard map entries. For instance, in
the buildworld load, this change reduces the amount of pmap_remove()
calls by 1/5.

Profiled by: alc
Reviewed by: alc, markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D16148

Details

Provenance
kibAuthored on Jul 6 2018, 7:48 PM
Parents
rGc38eeb8eb0d5: Regen arm64 linux sysent after r336043
Branches
Unknown
Tags
Unknown

Event Timeline