Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756156AbdGKSGx (ORCPT ); Tue, 11 Jul 2017 14:06:53 -0400 Received: from resqmta-ch2-05v.sys.comcast.net ([69.252.207.37]:38726 "EHLO resqmta-ch2-05v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756067AbdGKSGw (ORCPT ); Tue, 11 Jul 2017 14:06:52 -0400 Date: Tue, 11 Jul 2017 13:06:50 -0500 (CDT) From: Christoph Lameter X-X-Sender: cl@east.gentwo.org To: Johannes Weiner cc: Michal Hocko , Andrew Morton , Vlastimil Babka , linux-mm@kvack.org, LKML Subject: Re: [PATCH] vmemmap, memory_hotplug: fallback to base pages for vmmap In-Reply-To: <20170711172623.GB961@cmpxchg.org> Message-ID: References: <20170711134204.20545-1-mhocko@kernel.org> <20170711142558.GE11936@dhcp22.suse.cz> <20170711172623.GB961@cmpxchg.org> Content-Type: text/plain; charset=US-ASCII X-CMAE-Envelope: MS4wfAevXDVeMne7AquwNvVl9174Ne2LalTpuL37TGQqSNBvD97T+4pjOTnMQBAKxMYD1xZDKRE7J0RGNLliWYay5yT0YCxZzMwc0r1uHFnraqGCJxKg76lX p5TYye0jXvdxSEmPDgAyZuO2gHJ1rxuaW600ysF6SxA7hAQV1+MuCmntGgNr8muZzW7CltBRMdyqoA7PcBH2IXvUom7zy4ftcSV2pRJr19teGnEfFPeIgQsg PAVzDZBDa3TRsYpMjNGiPbGwYhUcTVyMYkMEviNrSMmmf4f3cblddFMeMehevTX/6S9WzaJnP/oJaAgQLschYw== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 925 Lines: 22 On Tue, 11 Jul 2017, Johannes Weiner wrote: > Hi Michael, > > On Tue, Jul 11, 2017 at 04:25:58PM +0200, Michal Hocko wrote: > > Ohh, scratch that. The patch is bogus. I have completely missed that > > vmemmap_populate_hugepages already falls back to > > vmemmap_populate_basepages. I have to revisit the bug report I have > > received to see what happened apart from the allocation warning. Maybe > > we just want to silent that warning. > > Yep, this should be fixed in 8e2cdbcb86b0 ("x86-64: fall back to > regular page vmemmap on allocation failure"). > > I figure it's good to keep some sort of warning there, though, as it > could have performance implications when we fall back to base pages. If someone gets to work on it then maybe also add giant page support? We already have systems with terabytes of memory and one 1G vmemmap page would map 128G of memory leading to a significant reduction in the use of TLBs.