--- readers.c 2001/09/24 05:35:58 1.1 +++ readers.c 2001/09/24 07:42:11 @@ -250,6 +250,11 @@ if(!mapbuf || mapbuf == MAP_FAILED) return -1; + if(madvise((caddr_t) mapbuf, len, MADV_SEQUENTIAL) < 0 && param.verbose) + perror("advising memory access pattern"); + if(madvise((caddr_t) mapbuf, len, MADV_WILLNEED) < 0 && param.verbose) + perror("advising memory access need"); + mapend = mapbuf + len; if(param.verbose > 1)