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
Unknown Object (File)
Dec 20 2023, 8:15 AM
Unknown Object (File)
Dec 14 2023, 8:17 PM
Unknown Object (File)
Nov 7 2023, 5:36 AM
Unknown Object (File)
Oct 6 2023, 4:34 AM
Unknown Object (File)
Aug 16 2023, 6:35 AM
Unknown Object (File)
Aug 10 2023, 6:17 PM
Unknown Object (File)
Aug 10 2023, 6:10 PM
Unknown Object (File)
Aug 10 2023, 6:09 PM
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