Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2981319pxb; Mon, 18 Oct 2021 06:02:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+GUtYudNMnqO+2Dc0x4BOjt6UyzdL1aCIiPqcJOEyY1G3OkbdNhsNta56M050CW2vKtMq X-Received: by 2002:a05:6a00:2146:b0:44c:2922:8abf with SMTP id o6-20020a056a00214600b0044c29228abfmr28557556pfk.27.1634562169485; Mon, 18 Oct 2021 06:02:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634562169; cv=none; d=google.com; s=arc-20160816; b=PUOajPxT7sGii/oTPud0YKImTVCBd7OHPEoRpzLZS3sYQKsSA9OaUFAldQ9/53avnn DUwc++Sn16tml8gwBmZNXCJlVb4MfCQdG5/7u2FwAHEhYlzBtpry/0zZPEYA5eVKWznJ shL9qjbzOueyHHGYF68DLAWZfVu99nSSJ8amJpZ8qz47j5Smy+e2X/QAGcvu19OroB5l ooJrsSk9e7diU+y4BSniz04kWEasyw//lYFxcLt9BgQlbEs9XSQTm6v1SA4W7E/T7cJJ qcmrrCL2ZpkDGqRsbX3IyrWi2fPWZykkvfnUz/qPVCYoOU1dKvOWKMJ/IrPyS+NXM30D 6GkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=Nhx0HxF8UfzqcEoI7akagj8kbN4RuRHqPXSt3xDzrYs=; b=nlNmtqgNbVUxfw7nJwQiUvOuVyuBXAz1F0KSW0wOeIzEtMd1eBz4PSXnSiKgWx2+eY 5TileFPstaWt5ImfAbZAbDFSi8RzE20TySSjY16XJou2OWYoym5NVAAeVrXW/nggjbQj cxJvU7yYmAR/jrh5h7gn7XuUYKEqHVoKPVtmmmw7tamhbfO773rPlkc+HKQwLiUbFXdS 0dMprwN4io9bKVJfT4yMAQlbPkw3kefpGCc7cB0A3YuhatNKHlVfvNKASjFGdflbuHyR dVKH2Z4KNcSo8KY50EGCb/UsLZwAFvnYPTnoQJtbJ5t4sKUG046HtFEszmkTv3mXIOH+ MM9g== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nn7si35491090pjb.104.2021.10.18.06.02.31; Mon, 18 Oct 2021 06:02:49 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231718AbhJRNDR (ORCPT + 99 others); Mon, 18 Oct 2021 09:03:17 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:29905 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231846AbhJRNDQ (ORCPT ); Mon, 18 Oct 2021 09:03:16 -0400 Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4HXxhZ6XbWzbnFc; Mon, 18 Oct 2021 20:56:30 +0800 (CST) Received: from dggpemm500002.china.huawei.com (7.185.36.229) by dggemv711-chm.china.huawei.com (10.1.198.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.15; Mon, 18 Oct 2021 21:01:02 +0800 Received: from [10.174.178.178] (10.174.178.178) by dggpemm500002.china.huawei.com (7.185.36.229) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.15; Mon, 18 Oct 2021 21:01:02 +0800 Message-ID: <6e310e59-c0b6-5ba2-f927-7754c3e9e941@huawei.com> Date: Mon, 18 Oct 2021 21:01:01 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.0.3 Subject: Re: [PATCH v2 1/2] mm/vmalloc: fix numa spreading for large hash tables To: Matthew Wilcox CC: , , , , , , , , References: <20211018123710.1540996-1-chenwandun@huawei.com> <20211018123710.1540996-2-chenwandun@huawei.com> From: Chen Wandun In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.174.178.178] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To dggpemm500002.china.huawei.com (7.185.36.229) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 在 2021/10/18 20:39, Matthew Wilcox 写道: > 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? Yes, the intent of NUMA_NO_NODE some time is confused. Besides,I think NUMA_NO_NODE should consider mempolicy in most cases in the kernel unless it point out explicitly memory can be allocated without considering mempolicy. > . >