Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754638AbbLELKr (ORCPT ); Sat, 5 Dec 2015 06:10:47 -0500 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:47748 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753771AbbLELKq (ORCPT ); Sat, 5 Dec 2015 06:10:46 -0500 Date: Sat, 5 Dec 2015 12:10:42 +0100 From: Pavel Machek 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 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> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 833 Lines: 23 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 from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/