Page MenuHomeFreeBSD

amd64: Ignore 1GB mappings in pmap_advise()
ClosedPublic

Authored by markj on Sep 22 2022, 11:08 PM.
Tags
None
Referenced Files
F174420938: D36675.id110869.diff
Sat, Oct 3, 1:55 AM
F174414067: D36675.id110916.diff
Sat, Oct 3, 12:48 AM
Unknown Object (File)
Tue, Sep 29, 5:31 PM
Unknown Object (File)
Thu, Sep 24, 8:56 AM
Unknown Object (File)
Tue, Sep 22, 10:50 PM
Unknown Object (File)
Tue, Sep 22, 7:30 PM
Unknown Object (File)
Mon, Sep 21, 4:58 AM
Unknown Object (File)
Tue, Sep 8, 3:21 PM
Subscribers

Details

Summary

This assertion can be triggered by usermode since vm_map_madvise()
doesn't force advice to be applied to an entire largepage mapping. I
can't see any reason not to permit it, however, since MADV_DONTNEED and
_FREE are advisory and we can simply do nothing when a 1GB mapping is
encountered.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 47498
Build 44385: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Sep 22 2022, 11:53 PM

Shouldn't the same change be made on arm64?

This revision was automatically updated to reflect the committed changes.
In D36675#832960, @alc wrote:

Shouldn't the same change be made on arm64?

Yes, I committed it as a follow-up.