Page MenuHomeFreeBSD

arm64 pmap: Enable L3C promotions by pmap_enter_quick()
ClosedPublic

Authored by alc on Sat, Jun 1, 9:33 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jun 13, 10:16 PM
Unknown Object (File)
Sat, Jun 8, 11:48 AM
Unknown Object (File)
Fri, Jun 7, 11:49 PM
Unknown Object (File)
Wed, Jun 5, 4:50 AM
Unknown Object (File)
Tue, Jun 4, 4:06 PM
Unknown Object (File)
Sat, Jun 1, 11:23 PM

Details

Summary

This is dependent on D45431 to achieve a reasonable ratio of promotion successes to failures.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

alc requested review of this revision.Sat, Jun 1, 9:33 PM
This revision is now accepted and ready to land.Tue, Jun 4, 5:25 AM
sys/arm64/arm64/pmap.c
5897–5898

The same situation arises on amd64. However, there the promotion fails inexpensively at the very beginning of pmap_promote_pde(), before we enter the loop, because of misalignment of the physical superpage in the address space. For example, for the clang executable, I see a fully populated reservation, but it is misaligned, and so we don't perform pmap_enter_2mpage(). Instead, we wind up here 512 times, and attempt promotion once. This is because ld.ldd (unlike our earlier binutils linker) sets maxpagesize to 4KB on amd64, and so the text segment is almost always misaligned by default.