HomeFreeBSD

amd64/arm64 pmap: Stop requiring the accessed bit for superpage promotion

Description

amd64/arm64 pmap: Stop requiring the accessed bit for superpage promotion

Stop requiring all of the PTEs to have the accessed bit set for superpage
promotion to occur. Given that change, add support for promotion to
pmap_enter_quick(), which does not set the accessed bit in the PTE that
it creates.

Since the final mapping within a superpage-aligned and sized region of a
memory-mapped file is typically created by a call to pmap_enter_quick(),
we now achieve promotions in circumstances where they did not occur
before, for example, the X server's read-only mapping of libLLVM-15.so.

See also https://www.usenix.org/system/files/atc20-zhu-weixi_0.pdf

Reviewed by: kib, markj
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D40478

Details

Provenance
alcAuthored on May 31 2023, 11:10 PM
Reviewer
kib
Differential Revision
D40478: amd64/arm64 pmap: Stop requiring the accessed bit for superpage promotion
Parents
rG1dd6f95bb90d: wg(4): add Matt Macy back to AUTHORS section
Branches
Unknown
Tags
Unknown