From patchwork Wed Jun 16 08:37:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Janghyuck Kim X-Patchwork-Id: 12324473 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 65D77C48BE5 for ; Wed, 16 Jun 2021 08:16:38 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 18AD260720 for ; Wed, 16 Jun 2021 08:16:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 18AD260720 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=samsung.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 7AE556B006C; Wed, 16 Jun 2021 04:16:37 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 75DF66B006E; Wed, 16 Jun 2021 04:16:37 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 562306B0070; Wed, 16 Jun 2021 04:16:37 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0145.hostedemail.com [216.40.44.145]) by kanga.kvack.org (Postfix) with ESMTP id 20A5A6B006C for ; Wed, 16 Jun 2021 04:16:37 -0400 (EDT) Received: from smtpin08.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id B5E80F05F for ; Wed, 16 Jun 2021 08:16:36 +0000 (UTC) X-FDA: 78258880392.08.E4B649E Received: from mailout3.samsung.com (mailout3.samsung.com [203.254.224.33]) by imf07.hostedemail.com (Postfix) with ESMTP id 038B0A000245 for ; Wed, 16 Jun 2021 08:16:24 +0000 (UTC) Received: from epcas2p3.samsung.com (unknown [182.195.41.55]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20210616081631epoutp0396fe0988bdbe304b7ab8484b0503273f~JAgwrVcv23109331093epoutp03W for ; Wed, 16 Jun 2021 08:16:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20210616081631epoutp0396fe0988bdbe304b7ab8484b0503273f~JAgwrVcv23109331093epoutp03W DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1623831391; bh=pYjopewcdd+GpDtSo3CBBThAVcz0Vd2tC6hm2ZcKYeM=; h=From:To:Cc:Subject:Date:References:From; b=qD7X4205gBLghLcaCY0gdtd3Ofjw4WBEjUVGvaxPYHqg2Ro7lITHrCNjDj6NfS5lU nEWCjVl8BCy5hdRHQWURBphA1ZIvVQXmfz7F7idgA4v+uS/JIQRckhpeBeh9EYarwL BKYxuO+YqbC5TujUb0YGgbh7GWxANu5o3NF856yw= Received: from epsnrtp1.localdomain (unknown [182.195.42.162]) by epcas2p4.samsung.com (KnoxPortal) with ESMTP id 20210616081631epcas2p456f0557bbdbaf572f7928fc63029a9ed~JAgwNXj9E1821618216epcas2p4Q; Wed, 16 Jun 2021 08:16:31 +0000 (GMT) Received: from epsmges2p4.samsung.com (unknown [182.195.40.185]) by epsnrtp1.localdomain (Postfix) with ESMTP id 4G4dLj0237z4x9QC; Wed, 16 Jun 2021 08:16:29 +0000 (GMT) Received: from epcas2p2.samsung.com ( [182.195.41.54]) by epsmges2p4.samsung.com (Symantec Messaging Gateway) with SMTP id 25.4C.09717.C53B9C06; Wed, 16 Jun 2021 17:16:28 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas2p3.samsung.com (KnoxPortal) with ESMTPA id 20210616081628epcas2p3f919d10029cbe01efa1212a5b861af38~JAgtUBAEW1349313493epcas2p3W; Wed, 16 Jun 2021 08:16:28 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20210616081628epsmtrp19caf06cb4a1327fcdd94c359d09fe6bf~JAgtTMRLw0114301143epsmtrp1U; Wed, 16 Jun 2021 08:16:28 +0000 (GMT) X-AuditID: b6c32a48-4fbff700000025f5-51-60c9b35cb879 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 85.7A.08637.C53B9C06; Wed, 16 Jun 2021 17:16:28 +0900 (KST) Received: from Dabang.dsn.sec.samsung.com (unknown [12.36.155.59]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20210616081628epsmtip15d2c763f2fd9569597ff8e868dd2a75f~JAgtH4yMN1824718247epsmtip15; Wed, 16 Jun 2021 08:16:28 +0000 (GMT) From: Janghyuck Kim To: Cc: janghyuck.kim@samsung.com, Catalin Marinas , Will Deacon , Andrew Morton , Palmer Dabbelt , Atish Patra , Gavin Shan , Zhengyuan Liu , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: [PATCH 1/2] mm: support fastpath if NUMA is enabled with numa off Date: Wed, 16 Jun 2021 17:37:41 +0900 Message-Id: <20210616083745.14288-1-janghyuck.kim@samsung.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrPJsWRmVeSWpSXmKPExsWy7bCmmW7M5pMJBle3WlrMWb+GzWLRiu8s Fu+X9TBavNy1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8u//qCSVrjfR7P6TOnzvtt fmdi7M/K2A2ld5OUWIozEg21mIuKEwHDFHgx8QIAAA== X-CMS-MailID: 20210616081628epcas2p3f919d10029cbe01efa1212a5b861af38 X-Msg-Generator: CA X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20210616081628epcas2p3f919d10029cbe01efa1212a5b861af38 References: Authentication-Results: imf07.hostedemail.com; dkim=pass header.d=samsung.com header.s=mail20170921 header.b=qD7X4205; spf=pass (imf07.hostedemail.com: domain of janghyuck.kim@samsung.com designates 203.254.224.33 as permitted sender) smtp.mailfrom=janghyuck.kim@samsung.com; dmarc=pass (policy=none) header.from=samsung.com X-Stat-Signature: ng8cyzsbeioasot6urmbhg4b9m6o9wnm X-Rspamd-Queue-Id: 038B0A000245 X-Rspamd-Server: rspam06 X-HE-Tag: 1623831384-672529 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: Architecture might support fake node when CONFIG_NUMA is enabled but any node settings were supported by ACPI or device tree. In this case, getting memory policy during memory allocation path is meaningless. Moreover, performance degradation was observed in the minor page fault test, which is provided by (https://lkml.org/lkml/2006/8/29/294). Average faults/sec of enabling NUMA with fake node was 5~6 % worse than disabling NUMA. To reduce this performance regression, fastpath is introduced. fastpath can skip the memory policy checking if NUMA is enabled but it uses fake node. If architecture doesn't support fake node, fastpath affects nothing for memory allocation path. Signed-off-by: Janghyuck Kim --- mm/internal.h | 4 ++++ mm/mempolicy.c | 3 +++ 2 files changed, 7 insertions(+) diff --git a/mm/internal.h b/mm/internal.h index 31ff935b2547..3b6c21814fbc 100644 --- a/mm/internal.h +++ b/mm/internal.h @@ -36,6 +36,10 @@ void page_writeback_init(void); vm_fault_t do_swap_page(struct vm_fault *vmf); +#ifndef numa_off_fastpath +#define numa_off_fastpath() false +#endif + void free_pgtables(struct mmu_gather *tlb, struct vm_area_struct *start_vma, unsigned long floor, unsigned long ceiling); diff --git a/mm/mempolicy.c b/mm/mempolicy.c index e32360e90274..21156671d941 100644 --- a/mm/mempolicy.c +++ b/mm/mempolicy.c @@ -2152,6 +2152,9 @@ struct page *alloc_pages_vma(gfp_t gfp, int order, struct vm_area_struct *vma, int preferred_nid; nodemask_t *nmask; + if (numa_off_fastpath()) + return __alloc_pages_nodemask(gfp, order, 0, NULL); + pol = get_vma_policy(vma, addr); if (pol->mode == MPOL_INTERLEAVE) { From patchwork Wed Jun 16 08:37:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Janghyuck Kim X-Patchwork-Id: 12324475 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 62DD5C48BE8 for ; Wed, 16 Jun 2021 08:16:41 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id D630C6024A for ; Wed, 16 Jun 2021 08:16:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D630C6024A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=samsung.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 75F776B0070; Wed, 16 Jun 2021 04:16:40 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 70FB56B0071; Wed, 16 Jun 2021 04:16:40 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 58C496B0072; Wed, 16 Jun 2021 04:16:40 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0046.hostedemail.com [216.40.44.46]) by kanga.kvack.org (Postfix) with ESMTP id 271636B0070 for ; Wed, 16 Jun 2021 04:16:40 -0400 (EDT) Received: from smtpin32.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id BC1B08249980 for ; Wed, 16 Jun 2021 08:16:39 +0000 (UTC) X-FDA: 78258880518.32.5470497 Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) by imf01.hostedemail.com (Postfix) with ESMTP id 200435001700 for ; Wed, 16 Jun 2021 08:16:27 +0000 (UTC) Received: from epcas2p2.samsung.com (unknown [182.195.41.54]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20210616081635epoutp04c44baef915a65b54b88976c2acb21b92~JAgzvv-0q1001910019epoutp04f for ; Wed, 16 Jun 2021 08:16:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20210616081635epoutp04c44baef915a65b54b88976c2acb21b92~JAgzvv-0q1001910019epoutp04f DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1623831395; bh=Wjgxu9Mdz8rE2HMaZLgf7AvA24jsz0YnoESyLc9nyMs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=f2YZq6rzY6ZyRsW1+8eGquL0neQGNqGRc8aEwiJqCk2huWRNf2vFx4AF75bnW2AE9 ET7Q33epah8+BFdLq5/0VjKxznA2D+hsYIVsNUFnwVIktxg0R7MP/38agKbmth9lUH ZUMFjtFOcpkRFp6zPe3Fzy/7slRgdq5iqm49bFSc= Received: from epsnrtp1.localdomain (unknown [182.195.42.162]) by epcas2p4.samsung.com (KnoxPortal) with ESMTP id 20210616081634epcas2p4eafd15a8b7e3e9e291e7c9b6bed5d26f~JAgzUYLPW1472814728epcas2p4H; Wed, 16 Jun 2021 08:16:34 +0000 (GMT) Received: from epsmges2p2.samsung.com (unknown [182.195.40.191]) by epsnrtp1.localdomain (Postfix) with ESMTP id 4G4dLn0yn6z4x9Pr; Wed, 16 Jun 2021 08:16:33 +0000 (GMT) Received: from epcas2p4.samsung.com ( [182.195.41.56]) by epsmges2p2.samsung.com (Symantec Messaging Gateway) with SMTP id F0.D3.09694.063B9C06; Wed, 16 Jun 2021 17:16:33 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas2p4.samsung.com (KnoxPortal) with ESMTPA id 20210616081632epcas2p46436c362f3d97c9c1fb09dbb11d64ad7~JAgxRhC9g1213112131epcas2p4N; Wed, 16 Jun 2021 08:16:32 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20210616081632epsmtrp2ec4a75c48ffa1c612228aa6686836aca~JAgxQcT2M0773607736epsmtrp2I; Wed, 16 Jun 2021 08:16:32 +0000 (GMT) X-AuditID: b6c32a46-e17ff700000025de-ba-60c9b360c417 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 29.7A.08637.063B9C06; Wed, 16 Jun 2021 17:16:32 +0900 (KST) Received: from Dabang.dsn.sec.samsung.com (unknown [12.36.155.59]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20210616081632epsmtip1ad0fc206d666af9a8ff9ca2a2a954039~JAgxB3P2d1931319313epsmtip1T; Wed, 16 Jun 2021 08:16:32 +0000 (GMT) From: Janghyuck Kim To: Cc: janghyuck.kim@samsung.com, Catalin Marinas , Will Deacon , Andrew Morton , Palmer Dabbelt , Atish Patra , Jonathan Cameron , Zhengyuan Liu , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: [PATCH 2/2] arm64: numa: support numa_off_fastpath Date: Wed, 16 Jun 2021 17:37:42 +0900 Message-Id: <20210616083745.14288-2-janghyuck.kim@samsung.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20210616083745.14288-1-janghyuck.kim@samsung.com> MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrNJsWRmVeSWpSXmKPExsWy7bCmhW7i5pMJBvf6mS3mrF/DZrFoxXcW i/fLehgtNs8ptli18BqbxabH11gtLu+aw2Zxb81/VovVT86xWmzduI7RouWOqQO3x5p5axg9 Fmwq9Wg58pbVY9OqTjaPTZ8msXucmPGbxWPzknqPvi2rGD0OHbjB6vF5k5xH+4FupgDuqByb jNTElNQihdS85PyUzLx0WyXv4HjneFMzA0NdQ0sLcyWFvMTcVFslF58AXbfMHKCjlRTKEnNK gUIBicXFSvp2NkX5pSWpChn5xSW2SqkFKTkFhoYFesWJucWleel6yfm5VoYGBkamQJUJORk/ u9azFTxjrdj55TZbA+Nnli5GTg4JAROJxhuvgWwuDiGBHYwSbddmsEE4nxglWp6tZ4dwvjFK LPr9hxGm5eztU8wQib2MElsu/4RyvjNK/NjZywpSxSagL9E+9TI7iC0iwCKx8vt3sCXMAguY JRY9/gqU4OAQFrCW2PlbA6SGRUBV4sDeRrB6XgE7iTe/VrFCbJOXeNq7nBnE5hSwl/i/5z0b RI2gxMmZT8CeYAaqad46G+wICYG1HBJ919+xQzS7SKyZ8h7KFpZ4dXwLlC0l8fndXjYIu17i /pIX7BDNExglDixZxgyRMJaY9aydEeRQZgFNifW79EFMCQFliSO3oPbySXQc/ssOEeaV6GgT gmhUl3g3cxMTRFhW4vofc4iwh8SWW5dZIUE1iVHi14ZjTBMYFWYh+WYWkm9mIexdwMi8ilEs taA4Nz212KjACDmGNzGCU7GW2w7GKW8/6B1iZOJg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HVLT6RIMSbklhZlVqUH19UmpNa fIhRmoNFSZz3QtfJeCGB9MSS1OzU1ILUIpgsEwenVAPT8ef3n39i2VEqtShhfUP1AXajBaY7 WPmro3+5fHy67HbRh7QLszceMGf4XH93nZN62e1H/st8qn4c7bHo3TrpOdfdy30v5t+eGfPv R/kZq125fgt+XDo0u0RWZoaXvfI1He7c216uha4VF3qizQ/qS/6LUJ6Yr8l/lq3vjKCZV2FD YpNe+rGTahUGG9Mi9MxffW6teuiicuNp6/2W47tPsRZqXfd9z39ve+a1CwssluXmX1dI/5oy 696i6C87mZ+dvLuiJeH74bvqX6YpRKmmrJye1Wh4/uE24cCurUrWlnfefc6rbZ14ln/KrWwL Fr4jnzwP9oduqV4fLugvLxDyXJbHO/NvvLlt1drYhG+rlViKMxINtZiLihMBJy+LRwgDAAA= X-CMS-MailID: 20210616081632epcas2p46436c362f3d97c9c1fb09dbb11d64ad7 X-Msg-Generator: CA X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20210616081632epcas2p46436c362f3d97c9c1fb09dbb11d64ad7 References: <20210616083745.14288-1-janghyuck.kim@samsung.com> Authentication-Results: imf01.hostedemail.com; dkim=pass header.d=samsung.com header.s=mail20170921 header.b=f2YZq6rz; dmarc=pass (policy=none) header.from=samsung.com; spf=pass (imf01.hostedemail.com: domain of janghyuck.kim@samsung.com designates 203.254.224.34 as permitted sender) smtp.mailfrom=janghyuck.kim@samsung.com X-Stat-Signature: 4mkkcdmksdwgitggxpoxwaqsgu8fie6j X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 200435001700 X-HE-Tag: 1623831387-162977 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: NUMA can be disabled forcefully by command line, or no configurations are provided. numa_off_fastpath can become true in this case to skip the memory policy related process to reduce overhead. Signed-off-by: Janghyuck Kim --- arch/arm64/include/asm/numa.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/include/asm/numa.h b/arch/arm64/include/asm/numa.h index 8c8cf4297cc3..f7d4e0cb801b 100644 --- a/arch/arm64/include/asm/numa.h +++ b/arch/arm64/include/asm/numa.h @@ -5,4 +5,8 @@ #include #include +#ifdef CONFIG_NUMA +#define numa_off_fastpath() numa_off +#endif /* CONFIG_NUMA */ + #endif /* __ASM_NUMA_H */