From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from MW6PR02CU001.outbound.protection.outlook.com (mail-westus2azon11012013.outbound.protection.outlook.com [52.101.48.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0B00A3644BC for ; Wed, 13 May 2026 02:56:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.48.13 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778641011; cv=fail; b=AEn8rgiHNsc0AI10S2z4fKS7CllMCSAU+v+KBh/YYGqlsy3UpdmRm15m3g6zrbiUh19ShZtJIoPJpHJOoZlUWABIe53QKYLmQ58qVrQd3TjmilfAIOAP2m6DAIVyD2Pm2J53mZYoArhkJZcPHIrrUx06mq61xTK2kVPHXOc9TlM= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778641011; c=relaxed/simple; bh=yYNUwC8CwuK7JlNBgYBw/+MtixSgMJkRYJwE7lwtWqE=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=ElDwKmUXF6sIfF9uWl9UgU5Mvd8vT0+lkmbGIqR/rgo1qgmE/efnfb9RefeUQUBeEO/t9CwZOoNjsd2TMe2jKc2gJGdm2GLZbS0gGuvr0JPRuwcjMU+icgj0fEWy1a0jVGolH9QP6M/mMj9mLK6+OwZL8UZOZwQ62+WHDFt/eOM= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=qL7/c+sq; arc=fail smtp.client-ip=52.101.48.13 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) header.d=amd.com header.i=@amd.com header.b="qL7/c+sq" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=H6G6qoo18a1fqSNbqpi4n30+MPKu4XaED7629y+d8R21CnrR+UfAhXhDHqGKnxjdCPj8U4pzH315GzdmdxTUfhWac24KrbOlsQVI5KJz8+zPPmihIfWPLQRVsOWQGVIaJIc2dLoOwnxGfloIsBOTNK27PmNqKy997hj956pjVAwlq2m0Tu8zIvtYZRoyJJ0uYR/gXUnJ6s56mJZcMU5hq9Voo1puFXw+5opszj+yF5BvEevfDoK8ROC2Jxd3kWyJPe2zsD3H0VjwrNP+cU6ZWKxRk61Ha5tMELxKYlSThMS8QUgMkWIMoC/LkCPibkQMjEdUzRYjK0JCenKp+juKfA== 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=P34angjjGWaJd4r0SmY0BxTaEav+44UAQbeq8l/Xvqg=; b=sNb4tzfS871Ipmyx27casaRh1a6wZetVN78aa/acgCHojpOIbVVqBVNtsv6cxaHf9lkSGu0IU++DCc1MuEIWM1/NSMB1raBXnYPbbVbeZIWObeQ2l6Sveaaflv1RtVR+6Pad4n4yq6KxW760cDc5CbQ8uimNV7H5NtnjVyzh9iQH+YHZUDt6e/rG0JlUh3uP2pJp9w3Sj3qEqyayujZifk2n0xCXnfMlEPf9BP4B5KngxAyTsH9jmOnT2LpWKSGULvVWZMxhk2QHopcvmDV99RKJE1BQmqSxKxSEz/7NvtrkS4BQcqVbGEycYyipQUcKK8tjxi5JbPN5xgo2H0zbnw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=gourry.net 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=P34angjjGWaJd4r0SmY0BxTaEav+44UAQbeq8l/Xvqg=; b=qL7/c+sqyZv0PB3+kLpIKyqAeA9YeADlxr97uQ+sTdnPg17CzZgnS7wNlx2Cw2TNxLbM080zya1Pdg0NA5/+vkm9nTxgSA4HRwS42VB6snsGimmM59nHH5et4/CPMiguQ9TuR0DZF6jGJbflUhzzO7Y7ST5ajgTNNZ3ZzwIziVI= Received: from SJ0PR03CA0148.namprd03.prod.outlook.com (2603:10b6:a03:33c::33) by LV8PR12MB9406.namprd12.prod.outlook.com (2603:10b6:408:20b::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9891.23; Wed, 13 May 2026 02:56:39 +0000 Received: from SJ1PEPF00002314.namprd03.prod.outlook.com (2603:10b6:a03:33c:cafe::6c) by SJ0PR03CA0148.outlook.office365.com (2603:10b6:a03:33c::33) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.9913.11 via Frontend Transport; Wed, 13 May 2026 02:56:39 +0000 X-MS-Exchange-Authentication-Results: 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=satlexmb08.amd.com; pr=C Received: from satlexmb08.amd.com (165.204.84.17) by SJ1PEPF00002314.mail.protection.outlook.com (10.167.242.168) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.25.13 via Frontend Transport; Wed, 13 May 2026 02:56:38 +0000 Received: from satlexmb10.amd.com (10.181.42.219) by satlexmb08.amd.com (10.181.42.217) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.41; Tue, 12 May 2026 21:56:38 -0500 Received: from satlexmb08.amd.com (10.181.42.217) by satlexmb10.amd.com (10.181.42.219) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.41; Tue, 12 May 2026 21:56:38 -0500 Received: from [10.136.47.225] (10.180.168.240) by satlexmb08.amd.com (10.181.42.217) with Microsoft SMTP Server id 15.2.2562.41 via Frontend Transport; Tue, 12 May 2026 21:56:31 -0500 Message-ID: Date: Wed, 13 May 2026 08:26:30 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v7 0/7] mm: Hot page tracking and promotion infrastructure To: Gregory Price CC: Andrew Morton , , , , , , , , , , , , , , , , , , , , , , , , , , , , References: <20260504060924.344313-1-bharata@amd.com> <5110e313-8c1e-4f73-b77f-68d20c2046c8@amd.com> <20260508181812.d2ab17b08529f17b330e157c@linux-foundation.org> <893081eb-d747-458d-b6c6-86fb04bdd5b9@amd.com> Content-Language: en-US From: Bharata B Rao In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ1PEPF00002314:EE_|LV8PR12MB9406:EE_ X-MS-Office365-Filtering-Correlation-Id: b81ae7f5-16bd-4327-9255-08deb09b410f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|82310400026|7416014|376014|36860700016|1800799024|11063799003|22082099003|56012099003|18002099003; X-Microsoft-Antispam-Message-Info: 6nXaon9gQFKti3IyOEhYmDC/NVGL1sMHOphMT4uxH1wAO1fj0N5RvvytMWdKi7ofuK+fG0Rm0Kqsm7X2FmKuGlrY3NG7IVLiOLcV6qlOQQd6I6FX0dEFcypUUG4RAOjBCrQf6sPkNGAOFRqxGAS+BPFZKOOVHCBYaycsSHfZpbK+W2/rbDjSn7gdCRXsOkbyuluGoQGdeS7Ts6swFNPOY11I1YdFkt7VdPQ5/BwmG7TDxWUcSJcodyXaFvjIS1SxctyRrTW55hoRRqrwV+FJIPNgMdLAAQg4H5cDb5NDfs+0IBtaKRTt35zhsyB+q9gKc2r3hIKM7z70juw9DB0XNBjpjma6LeHPYRcvjC31S3Gw9t9qqAn9mnLpP6jV9gOj7cZFKesBwcNH/++zFBUb9gp2OhtpZUSqrrC+3Y28eLVr15RZp4FkqWiI476CtvV5OTeKJmYnu8PisxjIpDOgKW8pCVVvhXlehEkxXFg5QjelMnHXW2m3QJtoBg9b5WMqa0F6mB8AzHVVvIpLbQCNipnDH9brdm61T7WPNuhnstJDFiWI6tZRpMbXD6iO/dMDH29wuVqZzU0vi2bjCzlvyETg2o2xzSLlqbfr3FDCMW+Qmrmayqss7oKy1A0AcU2YM78Q0bNlMnLSuZOUfMoyarO2l1RUfonN4zecVx5CcUUubrAlj0ZykdCw85Vq/Ds7lu0HGg+E978IdxFsrp1MZ3PBusoLfgl643doZ/ArnfI= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:satlexmb08.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(82310400026)(7416014)(376014)(36860700016)(1800799024)(11063799003)(22082099003)(56012099003)(18002099003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 4zqD5LKXVnKJ7PBOhg4Wdwl3QnJJ+44NWspzFwvoNgTtl+tJH/sOzvTuUbjv4sWjgwGaP1rDCxrTyMIe5ie50IcdImboEb7D/sSbE+M/XGZ8ylPOasbRvZvljSFJIV0Kb9OJVzxXN2AmZPVDibTpWagpe+5CzmQrMOCDco/jDjK0M3jp6Uwe6M4rK3nWE8zxM26nBqv4LxFK1QBtp80v4U+2qL054fDVGSgksZqkCRiGmQmw/+ozMAvZIbbswTChnRD1Gda9kQRu6yUaBiUTgGzXEbOw1/23loz8SOwKwzSelWP7e+MzvdEAG73+rqD5fgQJyuEYNjKns2MhyEy47ZUrWDSsU79L5FKByW5+/ekF6aMIdUKBT6mouoam5ZpTK3NCFk5YdG/Dehk3ynxM58zwheEP52HhjyjyNdodLOeL2K1TN42EEgd7ffX8+SXS X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 May 2026 02:56:38.9800 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b81ae7f5-16bd-4327-9255-08deb09b410f 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=[satlexmb08.amd.com] X-MS-Exchange-CrossTenant-AuthSource: SJ1PEPF00002314.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV8PR12MB9406 On 11-May-26 8:08 PM, Gregory Price wrote: > On Mon, May 11, 2026 at 04:07:16PM +0530, Bharata B Rao wrote: >> >> The entire point of this patchset is not just about improving the performance. >> It is mainly about adding a new dedicated infrastructure for detecting and >> promoting hot pages. It is about having a subsystem that can act as a single >> source of truth page hotness in the kernel. Though we aren't there yet, we have >> started by having a minimal infrastructure that centralizes the hot page >> promotion and associated heuristics that currently sits in scheduler so that the >> same can be used with other page hotness sources as well. >> > > The goal of hotness tracking in general is to improve performance. Agreed. As I have mentioned elsewhere in the thread, right now we have just moved the existing promotion mechanism to pghot, hence the initial concern has been to ensure the earlier performance levels are still met with centralized promotion engine that does batched promotions from non-process context. > > The goal of PGHot should be a reasonable baseline for the kernel to > course-correct LRU inversions across tiers over time, because LRU > threads only scan invidiual nodes and don't compare across nodes. Right. > > I would hazard against trying to wholesale state it "Shall be the single > source of truth", as we will inevitably discover some condition which is > not covered / cannot be captured / we will simply get it wrong. Yeah. The ideal goal of single source of truth may be a bit far fetched but pghot is definitely a subsystem that can work with multiple page hotness sources, aggregate hot signals from them and provide a single unified promotion mechanism. Regards, Bharata.