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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id CDCFAC46CD2 for ; Tue, 30 Jan 2024 10:25:04 +0000 (UTC) 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=AZRHUks/oe9X2OhgqnAcYHyEJTP/Dn8Eg8j0eda7SCY=; b=OCMCZzr1jszDmw 0iVQqIRz1iy//qa2KBqpDeaf5bB9NtWCqR6ThnfOTQKN43RzBAmQFqdA/AfivGy4Ysng4dTR1pWWs VtciHkmRO/4bVKZ6aUS4BfoRr1dmCPfMdVxvYTenwyXTHF+irhNyGrBgdkn9IlhssfSEkZijQPAYd 44U6MtSdYDV+wihV44S6tZmIAu21sR9F+THUhrXAaJC2OmwAnAYgwu4kX37N9uMqj1F4NPe94ChzH 8ChBvvWGMWF1mKLVQ3Eobrpl83wz+dHgolHPRma+C/uJnGZ+Q2QhGN/Um67OPh11fTJlA/UED1Y9d CvyWpPpXFgySRBWwuIIQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rUlIP-0000000GAsQ-2CMz; Tue, 30 Jan 2024 10:24:49 +0000 Received: from pandora.armlinux.org.uk ([2001:4d48:ad52:32c8:5054:ff:fe00:142]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rUlIM-0000000GArm-2Ns3 for linux-arm-kernel@lists.infradead.org; Tue, 30 Jan 2024 10:24:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=KlpPPzzm0qNlNYLpEnO6uKxu6Fb0086kSlFZVE/dRyI=; b=D08kFCFJGRhNGAZYE+apOkQqf/ clhBE++rHQYMAJqJA9pj90wGruMdudkgMSg5vwQ3aOrQmDo/MtM1EftAPpa+k7nJRR6KBU6gmBarA acL+jmyuvNF0r8y7aSJZvgDxUPzr1JYsY8jMkTEP3I6/E9b6olN1LtDsWnyoVRq8IWolTE6ZNyNkO JxjEPbip6s7EL4TUpNmAP4wf0NrOunEvyD2pKosPYIqLLRENNzeO/3GzIbXJ6liEcqGQwQgt+mJVP 7dLjnc3MRmyU++k5EiHTF5d02g6MnDlIRljFYLokLTamt+VcgJE1LEJiTItRMdKguV1+U+ph6Ww2w Ax9MeK+A==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:45070) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1rUlII-0001eF-2u; Tue, 30 Jan 2024 10:24:42 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1rUlIF-0005Qt-Jg; Tue, 30 Jan 2024 10:24:39 +0000 Date: Tue, 30 Jan 2024 10:24:39 +0000 From: "Russell King (Oracle)" To: Xiong Yining Cc: linux-doc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, jiahao.os@bytedance.com, wangyuquan1236@phytium.com.cn, chenbaozi@phytium.com.cn Subject: Re: [PATCH v2 00/17] arm64 kernel text replication Message-ID: References: <20240130101613.3425933-1-xiongyining1480@phytium.com.cn> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20240130101613.3425933-1-xiongyining1480@phytium.com.cn> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240130_022446_631707_BDEF2CEA X-CRM114-Status: GOOD ( 13.46 ) 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 Tue, Jan 30, 2024 at 10:16:13AM +0000, Xiong Yining wrote: > Hi, Russell > > > > > Needless to say, the performance results from kernel text replication > > are workload specific, but appear to show a gain of between 6% and > > 17% for database-centric like workloads. When combined with userspace > > awareness of NUMA, this can result in a gain of over 50%. > > > > Tested-off-by: Xiong Yining > Tested-off-by: Yuquan Wang > > Sorry for disturbing. This time I have applyed this patch on a real NUMA machine > through "-ktext=1" linux options and successfully booted. With a database-centric > performance test, it shows the patch will provide some improvement near 10%. However, > since I am unfamiliar with numa performace test, could you support more details or > suggestions on how to get the "gain of over 50%"? You need to profile the system, and work out where the performance bottlenecks are, and come up with ideas to address those bottlenecks. Kernel text replication does not give arbitary guarantees of improvement, so pulling figures of "gain of over 50%" is a complete misrepresentation - it's highly workload and platform specific. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last! _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel