nocache only calls posix_fadvise( POSIX_FADV_DONTNEED ) when the file descriptor is closed, and that is too late if the file is huge and has already been read.
This limitation should be mentioned in the README, because it effectively renders nocache useless for big files.
nocache only calls posix_fadvise( POSIX_FADV_DONTNEED ) when the file descriptor is closed, and that is too late if the file is huge and has already been read.
This limitation should be mentioned in the README, because it effectively renders nocache useless for big files.
This guy was actually the one that found out about it: https://sebastian.marsching.com/blog/archives/161-Design-flaws-of-the-Linux-page-cache.html