From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Wilcox Subject: Re: [RFC 1/2] Protect larger order pages from breaking up Date: Fri, 16 Feb 2018 13:43:53 -0800 Message-ID: <20180216214353.GA32655@bombadil.infradead.org> References: <20180216160110.641666320@linux.com> <20180216160121.519788537@linux.com> <87d2edf7-ce5e-c643-f972-1f2538208d86@intel.com> <7fcd53ab-ba06-f80e-6cb7-73e87bcbdd20@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <7fcd53ab-ba06-f80e-6cb7-73e87bcbdd20@intel.com> Sender: owner-linux-mm@kvack.org To: Dave Hansen Cc: Christopher Lameter , Mel Gorman , 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, Feb 16, 2018 at 01:08:11PM -0800, Dave Hansen wrote: > On 02/16/2018 12:15 PM, Christopher Lameter wrote: > >> 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? > > There's definitely no perfect solution. > > But, in general, I think we should cater to the dumbest users. Folks > doing higher-order allocations are not that. I say we make the picture > the most clear for the traditional 4k users. Your way might be confusing -- if there's a system which is under varying amounts of jumboframe load and all the 16k pages get gobbled up by the ethernet driver, MemFree won't change at all, for example. -- 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