I have a C program that runs only weekly, and reads a large amount of files only once. Since Linux also caches everything that\'s read, they fill up the cac
You can use posix_fadvise() with the POSIX_FADV_DONTNEED advice to request that the system free the pages you've already read.
POSIX_FADV_DONTNEED