pagecache-clear.pl - free pages are resident in memory
pagecache-clear.pl [-r rate] file [file ...]
pagecache-clear.pl -h | --help | -?
$ pagecache-clear.pl foo foo : before cached/total_size=36864/36558 cached/total_pages=9/9 after cached/total_size=0/36558 cached/total_pages=0/9 $ pagecache-clear.pl -r 0.7 foo foo : before cached/total_size=36864/36558 cached/total_pages=9/9 after cached/total_size=8192/36558 cached/total_pages=2/9
Free whether pages are resident in memory on arbitrary files.
Rate to free. "-r 0.5" frees pages that 50% of file size from beginning of a file. pagecache-clear.pl try to free all pages if not specified this -r option.
Sys::PageCache, posix_fadvise(2)
HIROSE, Masaaki <hirose31 _at_ gmail.com>
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Sys::PageCache, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Sys::PageCache
CPAN shell
perl -MCPAN -e shell install Sys::PageCache
For more information on module installation, please visit the detailed CPAN module installation guide.