Page MenuHomeFreeBSD

vm: Honour the "noreuse" flag to vm_page_unwire_managed()
ClosedPublic

Authored by markj on Feb 9 2021, 4:27 PM.
Tags
None
Referenced Files
F163254960: D28555.id83646.diff
Tue, Jul 21, 11:35 AM
F163220636: D28555.id83594.diff
Tue, Jul 21, 4:34 AM
Unknown Object (File)
Sun, Jul 19, 10:33 PM
Unknown Object (File)
Fri, Jul 3, 11:39 PM
Unknown Object (File)
Mon, Jun 22, 11:00 PM
Unknown Object (File)
Jun 15 2026, 4:51 AM
Unknown Object (File)
Jun 15 2026, 4:41 AM
Unknown Object (File)
Jun 13 2026, 6:16 AM
Subscribers

Details

Summary

This flag indicates that the page should be enqueued near the head of
the inactive queue, skipping the LRU queue. It is used when unwiring
pages from the buffer cache following direct I/O or after I/O when
POSIX_FADV_NOREUSE or _DONTNEED advice was specified, or when
sendfile(SF_NOCACHE) completes. For the direct I/O and sendfile cases
we only enqueue the page if we decide not to free it, typically because
it's mapped.

Pass "noreuse" through to vm_page_release_toq() so that we actually
honour the desired LRU policy.

Diff Detail

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