From patchwork Thu Oct 21 08:07:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chen Wandun X-Patchwork-Id: 12574281 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A5017C433EF for ; Thu, 21 Oct 2021 07:54:22 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 29F086115B for ; Thu, 21 Oct 2021 07:54:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 29F086115B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=huawei.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvack.org Received: by kanga.kvack.org (Postfix) id 954556B0072; Thu, 21 Oct 2021 03:54:21 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 8F745900002; Thu, 21 Oct 2021 03:54:21 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 749386B0073; Thu, 21 Oct 2021 03:54:21 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0234.hostedemail.com [216.40.44.234]) by kanga.kvack.org (Postfix) with ESMTP id 61D236B0071 for ; Thu, 21 Oct 2021 03:54:21 -0400 (EDT) Received: from smtpin40.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 1EEB22DD9C for ; Thu, 21 Oct 2021 07:54:21 +0000 (UTC) X-FDA: 78719681922.40.24215D1 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by imf11.hostedemail.com (Postfix) with ESMTP id 40BA9F0000B3 for ; Thu, 21 Oct 2021 07:54:20 +0000 (UTC) Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.55]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4HZfpN6q8xzZcQC; Thu, 21 Oct 2021 15:52:28 +0800 (CST) Received: from dggpemm500002.china.huawei.com (7.185.36.229) by dggemv703-chm.china.huawei.com (10.3.19.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.15; Thu, 21 Oct 2021 15:54:15 +0800 Received: from localhost.localdomain (10.175.112.125) 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; Thu, 21 Oct 2021 15:54:09 +0800 From: Chen Wandun To: , , , , , , , , CC: Subject: [PATCH v3 0/2] fix numa spreading for large hash tables Date: Thu, 21 Oct 2021 16:07:42 +0800 Message-ID: <20211021080744.874701-1-chenwandun@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [10.175.112.125] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggpemm500002.china.huawei.com (7.185.36.229) X-CFilter-Loop: Reflected X-Stat-Signature: 34yin65qqkxcoehmfyugsb9978mk9hqr X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: 40BA9F0000B3 Authentication-Results: imf11.hostedemail.com; dkim=none; dmarc=pass (policy=none) header.from=huawei.com; spf=pass (imf11.hostedemail.com: domain of chenwandun@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=chenwandun@huawei.com X-HE-Tag: 1634802860-429752 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: [PATCH v3 1/2] fix numa spreading problem [PATCH v3 2/2] optimization about performance v1 ==> v2: 1. do a minimal fix in [PATCH v2 1/2] 2. add some comments v2 ==> v3: remote redundant code based on commit 14a60b114a8560de785df502fdc5687a969eae81 Chen Wandun (2): mm/vmalloc: fix numa spreading for large hash tables mm/vmalloc: introduce alloc_pages_bulk_array_mempolicy to accelerate memory allocation include/linux/gfp.h | 4 +++ mm/mempolicy.c | 82 +++++++++++++++++++++++++++++++++++++++++++++ mm/vmalloc.c | 27 +++++++++++---- 3 files changed, 107 insertions(+), 6 deletions(-)