Subject: Re: RAW access to files
To: der Mouse <mouse@Rodents.Montreal.QC.CA>
From: Jason R Thorpe <thorpej@wasabisystems.com>
List: tech-kern
Date: 12/12/2001 12:15:18
On Wed, Dec 12, 2001 at 02:51:44PM -0500, der Mouse wrote:

 > Isn't that what madvise(MADV_FREE) is for?

MADV_FREE doesn't clean the pages if they are dirty.  If you want the
dirty pages to be cleaned, you need to use MADV_DONTNEED.

-- 
        -- Jason R. Thorpe <thorpej@wasabisystems.com>