Message ID | 20241126085647.4993-5-shijie@os.amperecomputing.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> 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 87D77D3B7C1 for <linux-arm-kernel@archiver.kernel.org>; Tue, 26 Nov 2024 09:03:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-Type: Content-Transfer-Encoding:References:In-Reply-To:Message-Id:Date:Subject:Cc: To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=anvbA8pUE1p7xSgy/be9SEgroL0t9VAi66YsNkMnzvw=; b=tig0Dmr48HWFPJZGvOw/UmCoox V4JhBqSUmI0FUbl4LwxolFZBJwAE9ATw/Wiq9lbYF8BnjpKxjjcQ3zNrMIpnRfEvF3Ap3C3OZjukd 5k9vXJ+q+uPqeVJySiiwCfUomC81fc+SjY5f0Bmv7H/9Q6cS5vhdn/iqsreyuJXvO4/opkPhNXvoc Y5X38tRs3Pji+LmdpfrbcvFfYPmmepy7YDiItyBsP6t++apGYAz1vrL/hcrBpqW5GDspoDUCeE+ht Q7++UnBJnnXbUL8ME7cReul2sfX0V/nv3lnZZ4ZceYK5y4C15JHUzfJvSEQbufhOz5Nj1R4thnijI g2NZnhPQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tFrTf-0000000A2E4-3tH1; Tue, 26 Nov 2024 09:03:23 +0000 Received: from mail-westcentralusazlp170130007.outbound.protection.outlook.com ([2a01:111:f403:c112::7] helo=CY3PR05CU001.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tFrOj-0000000A1JM-0UdG for linux-arm-kernel@lists.infradead.org; Tue, 26 Nov 2024 08:58:18 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ZgaQEJ9GjcJYSizu07vk36aWXIpEdSaQyFBpxx4X/T8xwoUI41jzBLyWVd9UZvItyfr+8BOIgInhG9RXTpvh/c0oatLC67xSmUIeY2lolgsC/BVhWR6tkL0xN1s2Hl08Dc57t9wYRcUeAnaXOMmHHYj+XQy3Q9lrzo9f4zwUeqS9Y8J/tL5s6nEQw1ix5KjlwxIf2iG89Ix+xicgp9NXpXnUEcEIrIAYwVRlifrctiL6rUh0LE7JdgtIC7V5wgThNn1wxMwxKtNdbFek2WcyCbJFCzzpmKA91FHzvRQ/3Fd/Vt60x1uYlyzzCzXCr5TEVzAhEKL8xpV897mq4m3u0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=anvbA8pUE1p7xSgy/be9SEgroL0t9VAi66YsNkMnzvw=; b=RGJoaBl1eZNUMePPcne8u00bF/kgyJPSU2WzMOZqKaXqWCcrvUHSrWRs7qloCjDJ/btg2wM9pb/w+KKBfH7VsbuyFmsQWe7ZLLS5W01KpAAhYpHLmSiHFkfeknOgCIHPF795yby9moDmw3LJWTwT/EldXU32U25jlV5ybpkmrsG1RW6XMHvlVT9JRhxohuybTaRrv7tFDUaj0Sl8SQ+BHHSMDH11MSK1jUHrDuMV1DvPmPq63sQWNb8kGpe1fdSakTAF8yos/ha3UzMnCW6t2EbGa5jIgZayOIJGk3KFwgILJlBQWWTNSKu+rY/uqAajCg149ZZZ3tIoISJA/sibSg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=os.amperecomputing.com; dmarc=pass action=none header.from=os.amperecomputing.com; dkim=pass header.d=os.amperecomputing.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=os.amperecomputing.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=anvbA8pUE1p7xSgy/be9SEgroL0t9VAi66YsNkMnzvw=; b=UkVKl0cHGUk8bT93UWHpTFse8cw86tf1Mwy60JipR0yGag1Ujm4N+ZogZMyRCYHz63PC9hNIKly30k8sU0hoUTKnhZq4DSDlu+7HmMxRLgHHUqraSpfyi/KpzZCjNEJVtgBkYnkHbj8xAHsbSYhaNhKRqMBJVR7RmH6WqEjQc0w= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=os.amperecomputing.com; Received: from PH0PR01MB7975.prod.exchangelabs.com (2603:10b6:510:26d::15) by DS7PR01MB7688.prod.exchangelabs.com (2603:10b6:8:7b::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8207.11; Tue, 26 Nov 2024 08:58:12 +0000 Received: from PH0PR01MB7975.prod.exchangelabs.com ([fe80::6926:a627:118e:8050]) by PH0PR01MB7975.prod.exchangelabs.com ([fe80::6926:a627:118e:8050%4]) with mapi id 15.20.8207.010; Tue, 26 Nov 2024 08:58:12 +0000 From: Huang Shijie <shijie@os.amperecomputing.com> To: catalin.marinas@arm.com, will@kernel.org Cc: patches@amperecomputing.com, paulmck@kernel.org, akpm@linux-foundation.org, thuth@redhat.com, rostedt@goodmis.org, xiongwei.song@windriver.com, ardb@kernel.org, steven.price@arm.com, suzuki.poulose@arm.com, mark.rutland@arm.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, cl@os.amperecomputing.com, Huang Shijie <shijie@os.amperecomputing.com> Subject: [PATCH v2 4/4] arm64: add a new document for the fine-tuning tips Date: Tue, 26 Nov 2024 16:56:47 +0800 Message-Id: <20241126085647.4993-5-shijie@os.amperecomputing.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20241126085647.4993-1-shijie@os.amperecomputing.com> References: <20241126085647.4993-1-shijie@os.amperecomputing.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI2PR01CA0004.apcprd01.prod.exchangelabs.com (2603:1096:4:191::22) To PH0PR01MB7975.prod.exchangelabs.com (2603:10b6:510:26d::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH0PR01MB7975:EE_|DS7PR01MB7688:EE_ X-MS-Office365-Filtering-Correlation-Id: 13f164e3-dd5e-4a3c-16e5-08dd0df87511 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|7416014|376014|1800799024|366016|38350700014; X-Microsoft-Antispam-Message-Info: 0oMZmdlx9rI/20PHrsGoZoTWMdolMCREMBVBohRr2iTmr6wcry3fPsWa+50WqdqwiG8QaL0dAUCxHb9mWqdQJ1WxUd9kylJVubXNA7lqyenUwqtQ2sNVoc4pYOCrKBAWZbZlPQ64KBJxngzBK3wKEVZK6pum/4L5AIig75eI6uKTJPuDaUGUn6ZHxLjapb1svKfxmdroro2BpuQ1u434Z6Be+ZCn472ecNoZU//rjEFOCHjp9G4X3tt59guVX8P+ZybuNpf2ImEIwT0eHnbqz/SdjSt/MfzBg2pwuyrNpyR+mHjnumFCMZB/cS35qfaqutznHmLP0s8BalaxvlHJt90MvMFy6kL1W8QJysU4gMvjaXNmiqTXgn3MPcXRml1zt1wdMaWNuMK6OoOD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;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR01MB7975.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(13230040)(52116014)(7416014)(376014)(1800799024)(366016)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ajemkZdcyWIMiGANgaSBcz/Lwz4th/v8W9l3knG14yReflJVdLDT1etNjW4qXzNzbn+88uwvbyCAduOvyV8ztzUzTXom+/ChvqonN4Ke30XTWi4ERRSEKivO5BMmiMzmQ7w3FDwqRWYP5QZiiFtzc1xeMUsWr487vVjSB8AMlMGa9XqXiARkTfVNmg9bCfXTtrMt+uwiv5u+EMFLirWrdMhrdU+uruCFqIdhYNCBp+7E1/fIzx6WhYEeEzjanhcGVsvkPuIwSBVw0d9f6zZCOcfWcNfokmQJbWnQ0Aq4I54Egquyn7nHL7KesnPDCim9v6AMEoALE2JSH3Nj8FI0i+2SyN2ZZ9nMKWpuKeC+cZh9dLheJ4NtJseJpJ/PmsyqBeWUQ9NDkmKVy6BnZ5OYUaOavByQQGSpp6kZ30mwmWgxBc/Nocs7nc4DuZ7CwNvOR1umzKc47i530RWZcgGmmu1PnkjBE3X0CFpdCuBmJF2iyq0KG0oro96gA7Lw/h7g/+RpfvZrHTtRSzEFm1vWCbY4LbMgPCMSJaVQxzdBNt8yYCPIvWh5XDHmsNoH1IHeC9yn7dUfMFXskYzrQwzwfMSyp+2UKwvgJCAKL82uxM/AOvCKlINNMj9HTHcyJ2AY+4/sof+BYgvY2BQR5AfNdJX0UxWS3Bfbrbek9KNJm5cTHBoqgassPtcLyUNA0IdbvGdWMtB45/68NDG6v676JPERd0cK/l/w5q7B32nijDJuYiQurFUOJMi8z7nHGkzl9CmLAPVdmcvB+AbnaAMFJJApUZaWTA4XpSYVJmNPCfsorZNySfIa5IQFo9PdOBTYliWDJBuXZwpKaXmLbHJvQV1Iru21HzZhVDfPmDGZJnVD2+BBe2aD7cAJeX0Z5n7E4N4MP1a7AGMfqXJTsdKLySuRQZN6P17KN7OVgMcvQz3GQgGdtiZ/gACKy+m5TmSN5QBaumezabmnDisUv5NM/8gkyga7NtQJjQw+Z3vW2LTWo4yPzkvnKvUN/FYvTuKQ3LqpcQxMATsmrnK4DKM6PVjFQYY8IMtfQadrG5MI+Phj4INPUYtN8qIDX2+hFXTpS/D4XFrPaQKwljq7JM1DFivH8GFCMF3H0pUntIbo7OuRbUl76lTsNfaBZrdt4GJSRdVAfLMZUj+gOr28hwvGvFpu3XBmhJlVNHaRm8tu7vNbMAm6sO+xofuGUceCf7hNmTUKbgq2JkPd5TwGAFH751kGeGmHim2PTQiOzyq9Y1JDs4cxXxo0r+gcJtvWKrKP830cGJPIv7LHMu0J4tCYMzsqk46Ejw9y6vvIvS9qJTviepAEpKTSF2S+FSwwwkq+oPFMWp11shOqgBaa1G+urm8ayek8zc62F9dqduhxD0NufmhFHkI+RsoiiZED3YnFg8PCIcmyrmi6RK9DLLRaNoQXvz8a0Mm0zdFeTgdFVpaQ0WUZKdl0IbYNJ1rX3CQB92dr2UMhVOekJtnsGJ5IJ4WtQ9WEyGqDHHPjMaZuNJgKw85l1vcrJddM7EvgI2TzUMsdDHpU4l99/DkDVr8vwNK+UAllx4tTAaikRrv2bKdel9yHaRd/OSd72Johg7/WePzX+ecY55IejWduqNL04fzhwfqKMROlo3gWxR6CNHc= X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: 13f164e3-dd5e-4a3c-16e5-08dd0df87511 X-MS-Exchange-CrossTenant-AuthSource: PH0PR01MB7975.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Nov 2024 08:58:12.7303 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3bc2b170-fd94-476d-b0ce-4229bdc904a7 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 9kAVMsKC6i0eJAL5OSqdGegzAYtmOk5SWofRz8N5h8Cv5EHSSaRfowshiTIf6EuYQ1uAKImv/EW9MPSTYrtOE23pmz0S2sjiG97VKGshxdbTKpNp9N/uKIcjGF389aNY X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR01MB7688 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241126_005817_152953_2100A2F6 X-CRM114-Status: GOOD ( 12.95 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
arm64: refactor the rodata=xxx
|
expand
|
diff --git a/Documentation/arch/arm64/fine-tuning-tips.rst b/Documentation/arch/arm64/fine-tuning-tips.rst new file mode 100644 index 000000000000..70ef1cef92fb --- /dev/null +++ b/Documentation/arch/arm64/fine-tuning-tips.rst @@ -0,0 +1,23 @@ +.. SPDX-License-Identifier: GPL-2.0 + +================ +fine-tuning tips +================ + +This file contains some fine-tuning tips for arm64 machines. +These tips do not gurantee that you can get better performance, +but you can try them with your workload. + +rodata=noalias +---------------- +It can provide us more block mappings and contiguous hits +to map the linear region which minimizes the TLB footprint. + +slab_strict_numa +---------------- +In NUMA, it will provide the local memory allocation by SLUB. + +CONFIG_SCHED_CLUSTER +---------------- +Some arm64 machines have cpu core cluster, enable it may +helps you get better performance. diff --git a/Documentation/arch/arm64/index.rst b/Documentation/arch/arm64/index.rst index 6a012c98bdcd..36d1ef09bd71 100644 --- a/Documentation/arch/arm64/index.rst +++ b/Documentation/arch/arm64/index.rst @@ -16,6 +16,7 @@ ARM64 Architecture cpu-feature-registers cpu-hotplug elf_hwcaps + fine-tuning-tips gcs hugetlbpage kdump
Put some fine-tuning tips in this file: 1.) rodata=noalias 2.) slab_strict_numa 3.) CONFIG_SCHED_CLUSTER We can add more tips in future. Signed-off-by: Huang Shijie <shijie@os.amperecomputing.com> --- Documentation/arch/arm64/fine-tuning-tips.rst | 23 +++++++++++++++++++ Documentation/arch/arm64/index.rst | 1 + 2 files changed, 24 insertions(+) create mode 100644 Documentation/arch/arm64/fine-tuning-tips.rst