From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=40.93.201.48 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1793266507; b=OBslIrj0TstiAYFJtWJ0sVfPF4yyfLLwHLz/OpMLsj7Pgzg8ppY1dXdjiIJsfJUWlvIq /36X4R9uFevaeCjfY07rthOsDtIICNSiW9d0l2I5ujrHPQp4iV7mtDnJLF/kjPIWjY/9E wQ1/3Q6Yz8/KJaWf+B3e3aYe8ULSFihitlXoB5sxvAesui5I500cwxPSqOIzon77k6Uh1 Vqp0a+jVPbolT+1mFwSPTsDDEhrg3FAFTtPpq3UYa9zRRIA6tvZjRDYyZgmJ4zVZ428FZ uJHB6TBZ8Vt2AQKjieWOWLiP9VPcfrwqjiBu5TGUG4iKu8nhF6d2vz3UNnKonS0d9ag== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793266507; h=DMARC-Filter:DKIM-Signature:Received:Received: X-MS-Exchange-Authentication-Results:Received-SPF:Received:Received: Received:Message-ID:Date:MIME-Version:User-Agent:Subject:To:CC: References:Content-Language:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:X-EOPAttributedMessage: X-MS-PublicTrafficType:X-MS-TrafficTypeDiagnostic: X-MS-Office365-Filtering-Correlation-Id:X-MS-Exchange-SenderADCheck: X-MS-Exchange-AntiSpam-Relay:X-Microsoft-Antispam: X-Microsoft-Antispam-Message-Info:X-Forefront-Antispam-Report: X-MS-Exchange-AntiSpam-MessageData-ChunkCount: X-MS-Exchange-AntiSpam-MessageData-0:X-OriginatorOrg: X-MS-Exchange-CrossTenant-OriginalArrivalTime: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-Id: X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: X-MS-Exchange-CrossTenant-AuthSource:X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-FromEntityHeader: X-MS-Exchange-Transport-CrossTenantHeadersStamped; bh=oGKNVB69wurMCLPvdqcLe36qhX1WPx65AE96vDluugY=; b=mYdCSIQwlsuS+gRS0WM4CXz99j5aIy1UroHIHZxC1hdG/30m3znNicGgwX5A133b+Qsu RTvHnqRBuG/hFUsB75y/lD3K70nBewkQoJbA0R389+gLOYbo8r1X6mo9DdJPp3CbpDplV dQWx3l0f+qTDqUKjRXBm03g6eCGbGsjcezwtR47tLjRkwOtASDNV7np+X8prjI7/Lx5x+ PqZsGWjstzYJ+gSmkKw2HYSmOVBPOwoVIRRmaDAYV0FZ3CvUEKz6VV6nMdsybK/Dr/TJX Fd7mQmG3bCf+OXMTJt6KhNTmQvWEfc5q/6YzbeuvOMEGkrWDaXhf2T2yHcRlAzUKuzg== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass header.d=amd.com header.i=@amd.com header.a=rsa-sha256 header.s=selector1 header.b="X5QjZb/y"; arc=pass header.oldest-pass=0 smtp.remote-ip=40.93.201.48 Received: from CY3PR05CU001.outbound.protection.outlook.com (mail-westcentralusazon11013048.outbound.protection.outlook.com [40.93.201.48]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (secp384r1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3ACCF606A31C; Thu, 29 Oct 2026 09:35:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 3ACCF606A31C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=amd.com header.i=@amd.com header.a=rsa-sha256 header.s=selector1 header.b=X5QjZb/y ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=s/zHrNlZC1HiiezaKoghqkc0IXt2WSkGIT2YVGeWU8evH0cVfM0ZkqV7y5Ofb5zVcUL3t9DwItck7ERwK2XrcVg5jGa9l9YkevQ+Xa8gkeY+gPHw+DgoFCoFPGUwm40FQ4Z+OTs+Fhr9M66ihUHchgiy+CMFAOQtoMKNRON0SRinP889JBK2QMMXFuSm2fReK4+Nrg4Dnq1A30io83bFgTjV8o5I987dK1DmGEEJ8whPGfVMzcVh9bXmUSgi1rrb11cwKN6lm6iz36A+mbB4Xz0s5V8w6UygOxpQoUOadPZpsSJ5n9vyEvhUUH5oM9gw9A9ZrCeR1fLK1RXfP+4sNA== 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=oGKNVB69wurMCLPvdqcLe36qhX1WPx65AE96vDluugY=; b=svsqBtItIaCZ09t/oO/XXimjVMF8Q45G4rWN3jx27Aw/t0+Te2YreYX7AIU+7jujnLm+Tbb7d0NkhfIvHN7UBfPLj/8TrMvZz7sfT3NVbJMoT97UeGkMnPDnv/BgT6AIMNBNqDGUxz+PGKMpvzGcwzQpttCtp5vhTUSWQ9YvGM5DvpRlUR2vB8FkJPZGJidneSdQBIpWHHHGNMUAMg97OQ0dXfzUunoy7WFd3a+1qTkAcFZLJDbENgnC8pGs/4ktcZHvo+y+aOJx+PjdV+EHsIXJseibdEl7F96xia00F61I4II47394upWt3lNAKFerZpZNKtw37/ivoEMwmuw3SQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=bytedance.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=oGKNVB69wurMCLPvdqcLe36qhX1WPx65AE96vDluugY=; b=X5QjZb/y5KJZE6nq1VCw8uNp+OJVneWn85gHbzdN3wW3QvwzXX038olchi9U3SIBPQ3wJCCis4RyUYTkQ+P9XjHS12c/yE4eikFasnFt0qcbLXR3a5eVcRv8ovm3+puqifqvzUdNXEkUX6mM+NIvKuZnD8dNv/dFkXnHDNmZU9Y= Received: from BN1PR10CA0011.namprd10.prod.outlook.com (2603:10b6:408:e0::16) by SADPR12MB333558.namprd12.prod.outlook.com (2603:10b6:802:101::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.569.8; Thu, 29 Oct 2026 09:35:03 +0000 Received: from MN1PEPF000793FF.namprd05.prod.outlook.com (2603:10b6:408:e0:cafe::84) by BN1PR10CA0011.outlook.office365.com (2603:10b6:408:e0::16) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.569.7 via Frontend Transport; Thu, 29 Oct 2026 09:35:03 +0000 X-MS-Exchange-Authentication-Results: mx.microsoft.com 1; spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=satlexmb07.amd.com; pr=C Received: from satlexmb07.amd.com (165.204.84.17) by MN1PEPF000793FF.mail.protection.outlook.com (10.167.249.201) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.569.4 via Frontend Transport; Thu, 29 Oct 2026 09:35:02 +0000 Received: from satlexmb08.amd.com (10.181.42.217) by satlexmb07.amd.com (10.181.42.216) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.53; Thu, 29 Oct 2026 04:35:02 -0500 Received: from [192.168.0.152] (10.180.168.240) by satlexmb08.amd.com (10.181.42.217) with Microsoft SMTP Server id 15.2.2562.53 via Frontend Transport; Thu, 29 Oct 2026 04:34:56 -0500 Message-ID: <0676993f-c04c-4e4e-9f8d-1650c8fd6d6e@amd.com> Date: Thu, 29 Oct 2026 15:04:51 +0530 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 1/3] sched/numa: make free-space tiering promotion bypass configurable To: Li Zhe , , , , , , , , , , , , , , , , , CC: , , References: <20261028041253.74839-1-lizhe.67@bytedance.com> <20261028041253.74839-2-lizhe.67@bytedance.com> Content-Language: en-US From: Bharata B Rao In-Reply-To: <20261028041253.74839-2-lizhe.67@bytedance.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MN1PEPF000793FF:EE_|SADPR12MB333558:EE_ X-MS-Office365-Filtering-Correlation-Id: d749afd4-4247-4fbb-ed80-08df359fe89a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|23010399003|376014|7416014|82310400026|36860700016|921020|4143699003|11063799006|56012099006|261022075727099003|261028144727099003|261026140227099003|261021121427099003|261022105027099003|10067099003|18002099003|22082099003|6133799003; X-Microsoft-Antispam-Message-Info: NN8VyqDq0GbR/y4YMoOxeTzGHJnH8ayYdmHhmXheor/LXGsWOfq6jyc/NHEAYoQSiCoSoYY8X5NkDq8qn/4ekARST1hmS2AhleJiV06DkHwtfp/7wYB2rNjSZNKMwyI7MCbXouHCXK6R3LClhHFS5B6UrGAYigJzp/V9dJHGX9/4DUf2jqAMpLqiXW4R6j20NGIY6CBxvLODklnb1QJX5U9rJ88g52ZVblnpw4DqhEn1sdOVyo/iya4wI07c2s4QT8xnOvm2UrGaizOZTTcchhk7QNf3MqXP/QGAV6oD9zMdiO/2XjwzPUk6nh8acD2vMN/akAtm1gnyQWPvl+cHcuodmxLCMyNgGp8GYFvmQJ35jPQq3OcR2Y0w8EEncR9s5wo+rdFbNSJTzHaHNMJTF6OO5hqLArSBEAQQpiODG5L8+VBJZZK+QIMo43RUAGymEH+bRTywYgro9q0DY2ij/PlFo7SRJOxx8lrfow7psis1o/eX0INuYdzad8D+v6d4WDSM4pO7FVKRNxBrEaPHj3qXCs06CK1zD7dJxt82JyRMi2nvyhJVSfiTHwCa0lv1Ibm33nKXSiol8w7/RPjazuWZC2P3Gn1moNYjuWCloJvu02rnf5EWab3XCj3KUpao6m7zGXm1l6IMUuFE499w+vkx8bh6a47he6v0+JbJz+rdPFE7onNizmtL/jf+k8arhjBfCDcnRKoPRZGoZRlvQZyw1wf5srwu+pK7ElRRYgQiPZOOYvxd5Kr6rHEzt+dF X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:satlexmb07.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(1800799024)(23010399003)(376014)(7416014)(82310400026)(36860700016)(921020)(4143699003)(11063799006)(56012099006)(261022075727099003)(261028144727099003)(261026140227099003)(261021121427099003)(261022105027099003)(10067099003)(18002099003)(22082099003)(6133799003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Lvkzr5Wt4XfUGmn671Wv0A9HntpMjXwRvT/34/40x6jHaYk/nQ8/X05c9QyFbAWwjbOdT69fDA3OK8JEnpiZdIlsOhJJ+wuoJGNCApDW1s9V+GZAEOOu1BdfXCZUEtb1qI4SIC4XLVXVpc/mIVWjOL0aSlRCcAuyBTWNVo925Y8GwqkkzyQiAe49pkKI4VFpPt7O/s/jSV1SNRuDmw7drJ996Gw2F31GHqx3Nn6+PNB/VbLvPlOL3ONwOLnM6E8vamJLpb1r9QxvpRbsvlxEL1+ziu74sgrjHyqOzuqybUeuv1PPvKrAdJw8Bk1wH84kJL1WF7/TzM9RV21MIfqNlSf/meyg2L6hUt0/VdvmKX1o9bkBab6Qkly84X79t2QwmfOu4y6HmsuF/vdkErIPNOCcIK+AP9qmgCprC4XlgLhOlVMd2P1N06Ot7Y5zkS4n X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Oct 2026 09:35:02.7980 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d749afd4-4247-4fbb-ed80-08df359fe89a X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[satlexmb07.amd.com] X-MS-Exchange-CrossTenant-AuthSource: MN1PEPF000793FF.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SADPR12MB333558 On 28-Oct-26 9:42 AM, Li Zhe wrote: > Memory tiering normally promotes any recently accessed slow-tier page if > the target fast-tier node has enough free space. This preserves the > existing policy of filling available fast memory before relying on > hotness and rate-limit control. > > That is not always the desired policy. Some deployments may intentionally > keep part of a workload's memory on CXL-attached memory, for example to > preserve a desired DRAM/CXL capacity split or bandwidth distribution. With > the free-space bypass, short cold accesses and bursts of hot accesses can > refill the fast tier and pull the workload away from that distribution > whenever DRAM has free space. > > Redis testing exercises this policy issue. On a CXL system with node0 as > DRAM and node3 as slow-tier memory, a Redis test was run with > memory-tiering-only mode enabled. The test used a Redis dataset with 12 > million 4KB values. It reclaimed memory until about 85% of Redis > anonymous memory was on node3, used a Redis benchmark configuration with > a 10% hot-key working set, and then issued a short 256MB access burst to > cold keys outside that working set. The cold-key burst mainly touches > memory outside the hot working set, which is expected to remain mostly on > the slow tier. Can you please clarify if 85% of redis memory ended up on lower tier naturally due to overflow from toptier? I ask this question because, if it is a natural overflow/demotion, then it will be hard to find head room in the toptier to allow promotions that bypass hotness or rate limit checks." Regards, Bharata.