From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx196.postini.com [74.125.245.196]) by kanga.kvack.org (Postfix) with SMTP id 9FF286B0006 for ; Thu, 11 Apr 2013 11:01:14 -0400 (EDT) Received: by mail-vb0-f54.google.com with SMTP id w16so1335761vbf.13 for ; Thu, 11 Apr 2013 08:01:13 -0700 (PDT) Message-ID: <5166D037.6040405@gmail.com> Date: Thu, 11 Apr 2013 11:01:11 -0400 From: KOSAKI Motohiro MIME-Version: 1.0 Subject: Re: [RFC v7 00/11] Support vrange for anonymous page References: <1363073915-25000-1-git-send-email-minchan@kernel.org> <5165CA22.6080808@gmail.com> <20130411065546.GA10303@blaptop> <5166643E.6050704@gmail.com> <20130411080243.GA12626@blaptop> <5166712C.7040802@gmail.com> <20130411083146.GB12626@blaptop> In-Reply-To: <20130411083146.GB12626@blaptop> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Minchan Kim Cc: KOSAKI Motohiro , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Michael Kerrisk , Arun Sharma , John Stultz , Mel Gorman , Hugh Dickins , Dave Hansen , Rik van Riel , Neil Brown , Mike Hommey , Taras Glek , KOSAKI Motohiro , KAMEZAWA Hiroyuki , Jason Evans , sanjay@google.com, Paul Turner , Johannes Weiner , Michel Lespinasse , Andrew Morton >>>> and adding new syscall invokation is unwelcome. >>> >>> Sure. But one more system call could be cheaper than page-granuarity >>> operation on purged range. >> >> I don't think vrange(VOLATILE) cost is the related of this discusstion. >> Whether sending SIGBUS or just nuke pte, purge should be done on vmscan, >> not vrange() syscall. > > Again, please see the MADV_FREE. http://lwn.net/Articles/230799/ > It does changes pte and page flags on all pages of the range through > zap_pte_range. So it would make vrange(VOLASTILE) expensive and > the bigger cost is, the bigger range is. This haven't been crossed my mind. now try_to_discard_one() insert vrange for making SIGBUS. then, we can insert pte_none() as the same cost too. Am I missing something? I couldn't imazine why pte should be zapping on vrange(VOLATILE). -- 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