Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2965823pxb; Mon, 18 Oct 2021 05:44:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzRPF7dmEm2R+eJxZ7jKMgPSJGoS/mlJSfbgKPMTZk8ebeqtpmtE8zkKL/zY3QIEPvqdksS X-Received: by 2002:a17:90b:1c8f:: with SMTP id oo15mr48033132pjb.87.1634561047500; Mon, 18 Oct 2021 05:44:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634561047; cv=none; d=google.com; s=arc-20160816; b=b34YWX9DogR+wFnEn3hXr0bSP+FqQvNHZPB0V8qPn+ygJ/onJZMrwAxNXWI5of66Rh 5kBGbbRdquluLxWX7DYK9XhKupAN93XQPY6rFxNEPoc6EeDF7ghfM8OKPVnoFgs8a3Hl cdgh3Yl4UANrfnsIKueHeG68Ml/DfMTAZFivl3EOKAwR4H+z9b22BrK3X6/w+Gfgt1ef XR5gx6WrmsHe/2nwLtwJHo3WndMF31zpQLXmNBVd2rapn9gDwJtqKhesKlgswjxGxTy4 OBdQWmJ6bRQA8foh0QohYfRM2wMZCQdDZMP/lee4rw2tQdY9+8AFgFVvCkDr9f4KvQ2C 6eTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=D0on4HUpG42haSYLV1uyg0Ra8eavO6yawrcHNA7JqNE=; b=ZmvlVGGpchuSQ7PKBZlrcDi8vVLLd3R8MbgNesjr2hyNs2zI220H4Y+jqcSQrG63hX pCuC1TIqEvH6nhzrTLegsJGHALQ7ormKm+ajROdK+k0dUJVq49Sl35xc6ZKNp4tXPhAY c5zcdl5WhlkvVMR8jlMAUiWOAmoFCnUqn0fhv2QmL5939Av0Pm/oYGFbGCRp9DBPMZIK VdOkrSdT2syQNnrxi0kGDukUVjAz3rpMdvQUCJ8Lp+OGG+wNAPdhkbblcCicvVqIblhM teLNGWIdOLE1alqAtio0XueXPEZxPbnI4hBZMisSEfiPRlVBWLBkOh/1APVM81skqSLc WgVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=l1tP7h9z; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g9si17617060pjk.70.2021.10.18.05.43.54; Mon, 18 Oct 2021 05:44:07 -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=@infradead.org header.s=casper.20170209 header.b=l1tP7h9z; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231700AbhJRMoE (ORCPT + 99 others); Mon, 18 Oct 2021 08:44:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231750AbhJRMn7 (ORCPT ); Mon, 18 Oct 2021 08:43:59 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04741C061769 for ; Mon, 18 Oct 2021 05:41:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=D0on4HUpG42haSYLV1uyg0Ra8eavO6yawrcHNA7JqNE=; b=l1tP7h9zicMHO1Xl3MTeMZbAT1 gJVT86FtE9nPC2sc0ibmEvIPQEDPSU0V9hJxWPOyjPMkYKziza66AzI69pZyuAYFyQmLn/Gtow2zi HIA/Q4qJWRePWGKRP451c/rVvpMvkiPcNYi4pybAPoyzP2sqERIJjGrejKDzxBEAQMZDAtmpyn9mN dsADP2grJEGxFGHqjYrgM5+M6s8/Fu6PJE2mfG6HmSwBeGjUk++9HM2GdDqymQRBM5lkUkpZna6rC ShpjksJnog80uPOXkahDcSaKZA3SJnFqYbgyEqNZy2fb6/7xA69CBpteX6UROr1fL48yrSkaDenGt GPo4lN8A==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mcRve-00Awmf-Uo; Mon, 18 Oct 2021 12:40:06 +0000 Date: Mon, 18 Oct 2021 13:39:46 +0100 From: Matthew Wilcox To: Chen Wandun Cc: akpm@linux-foundation.org, npiggin@gmail.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, edumazet@google.com, wangkefeng.wang@huawei.com, guohanjun@huawei.com, shakeelb@google.com, urezki@gmail.com Subject: Re: [PATCH v2 1/2] mm/vmalloc: fix numa spreading for large hash tables Message-ID: References: <20211018123710.1540996-1-chenwandun@huawei.com> <20211018123710.1540996-2-chenwandun@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211018123710.1540996-2-chenwandun@huawei.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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?