HomeFreeBSD

Avoid page lookups in the top-level object in vm_object_madvise().

Description

Avoid page lookups in the top-level object in vm_object_madvise().

We can iterate over consecutive resident pages in the top-level object
using the object's page list rather than by performing lookups in the
object radix tree. This extends one of the optimizations in r312208 to the
case where a shadow chain is present.

Suggested by: alc
Reviewed by: alc, kib (previous version)
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D9282

Details

Provenance
markjAuthored on
Reviewer
alc
Differential Revision
D9282: Further optimize vm_object_madvise()
Parents
rS312993: Pull in r279454 from upstream llvm trunk (by James Molloy):
Branches
Unknown
Tags
Unknown