Message ID | 20240722172917.503370-1-ziy@nvidia.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 259EDC3DA59 for <linux-mm@archiver.kernel.org>; Mon, 22 Jul 2024 17:29:31 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 82D7E6B0082; Mon, 22 Jul 2024 13:29:31 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 7DDE56B0083; Mon, 22 Jul 2024 13:29:31 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 62F616B0085; Mon, 22 Jul 2024 13:29:31 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 44B206B0082 for <linux-mm@kvack.org>; Mon, 22 Jul 2024 13:29:31 -0400 (EDT) Received: from smtpin20.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id E335E14199D for <linux-mm@kvack.org>; Mon, 22 Jul 2024 17:29:30 +0000 (UTC) X-FDA: 82368075300.20.A274669 Received: from NAM04-DM6-obe.outbound.protection.outlook.com (mail-dm6nam04on2051.outbound.protection.outlook.com [40.107.102.51]) by imf13.hostedemail.com (Postfix) with ESMTP id 07FB420007 for <linux-mm@kvack.org>; Mon, 22 Jul 2024 17:29:27 +0000 (UTC) Authentication-Results: imf13.hostedemail.com; dkim=pass header.d=Nvidia.com header.s=selector2 header.b=oixHRNUy; arc=pass ("microsoft.com:s=arcselector10001:i=1"); spf=pass (imf13.hostedemail.com: domain of ziy@nvidia.com designates 40.107.102.51 as permitted sender) smtp.mailfrom=ziy@nvidia.com; dmarc=pass (policy=reject) header.from=nvidia.com ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1721669322; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=i8Gzw7y7sG97NEPUr6qENMLG1Y85frlPpN/bV4VSYFs=; b=SYN63r1jbzzJcaYmWptnO135nq8ZsdzhFSTlotH9GGMAxtBVZXMTQXnbSfeXQEhSKTsVnd Y3W3vHIFmfyB+HFfvzU5M/zZrQDfDGIOr0YWYKgX7vOoOsyjShtz01QPNY7hkFUKPvqM+/ eNMawK/wjXkfWdU03c6ewOyiMjPRsmY= ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1721669322; a=rsa-sha256; cv=pass; b=mJayILNfNZGCVrw6h9snNEMp+tUtDx7PEjgCquip+qiRSD2poNpUvTm38R+Qh+t2HU492g F5G5CKYiL3RG99GaR4Iv06bC3uKaDDttbsrzoFtOlt39ML9PMjqJrxwbI21HBctXt93CnG YCmlmmCQFEqf73nZCrDLgEi5HoQVxCM= ARC-Authentication-Results: i=2; imf13.hostedemail.com; dkim=pass header.d=Nvidia.com header.s=selector2 header.b=oixHRNUy; arc=pass ("microsoft.com:s=arcselector10001:i=1"); spf=pass (imf13.hostedemail.com: domain of ziy@nvidia.com designates 40.107.102.51 as permitted sender) smtp.mailfrom=ziy@nvidia.com; dmarc=pass (policy=reject) header.from=nvidia.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=kI2TQ9WSkW+wpvcuCMnkx7hAYfWnnHxMKCFberp7VBQTfRWyfYnw7K39KS6GsE3ewxo6qNe2FMPyrpKjI1pJ4QM5Vb0Q0xPEMrlrdHh6O8wshQU29Omlp5BsJDqabx1ev6OF/V75Dw7pajSjAdHxlQ1CefbXQ+dtbEKFXJdtPGIiwvXZ3G6PFi8ovpQbVNNEf8IkIxAWA8Q/LL7YQxE4GVtVXVakeo+LIG0KVXH0SZIBtSDZXSYOvRP+R2PTNlttiiZx/0tw268LaWo91fePZkEfP1SmIFYZrpxcHl/DkoVqK0HTmGrmebpDY0HX5DLJ11d8UodvOCkyf1L8qGxCWg== 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=i8Gzw7y7sG97NEPUr6qENMLG1Y85frlPpN/bV4VSYFs=; b=AW5d3PRlWA4H4YnVIvJsJzlH5N6rnimKHBy68p5gtQGa/OtZocqatjH/LV57HjO1WOKTcZVCe4/9U5ZWbd7GeEC+D1DcLxfY7qUi18WHNArVlbFPCdpEalj2fWRcBdbBnbLmdDXIdAMQWFWUKW89dpmNbf38JFUDelUu+nQe/mIFoe3blkGy7xgE3Qbv0BiEGWj3bSJN+uK+MNpmqo92HdySs8Cbc6AbB/Lyl/FOZ09XteC+2bb4TykltV6vS3dRTKbkWlm1QThQj1gIqtPYvUA7i5SuWfbpxdPffWjvCIra4A0WN72LaC0svi8ghC2FJHUrPtvrMidyWrNUgWsNfA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=i8Gzw7y7sG97NEPUr6qENMLG1Y85frlPpN/bV4VSYFs=; b=oixHRNUyxtYJ8ZiT3DOVxm/ogEioAThIPzfNa8rkP0bdnMG2LaJMXcBCJJsrW6yf/U6A6ml0PSu3KUQpf4Fwg49ASVCjWMrYugfhATZ7GNDkcBLqieM55tXTYIcerk4iLA/zc+wp6WPkqnsj2DyOZMdfliWH6OpbnmWYOt8TSrFzJYBCQE+WtfUjQCw4KmE+mhg4oCJ1SyBnvxobjRmlhAxOoFZRZpYjr4gy71jk8Ef/qvhy8u2Ok0e1iucspoSGcM30Xam2qGinngvgdlmxAx3g1hdGLruc29spLp2z9Rm4Mf6//3qOV7PGSOYYSwW3RC32aD9MpmLLOOUo+FhAmA== Received: from DS7PR12MB5744.namprd12.prod.outlook.com (2603:10b6:8:73::18) by SJ2PR12MB7944.namprd12.prod.outlook.com (2603:10b6:a03:4c5::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.14; Mon, 22 Jul 2024 17:29:22 +0000 Received: from DS7PR12MB5744.namprd12.prod.outlook.com ([fe80::f018:13a9:e165:6b7e]) by DS7PR12MB5744.namprd12.prod.outlook.com ([fe80::f018:13a9:e165:6b7e%4]) with mapi id 15.20.7784.013; Mon, 22 Jul 2024 17:29:22 +0000 From: Zi Yan <ziy@nvidia.com> To: Andrew Morton <akpm@linux-foundation.org>, linux-mm@kvack.org Cc: David Hildenbrand <david@redhat.com>, "Huang, Ying" <ying.huang@intel.com>, Baolin Wang <baolin.wang@linux.alibaba.com>, Kefeng Wang <wangkefeng.wang@huawei.com>, linux-kernel@vger.kernel.org, Zi Yan <ziy@nvidia.com> Subject: [PATCH v2 1/3] memory tiering: read last_cpupid correctly in do_huge_pmd_numa_page() Date: Mon, 22 Jul 2024 13:29:15 -0400 Message-ID: <20240722172917.503370-1-ziy@nvidia.com> X-Mailer: git-send-email 2.43.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: BLAPR03CA0085.namprd03.prod.outlook.com (2603:10b6:208:329::30) To DS7PR12MB5744.namprd12.prod.outlook.com (2603:10b6:8:73::18) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS7PR12MB5744:EE_|SJ2PR12MB7944:EE_ X-MS-Office365-Filtering-Correlation-Id: 48175789-c3b4-4923-7a53-08dcaa73d35d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|1800799024|366016; X-Microsoft-Antispam-Message-Info: ifPb+0xJDLfklnWWQRko1xOMmmsPe6+01/9ocyQWCtVdsSMS8zD5yL7GR5s+f/sHtUpUhAy5iytsNm6iIRL08u7y5MspDZnoT480DG7GfZUGZ5UrjDVOFgySuGTBh29KrXLYahOiqZ28hH9lBWxXvrpuot2y5+L7BW6mu9B+MM/yvGnTVqNlIbN/r0Qt7uNmJPm/+3FPAVsCF/72/u4EQnjCXiYxwejzdV349v293PypP1qpjNPLoaUe8eccg7J2OQ7N6Md6+UuaL/evVje3dSgktG8DzO3tCBb4pbQCf8z8iodmmMHwuo2eDyAD8a7ZlRCbDZuhaKjwf9mzGMSRhWNETGl3XqlUZLATOqL3lc70iYKoWMeLePNQPpmUejeP2iW9D7njG5yUt8zrKlL3aFx9i6iqUniXDQjnDjXhqc2UU8T4awlMwdckkLErdXA7oYdDHjgQ/qJgVwqSqXaaAwQ4pSdJ6rEe+uWHD2kmAYkOEYTQK5Lg8LQVuymVw2+9TM4pZSGa8do/t4r2+vVsqC0qjaErI/B6H0Yi2p3jaNTbjBGNiTtkl/p1Gv5TmjdNjEq6q26VlOGqjDd6GzHbkuZmKZDPyEOrgcpRXEao3UEkuz9bZ2O5RrWny2pr/nS2GWf1aTdyE/h0yRGQwkUGFXZq3026hgmDfyPPdwjjI2vlAJkPTVd0rVTDiOS/bZp9Hq6eOj0Sk0ByYbhbMueGBNw8Tr2xcrqySJpM60zWIAse07hgH+U/2FTik2/Y7rnMVARGR5T86NusGMdZAwC9biUUjXJxCrJ0r3jK9EcgW4JseWF5oeX1CZAJQv+wcvzT2xJLhz8kYkSUsKZEFdd5DSjvxzTXEo9nXQVNHODGR+4PLxmh3xZ70gJLV0OdkAKJMFH5+axU4XaUh1DonYItk+jBIdcXm0TqW7MiMNA1AzCAS+kR3QY07AcKQDvUB0g++jsyboy9kvWXdySTZ9uu1gkzqWjOoYYqHeT96v/Zhjip1einlEH34t6y81fv+H8g2gqeEV2NUrqrZ1/Ujn2iknQ9Lto0qLQSPZeSot2j4qNJcMuKwt0VtIFq0vron7XDimgpgIUa8q0CrdLE7gUVqK3SLYpwJjNlsWO+Orac9NgB+5AmGkWrMyEh2LwXCIobvq937KqFfG5U2ZsI+D2ywm0BprFrVNfjL879USw8phjSrfLIp8fWD3+pGfDCN9jORkXRu4RmgBLdOMZXsg4uhR1G5Q1OP5FwjggjGgw2nDVC9FkxZxNrq08Mh/IaN+DxmluTvmqLA1oMfLcFaucv23IvHJhVJ29SRynO9Z58renFtP3ssxo4ZAU33A3zLKbQNeIFzTJc3hKmeZuK3enr1A== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DS7PR12MB5744.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(1800799024)(366016);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: tpwmDIS3jChw8UwWoWF08Uq2KmBjly6fuiRcb5rGpzBC21t/SIQWFAT3fHvC6j0Ud0IwRIrxK0Ll8lAV/XMrmD7rDnKQYcaGYq930vmrQLRXgvpzphrMScBrODK/OBPqWJ8ncR5AwbIK7+1TwoCrBh0s6Z7c2md52Drix+Ik89ac2nlTGMhFeu1l9D4dhf2jqztR0RxRosQx8mz49Mn/GKXUY7wNmqFSfq0rlrc3nf2GqrZfYzWlmciEQoyO2pRJCit1TUisLNSyYoqMe1nktNUxH93WRAvYf+a3oxqCODAygnuvH5XtjlYC/MqAwXzLRSKOr4MWuCRqFfs6yDXPxTU44xQskdP+r/tm3jdpUcpzGi4EROLLrPcca9Fq3pm8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95e+i0AdMymhRKxLfrvwnLo/kMD2LFvd3zwhZj+GM9P5EensiunoB/O6vtFIKN0unPNQBQOVJ3Zxbdvh3g54XlRa8gM2dddqKJfdo1wniOEADCQkHs= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 48175789-c3b4-4923-7a53-08dcaa73d35d X-MS-Exchange-CrossTenant-AuthSource: DS7PR12MB5744.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jul 2024 17:29:22.4941 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: loKXtc20IkCMCkoNVdshOPqDOrFWX+DE28F7ruoiYfQa5NUoRvHPY6DmISLukdl4 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR12MB7944 X-Stat-Signature: idukk89j7i8w49ck13quf8mophbekpg1 X-Rspamd-Queue-Id: 07FB420007 X-Rspam-User: X-Rspamd-Server: rspam08 X-HE-Tag: 1721669367-930864 X-HE-Meta: U2FsdGVkX1/PwQixUy7+UIRBADLrFfUWw42fWY8SFXCOLaofrGKw6ZmO9l+qfu2fYurJuPyr5e8sWI5JBzAwgmqCj+5s8dEeb0zRb7BCPHzpVzbwVv7Hcq0O4LYcM9MBB+XcmpxQgysgKPQh+nP2ZBW4N+sFnl1ql360PpLz5UckWMQTiG+Ai4Nka+66OMvICOGS6InHFg6RJQ+Xg6JlROfkhMWdDpFhRtDFpSb/iXATCT+O/r2I1hZXYuMEte/Ac+SPlRidLCaa/a3qeLi8fIbhaA34CM7hrHz3J2cB6bkzNMIs1BUkspj1l6wgLsQWfJIhuVphRBMjV9bNd7+Dz7B4fDSHq2UmytANJFIK+46xD0H2LRqsg37hlvW6IUqAkISdtE/oM1xAB8gotL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=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
[v2,1/3] memory tiering: read last_cpupid correctly in do_huge_pmd_numa_page()
|
expand
|
diff --git a/mm/huge_memory.c b/mm/huge_memory.c index f4be468e06a4..825317aee88e 100644 --- a/mm/huge_memory.c +++ b/mm/huge_memory.c @@ -1712,7 +1712,8 @@ vm_fault_t do_huge_pmd_numa_page(struct vm_fault *vmf) * For memory tiering mode, cpupid of slow memory page is used * to record page access time. So use default value. */ - if (node_is_toptier(nid)) + if (!(sysctl_numa_balancing_mode & NUMA_BALANCING_MEMORY_TIERING) || + node_is_toptier(nid)) last_cpupid = folio_last_cpupid(folio); target_nid = numa_migrate_prep(folio, vmf, haddr, nid, &flags); if (target_nid == NUMA_NO_NODE)