Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Nov 2005 19:37:41 -0500
From:      Mikhail Teterin <mi+mx@aldan.algebra.com>
To:        questions@freebsd.org
Subject:   does madvise() have effect on mmap-ed regions?
Message-ID:  <200511181937.41380.mi%2Bmx@aldan.algebra.com>

next in thread | raw e-mail | index | archive | help
Would something like `fgrep --mmap' benefit from madvise-ing the kernel, that 
the mmap-ed region (the input file) will be used sequentionally 
(MADV_SEQUENTIONAL) and covering the already searched parts with 
MADV_DONTNEED|MADV_FREE?

Thanks!

	-mi



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200511181937.41380.mi%2Bmx>