Re: [PATCH] lazy freeing of memory through MADV_FREE 2/2

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Hugh Dickins
Date: Saturday, April 21, 2007 - 12:37 am

On Fri, 20 Apr 2007, Ulrich Drepper wrote:

Not exactly.  The Linux MADV_DONTNEED never throws away data from a
PROT_WRITE,MAP_SHARED mapping (or shm) - it propagates the dirty bit,
the page will eventually get written out to file, and can be retrieved
later by subsequent access.  But the Linux MADV_DONTNEED does throw away
data from a PROT_WRITE,MAP_PRIVATE mapping (or brk or stack) - those
changes are discarded, and a subsequent access will revert to zeroes
or the underlying mapped file.  Been like that since before 2.4.0.

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] lazy freeing of memory through MADV_FREE, Rik van Riel, (Tue Apr 17, 12:15 am)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Andrew Morton, (Fri Apr 20, 1:57 pm)
Re: [PATCH] lazy freeing of memory through MADV_FREE 2/2, Andrew Morton, (Fri Apr 20, 2:03 pm)
Re: [PATCH] lazy freeing of memory through MADV_FREE 2/2, Ulrich Drepper, (Fri Apr 20, 2:24 pm)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Rik van Riel, (Fri Apr 20, 2:38 pm)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Andrew Morton, (Fri Apr 20, 3:06 pm)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Rik van Riel, (Fri Apr 20, 4:52 pm)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Eric Dumazet, (Fri Apr 20, 5:48 pm)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Rik van Riel, (Fri Apr 20, 8:58 pm)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Jakub Jelinek, (Sat Apr 21, 12:12 am)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Hugh Dickins, (Sat Apr 21, 12:24 am)
Re: [PATCH] lazy freeing of memory through MADV_FREE 2/2, Hugh Dickins, (Sat Apr 21, 12:37 am)
Re: [PATCH] lazy freeing of memory through MADV_FREE 2/2, Ulrich Drepper, (Sat Apr 21, 9:32 am)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Rik van Riel, (Sat Apr 21, 11:06 am)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Nick Piggin, (Sat Apr 21, 7:36 pm)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Nick Piggin, (Sat Apr 21, 7:50 pm)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Rik van Riel, (Sat Apr 21, 11:31 pm)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Andrew Morton, (Sun Apr 22, 1:18 am)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Christoph Hellwig, (Sun Apr 22, 2:16 am)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Ulrich Drepper, (Sun Apr 22, 9:55 am)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Nick Piggin, (Sun Apr 22, 5:16 pm)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Rik van Riel, (Sun Apr 22, 8:53 pm)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Nick Piggin, (Sun Apr 22, 8:58 pm)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Rik van Riel, (Sun Apr 22, 8:59 pm)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Rik van Riel, (Sun Apr 22, 9:28 pm)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Nick Piggin, (Sun Apr 22, 9:36 pm)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Rik van Riel, (Mon Apr 23, 2:20 am)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Nick Piggin, (Mon Apr 23, 3:07 am)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Rik van Riel, (Mon Apr 23, 3:12 am)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Nick Piggin, (Mon Apr 23, 3:21 am)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Rik van Riel, (Mon Apr 23, 3:31 am)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Nick Piggin, (Mon Apr 23, 3:35 am)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Jakub Jelinek, (Mon Apr 23, 3:44 am)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Rik van Riel, (Mon Apr 23, 3:44 am)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Rik van Riel, (Mon Apr 23, 4:45 am)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Nick Piggin, (Mon Apr 23, 6:15 pm)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Rik van Riel, (Mon Apr 23, 6:58 pm)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Nick Piggin, (Mon Apr 23, 7:16 pm)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Rik van Riel, (Mon Apr 23, 7:53 pm)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Andrew Morton, (Mon Apr 23, 8:08 pm)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Paul Mackerras, (Mon Apr 23, 9:42 pm)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Rik van Riel, (Mon Apr 23, 10:13 pm)