From 38ca12203cadde954add65411120ff07f70ef01e Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Thu, 26 Jan 2017 16:08:25 +1300 Subject: [PATCH] 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 --- man2/posix_fadvise.2 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/man2/posix_fadvise.2 b/man2/posix_fadvise.2 index 9305ddea9..af55c206f 100644 --- a/man2/posix_fadvise.2 +++ b/man2/posix_fadvise.2 @@ -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 ().