From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Mon, 16 Jan 2006 18:24:49 +0100 From: Andrea Arcangeli Subject: Re: differences between MADV_FREE and MADV_DONTNEED Message-ID: <20060116172449.GL15897@opteron.random> References: <20051102014321.GG24051@opteron.random> <1130947957.24503.70.camel@localhost.localdomain> <20051111162511.57ee1af3.akpm@osdl.org> <1131755660.25354.81.camel@localhost.localdomain> <20051111174309.5d544de4.akpm@osdl.org> <43757263.2030401@us.ibm.com> <20060116130649.GE15897@opteron.random> <43CBC37F.60002@FreeBSD.org> <20060116162808.GG15897@opteron.random> <43CBD1C4.5020002@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <43CBD1C4.5020002@FreeBSD.org> Sender: owner-linux-mm@kvack.org Return-Path: To: Suleiman Souhlal Cc: Badari Pulavarty , Andrew Morton , linux-kernel@vger.kernel.org, hugh@veritas.com, dvhltc@us.ibm.com, linux-mm@kvack.org, blaisorblade@yahoo.it, jdike@addtoit.com List-ID: On Mon, Jan 16, 2006 at 09:03:00AM -0800, Suleiman Souhlal wrote: > Andrea Arcangeli wrote: > > >We can also use it for the same purpose, we could add the pages to > >swapcache mark them dirty and zap the ptes _after_ that. > > Wouldn't that cause the pages to get swapped out immediately? Not really, it would be a non blocking operation. But they could be swapped out shortly later (that's the whole point of DONTNEED, right?), once there is more memory pressure. Otherwise if they're used again, a minor fault will happen and it will find the swapcache uptodate in ram. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org