mirror of https://github.com/mkerrisk/man-pages
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:
parent
6f22eabf14
commit
38ca12203c
|
@ -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.
|
this size, and \fBPOSIX_FADV_RANDOM\fP disables file readahead entirely.
|
||||||
These changes affect the entire file, not just the specified region
|
These changes affect the entire file, not just the specified region
|
||||||
(but other open file handles to the same file are unaffected).
|
(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
|
.SS C library/kernel differences
|
||||||
The name of the wrapper function in the C library is
|
The name of the wrapper function in the C library is
|
||||||
.BR posix_fadvise ().
|
.BR posix_fadvise ().
|
||||||
|
|
Loading…
Reference in New Issue