Received: by 2002:a25:d783:0:0:0:0:0 with SMTP id o125csp861801ybg; Thu, 19 Mar 2020 10:02:54 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuneK2YfFBmrH+vJXQQMosiv524p5xnT80r/geIdvEtlHd4K97YyvTpy6mkpi0OwK+y2hkG X-Received: by 2002:aca:acc2:: with SMTP id v185mr3183127oie.27.1584637373790; Thu, 19 Mar 2020 10:02:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584637373; cv=none; d=google.com; s=arc-20160816; b=X0GPo7ymGzwMUJpxFXNUYWvJM5wGsE57Xu2blgTC1kPC6bWSMcZsurrSWnngvJ2bK6 oyNMjExqOVBCbBAEw7Ntf3Jufno7UodrKNAJNVjm7Xdlj7ki1IauK+AJfONFmztiFlDY 5rHNgoz2g7zrxmhp6Rq8GYApN2C49va5ryPJXDheMlVS5cv15n1RKsJTaSBvze0ROmPp D+uJ8wBTnExsiAk6IPnnm/3Y06IFlYHIfjqRP4Jvub/Lu0DHK9pPPyUgB0A03+fNUFgG YjUXxwevifzl/hegBS4/h+CQmLPDH0yRUm32NLnduxPD2CZVGx9YVDnhJDC+xsPG4BGF tEHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=PkyumrhKl+IK4umX5VdHbEracK2b1KPBfOOKx0h6L24=; b=bxeog+G7l/Yiwamj423M7lH7P3pwbKK+dDJWUK5HWQzW+elOS54RYzCkKxtDMqdYUZ 99AJbMKnKbhcP83x3Jrf4LqT0kHmEWjx8lDnJZz/XeVNx7kYXVkoRARhxUer7RgNUgkD iIKKXS3ocXgE1MIBBeVwN6bbMqZPCpXGJI9L9p0bcbKy9cv3mvROjhxApfG/A0BGniCO 7/WFnxQxQRz1fZMJOr/DC8mBS086ncUdO+xn0seVZk3wHayTZ/03EYxhvRlkRS9vBUOe 5Av/iGYBtg7HxF6QVOPkO5ZO06/5ugsfxzfI7VmMErC6RARasrxoCLbkGcmrEzmaOYgi zPSw== 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 i133si1340905oih.80.2020.03.19.10.02.25; Thu, 19 Mar 2020 10:02:53 -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 S1727821AbgCSRCB (ORCPT + 99 others); Thu, 19 Mar 2020 13:02:01 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:38194 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727235AbgCSRCB (ORCPT ); Thu, 19 Mar 2020 13:02:01 -0400 Received: by mail-wm1-f67.google.com with SMTP id l20so3198852wmi.3 for ; Thu, 19 Mar 2020 10:01:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=PkyumrhKl+IK4umX5VdHbEracK2b1KPBfOOKx0h6L24=; b=Hz2SwNjRicfi3IsOucHdPTTPcs71bq1QKYGVXFcckF/S+Ot99gyjuC4fwT6ZKlu0g7 rsKB8AL254zDMXj1J4TE03QSCflwq9C5xaG2x1Uy+XcSthk+wQ7QO+VStgLEJW3JA4IE Ym7LAf8gX+qTH8ioVeRZ/EAdB/cmjSvhoqDGz8SGNUmxd2ROc140yYYZstwCQivD6wnR 1OVVy0r+JYQsss2Cq0WWzfk6IvIy/ByPp2nox/bGGkqnidkxjY6fyCDCmBfAqpNSdQrl LvSFw6o+eWxTS9cGFaTafSRUu3y+YP4ONV3uW75ME6SAUH565gR3JfTupeNN9i/9oQr8 riCA== X-Gm-Message-State: ANhLgQ2Q2fVBtDMqIW4LC5rs0p6Y5/FyQDzOzJczluykxM5T4UGh11t9 yX/UEZKvcYO8kCe1U9f+bVU= X-Received: by 2002:a1c:bb86:: with SMTP id l128mr4690014wmf.41.1584637319242; Thu, 19 Mar 2020 10:01:59 -0700 (PDT) Received: from localhost (ip-37-188-140-107.eurotel.cz. [37.188.140.107]) by smtp.gmail.com with ESMTPSA id z4sm3304501wrl.85.2020.03.19.10.01.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Mar 2020 10:01:58 -0700 (PDT) Date: Thu, 19 Mar 2020 18:01:52 +0100 From: Michal Hocko To: Rik van Riel Cc: Roman Gushchin , Aslan Bakirov , Andrew Morton , linux-mm@kvack.org, kernel-team@fb.com, linux-kernel@vger.kernel.org, Andreas Schaufler , Mike Kravetz , Guido =?iso-8859-1?Q?G=FCnther?= , Naresh Kamboju Subject: Re: [PATCH] mm: hugetlb: fix hugetlb_cma_reserve() if CONFIG_NUMA isn't set Message-ID: <20200319170152.GJ20800@dhcp22.suse.cz> References: <20200318153424.3202304-1-guro@fb.com> <20200318161625.GR21362@dhcp22.suse.cz> <20200318175529.GA6263@carbon.dhcp.thefacebook.com> <20200319161644.GH20800@dhcp22.suse.cz> <3f75f55dc6a9b4dfd3c6ac808c370bfd91d1554a.camel@surriel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3f75f55dc6a9b4dfd3c6ac808c370bfd91d1554a.camel@surriel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 19-03-20 12:56:34, Rik van Riel wrote: > On Thu, 2020-03-19 at 17:16 +0100, Michal Hocko wrote: > > > > This is not the first time HAVE_MEMBLOCK_NODE_MAP has been > > problematic. > > I might be missing something but I really do not get why do we really > > need it these days. As for !NUMA, I suspect we can make it generate > > the > > right thing when !NUMA. > > We're working on a different fix now. > > It looks like cma_declare_contiguous calls memblock_phys_alloc_range, > which calls memblock_alloc_range_nid, which takes a NUMA node as one > of its arguments. > > Aslan is looking at simply adding a cma_declare_contiguous_nid, which > also takes a NUMA node ID as an argument. At that point we can simply > leave CMA free to allocate from anywhere in each NUMA node, which by > default already happens from the top down. > > That should be the nicer long term fix to this issue. Yes, that sounds like a better solution. Not that I would be much happier to have HAVE_MEMBLOCK_NODE_MAP off the table as well ;) Ohh well, it will have to remain on my todo list for some longer. -- Michal Hocko SUSE Labs