From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Machek Subject: Re: [PATCH v2 00/13] MADV_FREE support Date: Sat, 5 Dec 2015 12:10:42 +0100 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 Return-path: Content-Disposition: inline In-Reply-To: <1446600367-7976-1-git-send-email-minchan@kernel.org> Sender: owner-linux-mm@kvack.org 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 List-Id: linux-api@vger.kernel.org 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