Mono Class Library: Mono.Unix.Native Namespace

Mono.Unix.Native.PosixMadviseAdvice Enumeration

Possible Syscall.posix_madviseadvice values. [Edit]
[System.CLSCompliant(false)]
public enum PosixMadviseAdvice

See Also

Syscall.posix_madvise

Remarks

[Edit]

Members

Member NameDescription
POSIX_MADV_DONTNEEDAllows the VM system to decrease the in-memory priority of pages in the specified range. Additionally future references to this address range will incur a page fault. [Edit]
POSIX_MADV_NORMALTells the system to revert to the default paging behavior. [Edit]
POSIX_MADV_RANDOMIs a hint that pages will be accessed randomly, and prefetching is likely not advantageous. [Edit]
POSIX_MADV_SEQUENTIALCauses the VM system to depress the priority of pages immediately preceding a given page when it is faulted in. [Edit]
POSIX_MADV_WILLNEEDCauses pages that are in a given virtual address range to temporarily have higher priority, and if they are in memory, decrease the likelihood of them being freed. Additionally, the pages that are already in memory will be immediately mapped into the process, thereby eliminating unnecessary overhead of going through the entire process of faulting the pages in. This WILL NOT fault pages in from backing store, but quickly map the pages already in memory into the calling process. [Edit]

Requirements

Namespace: Mono.Unix.Native
Assembly: Mono.Posix (in Mono.Posix.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0