From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f54.google.com (mail-wm0-f54.google.com [74.125.82.54]) by kanga.kvack.org (Postfix) with ESMTP id DBCA16B0258 for ; Sat, 5 Dec 2015 06:10:45 -0500 (EST) Received: by wmww144 with SMTP id w144so90187173wmw.1 for ; Sat, 05 Dec 2015 03:10:45 -0800 (PST) Received: from atrey.karlin.mff.cuni.cz (atrey.karlin.mff.cuni.cz. [195.113.26.193]) by mx.google.com with ESMTP id q9si24299883wjz.241.2015.12.05.03.10.44 for ; Sat, 05 Dec 2015 03:10:44 -0800 (PST) Date: Sat, 5 Dec 2015 12:10:42 +0100 From: Pavel Machek Subject: Re: [PATCH v2 00/13] MADV_FREE support Message-ID: <20151205111042.GA11598@amd> References: <1446600367-7976-1-git-send-email-minchan@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1446600367-7976-1-git-send-email-minchan@kernel.org> Sender: owner-linux-mm@kvack.org List-ID: To: Minchan Kim Cc: Andrew Morton , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Michael Kerrisk , linux-api@vger.kernel.org, Hugh Dickins , Johannes Weiner , Rik van Riel , Mel Gorman , KOSAKI Motohiro , Jason Evans , Daniel Micay , "Kirill A. Shutemov" , Shaohua Li , Michal Hocko , yalin.wang2010@gmail.com On Wed 2015-11-04 10:25:54, Minchan Kim wrote: > MADV_FREE is on linux-next so long time. The reason was two, I think. > > 1. MADV_FREE code on reclaim path was really mess. Could you explain what MADV_FREE does? Comment in code says 'free the page only when there's memory pressure'. So I mark my caches MADV_FREE, no memory pressure, I can keep using it? And if there's memory pressure, what happens? I get zeros? SIGSEGV? Thanks, Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html -- 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