Re: [PATCH] Don't needlessly dirty mlocked pages when initially faulting them in.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andrew Morton
Date: Thursday, July 26, 2007 - 5:23 pm

On Thu, 26 Jul 2007 16:52:44 -0700 Suleiman Souhlal <ssouhlal@FreeBSD.org> wrote:


ugh, how bad of us.


We pass in "write=1" to force a COW.  This is because we want to do all
that memory allocation at mlock()-time, not later on, when the app writes
to the page.


So something sterner will need to be done.  I guess the write_access arg to
handle_mm_fault() would need to become a three-value thing.

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

Messages in current thread:
Re: [PATCH] Don't needlessly dirty mlocked pages when init ..., Andrew Morton, (Thu Jul 26, 5:23 pm)
Re: [PATCH] mm: avoid dirtying shared mappings on mlock, Nick Piggin, (Thu Oct 11, 10:07 am)
Re: [PATCH] mm: avoid dirtying shared mappings on mlock, Nick Piggin, (Thu Oct 11, 11:14 am)
Re: [PATCH] Don't needlessly dirty mlocked pages when init ..., Suleiman Souhlal, (Thu Oct 11, 11:50 pm)
[PATCH] mm: avoid dirtying shared mappings on mlock, Peter Zijlstra, (Fri Oct 12, 2:03 am)
Re: [PATCH] mm: avoid dirtying shared mappings on mlock, Peter Zijlstra, (Fri Oct 12, 3:37 am)
Re: [PATCH] mm: avoid dirtying shared mappings on mlock, Peter Zijlstra, (Fri Oct 12, 3:50 am)
Re: [PATCH] mm: avoid dirtying shared mappings on mlock, Arjan van de Ven, (Fri Oct 12, 7:53 am)
Re: [PATCH] mm: avoid dirtying shared mappings on mlock, Peter Zijlstra, (Fri Oct 12, 7:58 am)
Re: [PATCH] mm: avoid dirtying shared mappings on mlock, Suleiman Souhlal, (Fri Oct 12, 10:45 am)
Re: [PATCH] mm: avoid dirtying shared mappings on mlock, Arjan van de Ven, (Fri Oct 12, 10:53 am)
Re: [PATCH] mm: avoid dirtying shared mappings on mlock, Peter Zijlstra, (Fri Oct 12, 11:02 am)