HIROSE Masaaki > Sys-PageCache > pagecache-clear.pl

Download:
Sys-PageCache-0.02.tar.gz

Annotate this POD

View/Report Bugs
Source  

NAME ^

pagecache-clear.pl - free pages are resident in memory

SYNOPSIS ^

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

DESCRIPTION ^

Free whether pages are resident in memory on arbitrary files.

OPTIONS ^

-r rate, --rate rate

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.

SEE ALSO ^

Sys::PageCache, posix_fadvise(2)

AUTHOR ^

HIROSE, Masaaki <hirose31 _at_ gmail.com>

LICENSE ^

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: