Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2887339imu; Mon, 17 Dec 2018 09:23:39 -0800 (PST) X-Google-Smtp-Source: AFSGD/UqzDTFmz+NWQbwi1X6NrVRH21LiQj4wnIrEaY8y4U62cRPSicRem+yKBsTT5BG6cnbZo2/ X-Received: by 2002:a17:902:b60a:: with SMTP id b10mr12504783pls.303.1545067419015; Mon, 17 Dec 2018 09:23:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545067418; cv=none; d=google.com; s=arc-20160816; b=o8+Kf//6tHGMC11CtTRtEgsBoYqM4nY5HKJbw3+frBfqaTuRrEaq2sDgB5WWj2vu25 3pelRcjfeII3ukKToaT1BlZmCn/DXqiEFxfJsIbKGOuI4FUizKonv0RfQJm+rZbD6Fyg IGeOYZbFwk/px8SNCUBjDcCrQAAWE4PlM/y8jl5L3ELgGOlchIryMQgEKbmEIS8etYmj iLivslXXmxeQRX0VqrR7rL/M13cRZY9rpsC/96PeYfCGH/aWsAn8Ko8l2SZesBXHrpfE GuD8q4CAzI05wehCDTd3blEHny53y7GS3V/o2VzQo/dBcTICQrMzMtSeubsErZESAv6U PVUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=tHyYzAO7CDfBopYZdYv1/bgVXO4hDMaO+z2g4dkcV+8=; b=RjJO4uv2ZTQOtl8RAnS/YF5FBD95ZPWzGkVmEKX8s5/3GZ/gvJPfWBb0+pyoCBuajI gBR6BvnINbMvSkUFX+UU2XAJAoBGiz8Lgsp4oNOur6lARPh75FEnfQTtt6nx8MBkz4YJ zUPeKksCqdNGhcFglZLTatiezbQLjl+dcWxG60M1XNMiAXYJfcZnbxbjXdkHwRYyQfL0 D3qHz8DvxoVgxJ7Nn/Nz4V5FUGCkjHuHe6BAWe7j0GGRq4KgGDjbZ6MMM21J/OcMhuDK tqtRsbr8WySWC9iQQlzTJJM7+2pwi2xDMk85y9rjWwSpC4XkEZL/UnDVwkuEfVU1lvk6 6sug== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m15si11328611pgc.381.2018.12.17.09.23.23; Mon, 17 Dec 2018 09:23:38 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732955AbeLQNfT (ORCPT + 99 others); Mon, 17 Dec 2018 08:35:19 -0500 Received: from mx2.suse.de ([195.135.220.15]:43244 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1732938AbeLQNfT (ORCPT ); Mon, 17 Dec 2018 08:35:19 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 553F6ABD5; Mon, 17 Dec 2018 13:35:17 +0000 (UTC) Date: Mon, 17 Dec 2018 14:35:16 +0100 From: Michal Hocko To: David Hildenbrand Cc: Gerald Schaefer , Mikhail Zaslonko , akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Pavel.Tatashin@microsoft.com, schwidefsky@de.ibm.com, heiko.carstens@de.ibm.com Subject: Re: [PATCH v2 1/1] mm, memory_hotplug: Initialize struct pages for the full memory section Message-ID: <20181217133516.GO30879@dhcp22.suse.cz> References: <20181212172712.34019-1-zaslonko@linux.ibm.com> <20181212172712.34019-2-zaslonko@linux.ibm.com> <476a80cb-5524-16c1-6dd5-da5febbd6139@redhat.com> <20181214202315.1c685f1e@thinkpad> <20181217122812.GJ30879@dhcp22.suse.cz> <8b1bc4ff-0a30-573c-94c3-a8d943cd291c@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8b1bc4ff-0a30-573c-94c3-a8d943cd291c@redhat.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 17-12-18 14:29:04, David Hildenbrand wrote: > On 17.12.18 13:28, Michal Hocko wrote: > > On Mon 17-12-18 10:38:32, David Hildenbrand wrote: > > [...] > >> I am wondering if we should fix this on the memblock level instead than. > >> Something like, before handing memory over to the page allocator, add > >> memory as reserved up to the last section boundary. Or even when setting > >> the physical memory limit (mem= scenario). > > > > Memory initialization is spread over several places and that makes it > > really hard to grasp and maintain. I do not really see why we should > > make memblock even more special. We do intialize the section worth of > > memory here so it sounds like a proper place to quirk for incomplete > > sections. > > > > True as well. The reason I am asking is, that memblock usually takes > care of physical memory holes. Yes and no. It only reflects existing memory ranges (so yes it skips over holes) and then it provides an API that platform/arch code can abuse to cut holes into existing ranges. -- Michal Hocko SUSE Labs