Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2523409ybi; Thu, 18 Jul 2019 09:41:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqyHE7peea3RKJ3jGVTV9JGa2jKi++Uov7nwQkphgcXb60l8HRWc9xN1db22XjORllN7KCKi X-Received: by 2002:a63:593:: with SMTP id 141mr47662700pgf.78.1563468118913; Thu, 18 Jul 2019 09:41:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563468118; cv=none; d=google.com; s=arc-20160816; b=urDsW8+clbO57ZMwIOBVKFFlX7hZKhECHo6+QnASRA100EGe12O5aPwi5nRxPuCc3U i4nuWVxCStwdN+MkJUC8NbtDgCvCZgm2npAbyd4H66pktwwrTnMoChU7tJue8yLABkjK VsBWyf4VXVe62ljGaPODwSTwKgFIFgqGzQFamPWBDXoAx3M7f7yq8JWZQ4AUzlosPprC baq2bpAB6bvSEGO1Cl55UWcYZ4KLRlT1XR5pyxdJbF2wzEzaxGTiTGD/Qz0Ip8EbyVd8 05BJsUU/09viIOOJfXf6AjYLPyE1K+H4LA56Oe4xAfoF+g7B2A8x6bF5mowWlZ26g+LM k7dg== 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=Da3G7LpOehglJSLF7wForjwsDEQFbruvA+yCYqnq9VA=; b=VDbcF/2+FrJifffEBExAgatIns/D2kao+A18kpqIl8i4pdEt5Srcl8R0/pnv5dZFZx ZsCJIlcd/uNEbxhfxIghDe8J1msg4cogNjkTzIO2Ewob9kB9xQx0hXbh5gDvuM0m5ZK7 fzhiNXBw7MiOXTBqdQ/Puy9JPZzCYJCHC9uy9oy/ZToAV0FT1es1/Uu9dlg7AjGvg5Hj LoyvJOjH/9zByCUSowJeRmjMyCe4l0LM6Tenj+YVnYq0nF0S/9IMcpoIQMX7KpbRGtI5 3a84KJ+td0b0hRa49wVQz8QLoTY4zfqz6NaK348dZk6CAZ5CGMf0D2wQo4ADA8BCNHOO DZlQ== 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 f1si7322plf.410.2019.07.18.09.41.43; Thu, 18 Jul 2019 09:41:58 -0700 (PDT) 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 S2388083AbfGRQkq (ORCPT + 99 others); Thu, 18 Jul 2019 12:40:46 -0400 Received: from mx2.suse.de ([195.135.220.15]:42146 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727762AbfGRQkq (ORCPT ); Thu, 18 Jul 2019 12:40:46 -0400 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 F0A6CAD07; Thu, 18 Jul 2019 16:40:44 +0000 (UTC) Date: Thu, 18 Jul 2019 18:40:43 +0200 From: Michal Hocko To: Pavel Tatashin Cc: Leonardo Bras , Oscar Salvador , LKML , linux-mm , Greg Kroah-Hartman , "Rafael J. Wysocki" , Andrew Morton , Mike Rapoport , Pavel Tatashin , =?iso-8859-1?B?Suly9G1l?= Glisse , Thomas Gleixner , Pasha Tatashin , Bartlomiej Zolnierkiewicz Subject: Re: [PATCH 1/1] mm/memory_hotplug: Adds option to hot-add memory in ZONE_MOVABLE Message-ID: <20190718164043.GE30461@dhcp22.suse.cz> References: <20190718024133.3873-1-leonardo@linux.ibm.com> <1563430353.3077.1.camel@suse.de> <0e67afe465cbbdf6ec9b122f596910cae77bc734.camel@linux.ibm.com> <20190718155704.GD30461@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Thu 18-07-19 12:11:25, Pavel Tatashin wrote: > On Thu, Jul 18, 2019 at 11:57 AM Michal Hocko wrote: > > > > On Thu 18-07-19 12:50:29, Leonardo Bras wrote: > > > On Thu, 2019-07-18 at 08:12 +0200, Oscar Salvador wrote: > > > > We do already have "movable_node" boot option, which exactly has that > > > > effect. > > > > Any hotplugged range will be placed in ZONE_MOVABLE. > > > Oh, I was not aware of it. > > > > > > > Why do we need yet another option to achieve the same? Was not that > > > > enough for your case? > > > Well, another use of this config could be doing this boot option a > > > default on any given kernel. > > > But in the above case I agree it would be wiser to add the code on > > > movable_node_is_enabled() directly, and not where I did put. > > > > > > What do you think about it? > > > > No further config options please. We do have means a more flexible way > > to achieve movable node onlining so let's use it. Or could you be more > > specific about cases which cannot use the command line option and really > > need a config option to workaround that? > > Hi Michal, > > Just trying to understand, if kernel parameters is the preferable > method, why do we even have > > MEMORY_HOTPLUG_DEFAULT_ONLINE I have some opinion on this one TBH. I have even tried to remove it. The config option has been added to workaround hotplug issues for some memory balloning usecases where it was believed that the memory consumed for the memory hotadd (struct pages) could get machine to OOM before userspace manages to online it. So I would be more than happy to remove it but there were some objections in the past. Maybe the work by Oscar to allocate memmaps from the hotplugged memory can finally put an end to this gross hack. In any case, I do not think we want to repeat that pattern again. -- Michal Hocko SUSE Labs