Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp593271pxb; Tue, 19 Oct 2021 09:01:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzkf5CmUqVmwgwxa54nCk7UwtsMUb2FYSGSaU2tp5bjLdXhWm4Rxp9GcWbqemWmPXjhK5zw X-Received: by 2002:adf:bb0a:: with SMTP id r10mr44463107wrg.23.1634659316894; Tue, 19 Oct 2021 09:01:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634659316; cv=none; d=google.com; s=arc-20160816; b=d6fMk+5Zs87Oi41a4mWsrrMFDHM0igDKAuASq5Y8i1ubG0y2AftiNQC+Qkd38vgmwT VmITNtcFDRSDa6sIQcmw81JKKcmY4K3XAb+GWwozPMDK6k4IfkQzh+pQsecBbP8mFTI+ tZFd4Qu4VrxLw3ASpum45sBmi0aIGKH91SyyXYTle1V2c7RYmJlWnmx8vcGqwGtWWXXS nc0pDDBoWLXByvPlYo/5w7PlhAWQRYDpjGDaHOVR5t/FWtctrGrXSaZxeXtEdmIjtpNS TsM1u2xX6nVyV2HVTJFhptVCx5K1/8nXCmWCfMBQkLjc7gEAH6RZrfjbak/tOTSf/Nmg +hpA== 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=RlGsUhZv7y1Y43YyXgR+WSHhAI3+aP3m+Q58wtMVpx4=; b=DCgYCJ/nbjwUeOQQBxYbO1Gr4nLtyLGPaCN46For8w94oRXXM/HkFfFwYzjFW0d94A Jt0HnwUrK1fCiEtahckY92ACHj/1Oxd0d5JA9J2L3NaqGDZPkgGiMeaQVebaL1afVj6/ sqQ4LfYgi1lGo6JCopVd5DixK4FEGwrN7Hph7UWhyZQ5ZXuaLKgRSRqdoO/P31beHmcZ tALZwufUHJWsTJDBv/PSWjWSAIJUmX7+XMq+FsTDM8z3LjPMrtzgC54JbmgWSHrIk7yb cMsKvN3it0Rk4FdSG/PWgJ4tJuBUniFzrKHr9KEPeDijcFlSHwDeSXBj55/LLZFS6H3X qJ9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=WnFq6cut; 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 t17si24642473edi.478.2021.10.19.09.01.31; Tue, 19 Oct 2021 09:01:56 -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=WnFq6cut; 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 S230127AbhJSQBP (ORCPT + 99 others); Tue, 19 Oct 2021 12:01:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229774AbhJSQBO (ORCPT ); Tue, 19 Oct 2021 12:01:14 -0400 Received: from mail-yb1-xb35.google.com (mail-yb1-xb35.google.com [IPv6:2607:f8b0:4864:20::b35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3FE49C06161C for ; Tue, 19 Oct 2021 08:59:01 -0700 (PDT) Received: by mail-yb1-xb35.google.com with SMTP id u32so4665592ybd.9 for ; Tue, 19 Oct 2021 08:59:01 -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=RlGsUhZv7y1Y43YyXgR+WSHhAI3+aP3m+Q58wtMVpx4=; b=WnFq6cutaUIfG5uekqdmLBjybpuQxsfOFzPE50VX9aflVapzESKbSxF/rcN8RnhRLz eHrgXRMB1PjuUW6U4v40FFCYGSyi7mcH6FlxkE+eQR0OOvpjAEVnAU6B6gE5PNiMXRBF /dwr+mL3vbPOXICuvzFlFe90usff6gA3XBYJwtz+5whizBpqpNTbBuENeRdnr4W4DyEJ YvuGjJwZ+etR4qBxOlAlvIHE8dtvJ/utBXgSF8Hj6nuq72yxCnkiQmG/LwsEQYaHJIaU dXvZAnUrfsHRh475Rli5/AjqJcp01oyuLieMQ9y9209Irdb+KIeFngLUYIgMUaAf+uv9 EzZQ== 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=RlGsUhZv7y1Y43YyXgR+WSHhAI3+aP3m+Q58wtMVpx4=; b=hFLeaBVHX79NDXrOG+UA584qfXjz0AXYMnOVJR3N7ZuVeHiWgy7IaEkxFlwz7J7qSO S4KoHRWNQY77bW7D+wYcjtWegOKStpvnlwm4FjswRfIqjgt6guz9DkIyqMrmzcmZZHd0 Hck9WflXtp7/4QyEo+txfUOTekl3o+WGRKtCyf+l9Ow9hO+MnOFI1K9axDzTXNWvbj4I gUBjwbFr1iozTZp6c8ysm7XuFWlWvw7sRSYBXZEPKbKwwKBOJS0NkmxuNHlSmJvcY3Xc dHy9Przn0wPL1wrObuUefeEqcRdpultW939PsQi7ZLA1RqT93Vq4CStaA7dYHqxixJQg P8ww== X-Gm-Message-State: AOAM530fc3EWD9Y101wXJ/h5tu1OJFJh5YeWcpg9wgn1ukB+SH7jd6ZS 2CB3N+WTQFjPCdR+nd+DSnXP+3GSPjusyPo9MoWBng== X-Received: by 2002:a25:918e:: with SMTP id w14mr20591461ybl.225.1634659140106; Tue, 19 Oct 2021 08:59:00 -0700 (PDT) MIME-Version: 1.0 References: <20211018123710.1540996-1-chenwandun@huawei.com> <20211018123710.1540996-2-chenwandun@huawei.com> In-Reply-To: From: Eric Dumazet Date: Tue, 19 Oct 2021 08:58:48 -0700 Message-ID: Subject: Re: [PATCH v2 1/2] mm/vmalloc: fix numa spreading for large hash tables To: Shakeel Butt Cc: Matthew Wilcox , Chen Wandun , Andrew Morton , Nicholas Piggin , Linux MM , LKML , 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 Tue, Oct 19, 2021 at 8:54 AM Shakeel Butt wrote: > > 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. NUMA_NO_NODE in process context also meant : Please follow current thread NUMA policies. One could hope for instance, that whenever large BPF maps are allocated, current thread could set non default NUMA policies.