From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx169.postini.com [74.125.245.169]) by kanga.kvack.org (Postfix) with SMTP id 3D9246B0083 for ; Tue, 11 Dec 2012 02:18:03 -0500 (EST) Date: Tue, 11 Dec 2012 08:17:42 +0100 From: Mike Hommey Subject: Re: [RFC v3] Support volatile range for anon vma Message-ID: <20121211071742.GA26598@glandium.org> References: <1355193255-7217-1-git-send-email-minchan@kernel.org> <20121211024104.GA10523@blaptop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20121211024104.GA10523@blaptop> Sender: owner-linux-mm@kvack.org List-ID: To: Minchan Kim Cc: Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Michael Kerrisk , Arun Sharma , sanjay@google.com, Paul Turner , David Rientjes , John Stultz , Christoph Lameter , Android Kernel Team , Robert Love , Mel Gorman , Hugh Dickins , Dave Hansen , Rik van Riel , Dave Chinner , Neil Brown , Taras Glek , KOSAKI Motohiro , KAMEZAWA Hiroyuki On Tue, Dec 11, 2012 at 11:41:04AM +0900, Minchan Kim wrote: > - What's the madvise(addr, length, MADV_VOLATILE)? > > It's a hint that user deliver to kernel so kernel can *discard* > pages in a range anytime. > > - What happens if user access page(ie, virtual address) discarded > by kernel? > > The user can see zero-fill-on-demand pages as if madvise(DONTNEED). What happened to getting SIGBUS? Mike -- 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