Build Status Coverage Status

NAME

Sys::PageCache - handling page cache related on files

SYNOPSIS

use Sys::PageCache;

# determine whether pages are resident in memory
$r = fincore "/path/to/file";
printf("cached/total_size=%llu/%llu cached/total_pages=%llu/%llu\n",
       $r->{cached_size}, $r->{file_size},
       $r->{cached_pages}, $r->{total_pages},
   );

# free cached pages on a file
$r = fadvise "/path/to/file", 0, 0, POSIX_FADV_DONTNEED;

DESCRIPTION

Sys::PageCache is for handling page cache related on files.

METHODS

EXPORTS

AUTHOR

HIROSE Masaaki <hirose31 _at_ gmail.com>

REPOSITORY

https://github.com/hirose31/Sys-PageCache

git clone git://github.com/hirose31/Sys-PageCache.git

patches and collaborators are welcome.

SEE ALSO

mincore(2), posix_fadvise(2), https://code.google.com/p/linux-ftools/, https://github.com/nhayashi/pagecache-tool

LICENSE

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