Skip to content

Provide access to posix_fadvise #17899

@rdiez

Description

@rdiez

Copying large files effectively flushes the Linux filesystem cache, which has an impact on the overall system performance. I have written about this in the past:

The Linux Filesystem Cache is Braindead

One way to workaround this issue is to call posix_fadvise( POSIX_FADV_NOREUSE ) . Unfortunately, Perl does not provide easy access to this routine. You need to download an extra module like Sys::PageCache. But that module uses mincore, which looks specific to Linux.

I would like to see this routine accessible through the POSIX core module. After all, that call is defined in the POSIX standard. This way, it should be available on many more platforms than just Linux.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions