PCU-FADVISE(1) Page Cache Utilities Manual

NAME

pcu-fadvise - predeclare an access pattern on given files

SYNOPSIS

pcu-fadvise [-a ADVICE] [-o OFFSET] [-l LENGTH] FILE...

DESCRIPTION

A command-line interface to the posix_fadvise(2) syscall to tell the kernel to optimize access patterns for specified files.

OPTIONS

-a ADVICE

File access pattern advice.

ADVICE must be one of the following:

  • normal
  • sequential
  • random
  • noreuse
  • willneed
  • dontneed

The default advice is normal.

-o OFFSET

Apply advice only to the given byte offset. This offset rounded down to the previous page offset. The default offset is zero (beginning of the file).

-l LENGTH

Apply advice only to the given length in bytes. This length is rounded up next page offset. The default is to scan the entire file.

OUTPUT

Errors only.

ENVIRONMENT

none

SEE ALSO

posix_fadvise(2)

BUGS

None known. Email pcu@librelist.com if you find any.