-
Notifications
You must be signed in to change notification settings - Fork 601
Open
Labels
Description
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.