Name: noca (from NOCAche) Author: Catali(ux) M. BOIE - catab at embedromix dot ro Start date: 31.05.2004 Description: Prevents the pagecache to fill with data that we know we need it only once. How it works: The noca shared library is preloaded is it hooks read, lseek and close. In this functions, if some conditions are met, they trigger an fadvise call. Examples: - extract a big archive: noca tar xzvf aaa.tar.gz - see a movie noca mplayer movie.avi - process a file (grep, sed on it) noca grep WORD BIG_FILE.txt Installation: - make - make install Files: noca.c - the main shared library that take over: - read - lseek - close fillmem.c - a small program that allocates 256MB of memory and then exits. I use it to free the pagecache. noca_file.c - If you pass a file as parameter it will evict that file from the page cache.