From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Lameter Subject: Re: [RFC 1/2] Protect larger order pages from breaking up Date: Fri, 16 Feb 2018 14:15:26 -0600 (CST) Message-ID: References: <20180216160110.641666320@linux.com> <20180216160121.519788537@linux.com> <87d2edf7-ce5e-c643-f972-1f2538208d86@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <87d2edf7-ce5e-c643-f972-1f2538208d86@intel.com> Sender: owner-linux-mm@kvack.org To: Dave Hansen Cc: Mel Gorman , Matthew Wilcox , linux-mm@kvack.org, linux-rdma@vger.kernel.org, akpm@linux-foundation.org, Thomas Schoebel-Theuer , andi@firstfloor.org, Rik van Riel , Michal Hocko , Guy Shattah , Anshuman Khandual , Michal Nazarewicz , Vlastimil Babka , David Nellans , Laura Abbott , Pavel Machek , Mike Kravetz List-Id: linux-rdma@vger.kernel.org On Fri, 16 Feb 2018, Dave Hansen wrote: > On 02/16/2018 08:01 AM, Christoph Lameter wrote: > > In order to make this work just right one needs to be able to > > know the workload well enough to reserve the right amount > > of pages. This is comparable to other reservation schemes. > > Yes, but it's a reservation scheme that doesn't show up in MemFree, for > instance. Even hugetlbfs-reserved memory subtracts from that. Ok. There is the question if we can get all these reservation schemes under one hood instead of having page order specific ones in subsystems like hugetlb. > This has the potential to be really confusing to apps. If this memory > is now not available to normal apps, they might plow into the invisible > memory limits and get into nasty reclaim scenarios. > Shouldn't this subtract the memory for MemFree and friends? Ok certainly we could do that. But on the other hand the memory is available if those subsystems ask for the right order. Its not clear to me what the right way of handling this is. Right now it adds the reserved pages to the watermarks. But then under some circumstances the memory is available. What is the best solution here? -- 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