Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2491556ybi; Thu, 18 Jul 2019 09:12:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqxaJ4jui88c3XHV2+I/aTpV+lbAs3uq9PWcX2aYmzVS80vEspHGDKaSTU/YaLl7Fp2F344x X-Received: by 2002:a17:902:788e:: with SMTP id q14mr51414496pll.234.1563466370488; Thu, 18 Jul 2019 09:12:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563466370; cv=none; d=google.com; s=arc-20160816; b=P0YoNeFx+GmE1gIrPDjfcRGLId/WrTp1fkmxDZPtex/nmJ8ePOvY8vcLD0VaNVx7lX +Ms0UW0FlGUJb6B5n6RiiU+vV9QSSlM40fJbOBngha3XMK4MzjFP4aWiQa9bjIuoFElx ELm/a4mX2vMtX9wc1sZqCNFqECaIw5z1yjGoKZOqLQIBpR2u4UjCd3qeGDVObJr8ravO bDarmmPjh4KGlaMe2po054GbBRO/wE+aSDy04/bvfnAOhntIpQUSqmASNOtFntdL9uv9 XJOrtz+iAxVDKStwu4Fj+T8TZBzcZ4LYwmaBw9B1Bz5Jif6JmDM1rYzPI5ARayAZKEgq WgWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=3obEXF97WrsMpoUnrYdgG1Tyxfg+JoWnkuCsTAUEfHc=; b=KsHeqkFRswl5Xxqx3afc7uKa81JlPDYLe+PRxDhONZ7qAquO6abf+I/kvRctSPgZ3v anITVBnootOxgADwHYFysQk7JnhQdBygpF++GpjVvjoqmCsSFt2yb6n2Hus1X4oFsDpU A1cN/WR/tEMVDgq/TeI0coMPgOZs6Jy7BdKKA1QMZ5GQFq6Vi5WAjnWTpu3V3TD/xrST i4zL5nBrYXs/tEHaTL6g1zq1qAZlEsm/zFV9aXfx3uOTwBDKub6+xCaviY2J8Al2JVbK W7zJmtNoMYcqqLsC/MAgI1+zm2rI4a5ocisO4Ndwj6cozEXLiJWdRMTHXyTItFXKw3NS BOtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@soleen.com header.s=google header.b=nnb8r1VU; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 3si25697627plz.57.2019.07.18.09.12.34; Thu, 18 Jul 2019 09:12:50 -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; dkim=pass header.i=@soleen.com header.s=google header.b=nnb8r1VU; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730256AbfGRQLj (ORCPT + 99 others); Thu, 18 Jul 2019 12:11:39 -0400 Received: from mail-ed1-f66.google.com ([209.85.208.66]:47056 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726040AbfGRQLi (ORCPT ); Thu, 18 Jul 2019 12:11:38 -0400 Received: by mail-ed1-f66.google.com with SMTP id d4so30872604edr.13 for ; Thu, 18 Jul 2019 09:11:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=soleen.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3obEXF97WrsMpoUnrYdgG1Tyxfg+JoWnkuCsTAUEfHc=; b=nnb8r1VUxoT6Rh7UeZIiyvzQQn0SURlNnsdRcOMXX44NSPsaHqRzm9+BeyWexTq/oK 98G5MVKnJIUPNWlSW8LoCOppPVI1fyXgjw5MSgUIrawtI1raTD5tKRhgZSMmE1UJromJ JREvbh0Pub5P6qZwdP8UlTPAVo8NsB6Ycrw7u2aDcUEaNSRh0gTllpY7sBURLVHjg9+e vLMXQz1To95LrzSRCyx7wgBwAb40UW1Sx+H/KUFdPi2alc6fxxUiXC1N2xS0o6KMM0MR 1J5XUiJ8pwJjJk5G10IHEWpfRfXIbnqd8BFcqGMOAHG+lTa4Xjr6sOR7Omu7U8OIPGry jF2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3obEXF97WrsMpoUnrYdgG1Tyxfg+JoWnkuCsTAUEfHc=; b=JGyXMGCOweZfH1pvbUNYpsPZsLLfXbSwk2D5G4PES1S48hpHnkr3RnRBPJmxX21f++ wwPz3oBbLUwKKh6U+cEL6QFXuFM+aUAlc/VlI5C8sX6rfSLu4RqMA657eLJDnI1xoniK BzqxdWnPZjdLbj6H5JFGhy6LItpG/yQ6iYVl10ykCzGZyGGrygVOSvXj6RwcCrtuJ6DK IRxjMPslQ8ycuH4f7OobLGfc9jyrM/+FEGYANRfvzWVQfunv3rDghrd/dr8R/nwlw5UM REmrbqeLey6TuAw5Hd0otb+KthSWJklqbWZ9SFwOT0s3YPqiwa7KBs7OdJvM3fcHtXvu QaGw== X-Gm-Message-State: APjAAAUZlEw5mOIlrTzo3tZ4uW9vJr8ch9iAMYPpdgBVvdQZU28hTmiw SWgIDUY8AePeRlUXC9+oRM0VIb53m5CjWx2JcSg= X-Received: by 2002:a50:922a:: with SMTP id i39mr41307612eda.219.1563466296738; Thu, 18 Jul 2019 09:11:36 -0700 (PDT) MIME-Version: 1.0 References: <20190718024133.3873-1-leonardo@linux.ibm.com> <1563430353.3077.1.camel@suse.de> <0e67afe465cbbdf6ec9b122f596910cae77bc734.camel@linux.ibm.com> <20190718155704.GD30461@dhcp22.suse.cz> In-Reply-To: <20190718155704.GD30461@dhcp22.suse.cz> From: Pavel Tatashin Date: Thu, 18 Jul 2019 12:11:25 -0400 Message-ID: Subject: Re: [PATCH 1/1] mm/memory_hotplug: Adds option to hot-add memory in ZONE_MOVABLE To: Michal Hocko Cc: Leonardo Bras , Oscar Salvador , LKML , linux-mm , Greg Kroah-Hartman , "Rafael J. Wysocki" , Andrew Morton , Mike Rapoport , Pavel Tatashin , =?UTF-8?B?SsOpcsO0bWUgR2xpc3Nl?= , Thomas Gleixner , Pasha Tatashin , Bartlomiej Zolnierkiewicz Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 It is just strange that we have a config to online memory by default without kernel parameter, but no way to specify how to online it. It just looks as incomplete interface to me. Perhaps this config should be removed as well? Pasha