Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp588544pxb; Tue, 19 Oct 2021 08:56:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXbhr1dbSIrBE05fCZA7//PdMExJjZnzKFFqp0Kfg5hhNcKeOHWoANbkPqtm8aZ4dkemJo X-Received: by 2002:a17:90b:33c7:: with SMTP id lk7mr682008pjb.172.1634659004882; Tue, 19 Oct 2021 08:56:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634659004; cv=none; d=google.com; s=arc-20160816; b=WmDt13rKQ0s7Eaq/7YaaLLjsCiP+FTfkpVk9qdd6og4o2Ss+GoyuNJf3C3Ptz2reYX TR6Fe2BxSPx7ZxAJ5r+oWvIwNaZFeRPnTOvY+58GXo+L1RzDkvL8OqrMEXORPP1zScQV ql5Di80co5pont5X8qIolkoc0NMCfq4rvdhV0fpfgzyPUHI0FU/KOPSKckdeu4dzQEQl Fp6tLVgP24SAhtDsygYkmuYbLqyo7pZ/k2N/7D2jVScyAy0y2IJdu/9tNO7ObCDiTGOc OPSh1LysK/LkIrAymRE77yhFA5j7Fp7ER6fb5OiVQ/rIC5Kru5AMDLVknnikD63+3b5D J73A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=SQ+A4NQkpvXDSEUSuSg9ZjNkNFu0PsTaZnbtgFfG3Q0=; b=E721qMI0jmgq2c/vOE6Pdd/I94sOA5mGQ75MY6jCiYL2OnYc0gogoLPfNBmkKmLS4r y5DSVNwCjpWcmwd+r/AjUUUO3RIHpOuFbn/YftSde7WUBSg3QxGdJxcAZ4++wt2gzl1B 9uaqah98XjYpkun79G17fBXb9hQGX27jjYI4AjgMB1SIAm6v+j3HbgQsBcj0GWk4txSD 1etv/i5BA5e+BPAbk1tPwwqi83ivhB5TQ2SHxc06ztRkbY07JPmp8gvPzy97SWrf7ZwJ WWc+s6hMH/ACpDyFPaFuI0zJdmTAq4NS4wwERBb5TlkKN/2t7K/UZmjMxpaA6xCKphPK ZmXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=A7Y67U9s; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f4si986571pgl.598.2021.10.19.08.56.32; Tue, 19 Oct 2021 08:56:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=A7Y67U9s; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232170AbhJSP4Z (ORCPT + 99 others); Tue, 19 Oct 2021 11:56:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229991AbhJSP4Z (ORCPT ); Tue, 19 Oct 2021 11:56:25 -0400 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CEF5CC06161C for ; Tue, 19 Oct 2021 08:54:11 -0700 (PDT) Received: by mail-lf1-x12c.google.com with SMTP id t9so8555088lfd.1 for ; Tue, 19 Oct 2021 08:54:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=SQ+A4NQkpvXDSEUSuSg9ZjNkNFu0PsTaZnbtgFfG3Q0=; b=A7Y67U9scji6kEWrogwR4V0Fjid80lnQNc1nyv8OO6sOAgMWUpGpqKF9/DNvA+7p+k bceomJ5SO5db0eZbkDCiLj/CfRE07YlzT2FT37zzBM9VhBlZMVcAb47xvx0Z7GYnb3Ox CMZpNXu+H4rba5Lymr4CRITFWHp9DArMOyhFXS7XvtWSOEV3wHbFoVB5jnvFfhlQnAMv N2Wat3/P3dDaficXJtS9q/zFFZD3IKpaFq8IsTLaeHrCneM6/JL/oBx9YqfZj+VB4ecH vbgHRlx9AvaEIXev7qn+ndXrh4H0ONb5LSurVqF7KCcKmWdnV72ZSWhvZG0jveo0pOf2 RpgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=SQ+A4NQkpvXDSEUSuSg9ZjNkNFu0PsTaZnbtgFfG3Q0=; b=2Oek9bGET1nrJs5s1Qq0IiPSTrvzMkJZRwXJVS52GhA8Uj1BSPxUiF6PJvo7lWde9B KvLrGg5/kg9sAffM/V9A7yPnWMlhi4jMQHRW23hKprR74MyD4iZdIWklBRmDHv6YW8Ux x/8jxwoLqVgNbJpdc16b/VPPES3CvmuERJeHdxx7H8WShw5H1bY7yg1ZjJNgrts+w3XY UW8JSseUcR9uww9drH2gKqkPjBbjGccHxGDfDEYaVkbkRxd9i/jlv53wigWSrwvk2WmO J8CrE3Jzk6zWvZ94y1c0t00hg/97+9OSr1rQXR4w4GJSJZj+JaovcqyyhLt9M9RDN8qI 25cg== X-Gm-Message-State: AOAM531O5n6kFWk7PZqfu7TRK9r1pvEuCXqtYx1x8FXwV3kBU99+yniq A0hw0sUHoQUZUs/TpA2mE6a7gI5hRxXgH+ysqg8xwQ== X-Received: by 2002:ac2:5e3c:: with SMTP id o28mr6653219lfg.184.1634658849968; Tue, 19 Oct 2021 08:54:09 -0700 (PDT) MIME-Version: 1.0 References: <20211018123710.1540996-1-chenwandun@huawei.com> <20211018123710.1540996-2-chenwandun@huawei.com> In-Reply-To: From: Shakeel Butt Date: Tue, 19 Oct 2021 08:53:58 -0700 Message-ID: Subject: Re: [PATCH v2 1/2] mm/vmalloc: fix numa spreading for large hash tables To: Matthew Wilcox Cc: Chen Wandun , Andrew Morton , Nicholas Piggin , Linux MM , LKML , Eric Dumazet , Kefeng Wang , guohanjun@huawei.com, "Uladzislau Rezki (Sony)" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 18, 2021 at 5:41 AM Matthew Wilcox wrote: > > On Mon, Oct 18, 2021 at 08:37:09PM +0800, Chen Wandun wrote: > > Eric Dumazet reported a strange numa spreading info in [1], and found > > commit 121e6f3258fe ("mm/vmalloc: hugepage vmalloc mappings") introduced > > this issue [2]. > > I think the root problem here is that we have two meanings for > NUMA_NO_NODE. I tend to read it as "The memory can be allocated from > any node", but here it's used to mean "The memory should be spread over > every node". Should we split those out as -1 and -2? I agree with Willy's suggestion to make it more explicit but as a followup work. This patch needs a backport, so keep this simple.