]> git.ipfire.org Git - thirdparty/util-linux.git/commit
fadvise: new command wrapping posix_fadvise
authorMasatake YAMATO <yamato@redhat.com>
Fri, 23 Sep 2022 22:10:51 +0000 (07:10 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Sat, 1 Oct 2022 01:14:45 +0000 (10:14 +0900)
commit642e1c6994c52484b90facfeab534757d010feda
treeed9e6ede3971a9f34aba4f57a603dc80fadee8f4
parent7076703b529d255600631306419cca1b48ab850a
fadvise: new command wrapping posix_fadvise

For measuring and monitoring the performance aspect of a command,
people may want to drop the page caches related to specified files.

In some cases, writing 1 to /proc/sys/vm/drop_caches is overkill.  The
fadvise command can be used for dropping page caches related to
specified files; the impact on a system is much smaller than
/proc/sys/vm/drop_caches.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
configure.ac
misc-utils/Makemodule.am
misc-utils/fadvise.1.adoc [new file with mode: 0644]
misc-utils/fadvise.c [new file with mode: 0644]
misc-utils/meson.build
tests/commands.sh
tests/expected/fadvise/drop [new file with mode: 0644]
tests/ts/fadvise/drop [new file with mode: 0644]