posix_fadvise.2: Mention /proc/sys/vm/drop_caches

It may be helpful for the reader of this page to know about
/proc/sys/vm/drop_caches.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2017-01-26 16:08:25 +13:00
parent 6f22eabf14
commit 38ca12203c
1 changed files with 5 additions and 0 deletions

View File

@ -173,6 +173,11 @@ default size for the backing device; \fBPOSIX_FADV_SEQUENTIAL\fP doubles
this size, and \fBPOSIX_FADV_RANDOM\fP disables file readahead entirely.
These changes affect the entire file, not just the specified region
(but other open file handles to the same file are unaffected).
The contents of the kernel buffer cache can be cleared via the
.IR /proc/sys/vm/drop_caches
interface described in
.BR proc (5).
.SS C library/kernel differences
The name of the wrapper function in the C library is
.BR posix_fadvise ().