Page MenuHomeFreeBSD

More checks for PG_ZERO pages
Needs ReviewPublic

Authored by kib on Fri, Nov 21, 9:01 AM.
Tags
None
Referenced Files
F137183579: D53850.id.diff
Fri, Nov 21, 10:04 AM
F137183089: D53850.id166878.diff
Fri, Nov 21, 10:02 AM
F137182683: D53850.diff
Fri, Nov 21, 10:00 AM
Subscribers

Details

Reviewers
markj
alc
Summary
vm_page_free_prep(): convert PG_ZERO zeroed page check to use sf_buf

Make the check MI by allocating sf_buf in non-blockable manner.  For
DMAP arches, this should be nop since sf_buf allocation cannot fail.
For non-DMAP arches, we get the checks activated unless there is serious
sf_buf pressure, which typically should be not.

The context for vm_page_free_prep() should be ready to block on some VM
mutexes, which should make it reasonable to block on sf_buf list lock.


vm_fault: under DIAGNOSTIC, verify that PG_ZERO page is indeed zeroed

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped