From mboxrd@z Thu Jan 1 00:00:00 1970 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=-3.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no 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 8D20DC2B9F4 for ; Thu, 17 Jun 2021 12:42:37 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 57B3B61159 for ; Thu, 17 Jun 2021 12:42:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 57B3B61159 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=11PHuJzI1AmlIPpCRcsACY8MJt71Yc0D7+ksp8/ECqo=; b=Vv65MrlZDGSt/C 0KpfUi216hQbxGJ0t0ggtewElgI32RYle6ovL/ZIfYDMdepRKfLlKcX/e0/XhMC43G1nhNrltQDLD lB6R+y30NT4X9k6NxTF1KHHFG5bRmPsIBWQtfpk2U5f9K2m+h8xXPnWwjSPIyQWKKxid+BBgWaIxM pQWyhucY2JFjDEhNGpMaWuo7n+nYkFPoVRazh0NPLwPN+AaFbYvaXH95j4aD2VFDVVubCzKD/NiLC lQZV/rUVvAYZFY38JTJvL16eVbZBrWajcq4YtsrRqQOAuwvrW7lxqytmyL0cwdrcD7bQV6BaSUze9 0hczSh1HvTvHhrZ11knQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ltrKZ-00AKVo-TO; Thu, 17 Jun 2021 12:41:12 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ltrKW-00AKSk-Ut for linux-arm-kernel@bombadil.infradead.org; Thu, 17 Jun 2021 12:41:08 +0000 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=6buJ1EzwuAkSghHPh7appt09mi8sVKMXWYQqJKpVxtQ=; b=TvkE86lgS/8sg7Iv/GbSjgmfR1 lCDZTb3RWjU40fLyNYsLCIZytLxziAsc/zUOz7FLogKU/wd7lQY0mF7p+dYw/NV97CjIrkYfngFMT vaqK0lTs8HpvSobY6SrHaIPfvIqDNTMaX80gG7C98v0rDQHCmS7CPymXcl8RdeVTVc5i5HiHwCrYE r6/F7HNUtyNEyA0vi3AUqy/Gp8BgLsVMPI3o2j8yntn4brsVPviYRWMXP1vZllPfWaGsabW7pHGP9 JYHNWaVuXqoYlrxqL9IQRLXgh8Nbi0LMtbeFLcu+f5Xi3+cgUu1pfDxUoM22g8DjG5lV6tvdB3+7N XpVNOEVg==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1ltrKG-00981p-37; Thu, 17 Jun 2021 12:40:55 +0000 Date: Thu, 17 Jun 2021 13:40:52 +0100 From: Matthew Wilcox To: Janghyuck Kim Cc: 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: Re: [PATCH 1/2] mm: support fastpath if NUMA is enabled with numa off Message-ID: References: <20210616083745.14288-1-janghyuck.kim@samsung.com> <20210617115544.GB183559@KEI> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210617115544.GB183559@KEI> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Jun 17, 2021 at 08:55:44PM +0900, Janghyuck Kim wrote: > On Wed, Jun 16, 2021 at 06:32:50PM +0100, Matthew Wilcox wrote: > > On Wed, Jun 16, 2021 at 05:37:41PM +0900, Janghyuck Kim wrote: > > > 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://protect2.fireeye.com/v1/url?k=c81407ae-978f3ea4-c8158ce1-0cc47a31384a-10187d5ead74c318&q=1&e=cbc91c9b-80e1-4ca0-b51a-9f79fad5b0c1&u=https%3A%2F%2Flkml.org%2Flkml%2F2006%2F8%2F29%2F294). > > > 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. > > > > This patch doesn't even apply to the current kernel, but putting that > > aside, what's the expensive part of the current code? That is, > > comparing performance stats between this numa_off enabled and numa_off > > disabled, where do you see taking a lot of time? > > > > mempolicy related code that I skipped by this patch took a short time, > taking only a few tens of nanoseconds that difficult to measure by > sched_clock's degree of precision. But it can be affect the minor page > fault test with large buffer size, because one page fault handling takes > several ms. As I replied in previous mail, performance regression has > been reduced from 5~6% to 2~3%. I'm not proposing you use sched_clock. Try perf. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel