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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id A6BCBC282EC for ; Mon, 17 Mar 2025 22:35:01 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0DA3D280002; Mon, 17 Mar 2025 18:34:59 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 08A0D280001; Mon, 17 Mar 2025 18:34:59 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E43C2280002; Mon, 17 Mar 2025 18:34:58 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id C6C74280001 for ; Mon, 17 Mar 2025 18:34:58 -0400 (EDT) Received: from smtpin21.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 868AB802D1 for ; Mon, 17 Mar 2025 22:35:00 +0000 (UTC) X-FDA: 83232499560.21.93172CA Received: from siberian.tulip.relay.mailchannels.net (siberian.tulip.relay.mailchannels.net [23.83.218.246]) by imf01.hostedemail.com (Postfix) with ESMTP id 0F7FE40004 for ; Mon, 17 Mar 2025 22:34:57 +0000 (UTC) Authentication-Results: imf01.hostedemail.com; dkim=pass header.d=stgolabs.net header.s=dreamhost header.b=f1XJuASG; spf=pass (imf01.hostedemail.com: domain of dave@stgolabs.net designates 23.83.218.246 as permitted sender) smtp.mailfrom=dave@stgolabs.net; dmarc=none; arc=pass ("mailchannels.net:s=arc-2022:i=1") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1742250898; 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: in-reply-to:in-reply-to:references:references:dkim-signature; bh=fQZ8Peo0EcyLC8yIVFCFJCblTL90CxFK0J30iXAPUL8=; b=sD5gbR69xZFMZBTLb9wgj4fXCs/5cR8wR39t8MESyIC+CvovtWojYIwzdS817vaqUYLgRb hvy0KSQJhToeGbP1w0VzwlGsEAbFk8US0bX1krmK31nXs5CcGx0laiiZOXMqeyXEu2MK3o yUklP9TREKOsNIxQDnLORGS8n9dAinI= ARC-Authentication-Results: i=2; imf01.hostedemail.com; dkim=pass header.d=stgolabs.net header.s=dreamhost header.b=f1XJuASG; spf=pass (imf01.hostedemail.com: domain of dave@stgolabs.net designates 23.83.218.246 as permitted sender) smtp.mailfrom=dave@stgolabs.net; dmarc=none; arc=pass ("mailchannels.net:s=arc-2022:i=1") ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1742250898; a=rsa-sha256; cv=pass; b=Sl+etevso7bf4c1d7s3fY7idIy/W/Uixya8wySV5K9pxTeyFbBVcOtN6+It0M3Mqyc4o1d DoDK0ucDDa1kxGNR5if8R9QJ0+/M04z878+A0lhQEMAEwasydDOSf8e/iaQ6+RXbXpv0Ox NoZ7tFSMc8zHuqWdnTicqLxFEH3tif4= X-Sender-Id: dreamhost|x-authsender|dave@stgolabs.net Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 7975E1C4351; Mon, 17 Mar 2025 22:34:56 +0000 (UTC) Received: from pdx1-sub0-mail-a234.dreamhost.com (trex-2.trex.outbound.svc.cluster.local [100.114.55.81]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 8F1311C3867; Mon, 17 Mar 2025 22:34:55 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1742250896; a=rsa-sha256; cv=none; b=FwS4d3DpFzvId2ULlZAt13jdOomXbSoVqgkSX0nJmX77SWFrIKn3clNtQtHmN01As6dj8o 8fK9TuRS0/DmnhsIPpHDDCQLC/inis2OX3Q6gGV4h/D9l6FAgoyRjGCYOnDbvV6lvk0eFi tn0qymbjxL2CbSfL1ol9HWjLkQBQL4U81Pva70xO78N23gImS5u6MCJyJdiGWJV/CUKNC6 G/yZj1nEyLb3tD/dBwwXjh0xxFgqcrjVHsePUl2JfKukRE3KB8ZBd/c4ZJWzPIIhJ+FMSG D6FPvayAxtHxoXwPFZmTNiY6cRroSJaI5K12zV3QZkCVld9OA+qQSAjoowRHrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1742250896; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references:dkim-signature; bh=fQZ8Peo0EcyLC8yIVFCFJCblTL90CxFK0J30iXAPUL8=; b=5zrm9ICry2SzwKzkmn6k4LqYBbd4TtTQ4bqtLMXV87xg385a/WmabkfdVW3eN+ghgRL3mx YULtz5bPVGOPRoJxDgHvSDx67Wz7I/tnbgp/2cUp3gymeg+12ASu57ipQR8X3OjugBzxeC CGF9vq5c6HThqHVq7QyHs8CurzgwgRQMpNkA84y/sGKlbRoa36QEsN0rfCzSRMKpO2CIlP /joGrvvOq3LbKrnzmBEKuoJ+svtfXXhF1wNbsvwy0hXqkBKJaoa5o+Ve9ERIaoVMzPx2pS 3u4OkxQqAZPvv/vy2ZaHkhe/cVaZwL/kx32UEspV0SRt7V9s2c/YxJEyEz0/VA== ARC-Authentication-Results: i=1; rspamd-588454d544-jqzjf; auth=pass smtp.auth=dreamhost smtp.mailfrom=dave@stgolabs.net X-Sender-Id: dreamhost|x-authsender|dave@stgolabs.net X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|dave@stgolabs.net X-MailChannels-Auth-Id: dreamhost X-Invention-Fumbling: 2e88b8fa534c6be9_1742250896207_4080570025 X-MC-Loop-Signature: 1742250896206:2401649619 X-MC-Ingress-Time: 1742250896206 Received: from pdx1-sub0-mail-a234.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.114.55.81 (trex/7.0.2); Mon, 17 Mar 2025 22:34:56 +0000 Received: from offworld (unknown [104.36.25.240]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: dave@stgolabs.net) by pdx1-sub0-mail-a234.dreamhost.com (Postfix) with ESMTPSA id 4ZGqXs0qHTzGw; Mon, 17 Mar 2025 15:34:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stgolabs.net; s=dreamhost; t=1742250895; bh=fQZ8Peo0EcyLC8yIVFCFJCblTL90CxFK0J30iXAPUL8=; h=Date:From:To:Cc:Subject:Content-Type; b=f1XJuASGUzTFAevRUSWZvyaBpiUcAMUfDbbsikEVAiW327O8IhtNlgoMWxY7We3UY QsQdPKTM3TCb4tEiU3Oj92NXMdxa3BxrSbRmc6j9cX22eGGlXWrgaBKz/nKPvgztFA 5YL0fXIp45VLoyOicVkf27y1sTzW6qF5jfXiOzSaKB5Xh5f9F+JOE3EmBCBxZwU6ia WtV7c1Yxeu+t/EFoKABfbGxz8KTDizT1Hd3+iKXa8r7BGMpvW2TXw0uxDmvmpe2dwG qglE9jHfvhLW7AISaF32YRMe+Xwa+7nAn2DJdpSqCMTIV4CLIhXuhv1nB/LWwo+TKD hH95iCe8QKl9Q== Date: Mon, 17 Mar 2025 15:34:50 -0700 From: Davidlohr Bueso To: Jonathan Cameron Cc: "Huang, Ying" , Raghavendra K T , linux-mm@kvack.org, akpm@linux-foundation.org, lsf-pc@lists.linux-foundation.org, bharata@amd.com, gourry@gourry.net, nehagholkar@meta.com, abhishekd@meta.com, nphamcs@gmail.com, hannes@cmpxchg.org, feng.tang@intel.com, kbusch@meta.com, Hasan.Maruf@amd.com, sj@kernel.org, david@redhat.com, willy@infradead.org, k.shutemov@gmail.com, mgorman@techsingularity.net, vbabka@suse.cz, hughd@google.com, rientjes@google.com, shy828301@gmail.com, liam.howlett@oracle.com, peterz@infradead.org, mingo@redhat.com, nadav.amit@gmail.com, shivankg@amd.com, ziy@nvidia.com, jhubbard@nvidia.com, AneeshKumar.KizhakeVeetil@arm.com, linux-kernel@vger.kernel.org, jon.grimm@amd.com, santosh.shukla@amd.com, Michael.Day@amd.com, riel@surriel.com, weixugc@google.com, leesuyeon0506@gmail.com, honggyu.kim@sk.com, leillc@google.com, kmanaouil.dev@gmail.com, rppt@kernel.org, dave.hansen@intel.com Subject: Re: [LSF/MM/BPF TOPIC] Unifying sources of page temperature information - what info is actually wanted? Message-ID: <20250317223450.4j7xsnm46vtpo7xt@offworld> Mail-Followup-To: Jonathan Cameron , "Huang, Ying" , Raghavendra K T , linux-mm@kvack.org, akpm@linux-foundation.org, lsf-pc@lists.linux-foundation.org, bharata@amd.com, gourry@gourry.net, nehagholkar@meta.com, abhishekd@meta.com, nphamcs@gmail.com, hannes@cmpxchg.org, feng.tang@intel.com, kbusch@meta.com, Hasan.Maruf@amd.com, sj@kernel.org, david@redhat.com, willy@infradead.org, k.shutemov@gmail.com, mgorman@techsingularity.net, vbabka@suse.cz, hughd@google.com, rientjes@google.com, shy828301@gmail.com, liam.howlett@oracle.com, peterz@infradead.org, mingo@redhat.com, nadav.amit@gmail.com, shivankg@amd.com, ziy@nvidia.com, jhubbard@nvidia.com, AneeshKumar.KizhakeVeetil@arm.com, linux-kernel@vger.kernel.org, jon.grimm@amd.com, santosh.shukla@amd.com, Michael.Day@amd.com, riel@surriel.com, weixugc@google.com, leesuyeon0506@gmail.com, honggyu.kim@sk.com, leillc@google.com, kmanaouil.dev@gmail.com, rppt@kernel.org, dave.hansen@intel.com References: <20250123105721.424117-1-raghavendra.kt@amd.com> <20250131122803.000031aa@huawei.com> <20250131130901.00000dd1@huawei.com> <87h64u2xkh.fsf@DESKTOP-5N7EMDA> <20250314142412.00001689@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20250314142412.00001689@huawei.com> User-Agent: NeoMutt/20220429 X-Rspam-User: X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: 0F7FE40004 X-Stat-Signature: drqdnzg4qi5zaj854b313hs5iyw1og43 X-HE-Tag: 1742250897-691916 X-HE-Meta: U2FsdGVkX184l5U9hpiYsVubRGpks2VYasWad1pw5qHEz8bodpbBg7SgSoVQuq486G5qyMJIMdgYJL/NoMYGiI7ka+CJFzWwt+axXN3PBYCr3eeP3xp8wyXBzOl/2IB346XgXz4EgosFsZLi6aNhBQNPM3aXEPjbX+kJ1mWfec4X/JAH/6D12vu6O2EKmZKlUbcZkGTobnhwokLM/oTivaQ60/IGoKoewgVf+XxjzxEWxUTR7HtH/wrUhIvW5qVcMrUINwHRtv8LOXo9dYXhvas4W6wWGQP71M9pD2RYWDKd4sfoJQJKaoDka0J1aUXKPDZNJQJCS0WiKECb0xrJ1UnFG7m9zyq5OAaAQvkwHvKziaGNHV7NWWDMAhbHlFGpDuCA6AHNSyJrbDI+TeLjHl2K1T6a7xPmGDTjF3G4rJv+xd1v5qlZBUcjZU8n78w09Zy4zVZrEFhBf0OeBl62ObCsQf/qMXmGZ6tNLVi/DFN6rTSkHWHrMXNoXHQ4pLV0m4FZHBUoYNL87RNhQ4pJWLFXyLDBy9ZYhVqqLeJGipZwB+ob8h8+K59o9TFRDdFoXYqJxoOmDGriUsKomUrXUewqGN0lHGrSDHDkXko2YeiTTkhy4w6NK6218O/UY9y/Tf6Hi3lt2MKC9HwG7zNKaSD7DmK06X3S0dNZxpOR+62F1Z2hRxrFcc/YN47pR3Q5opajCxPNJcAyTsOSlXA4ygnHe8vAB44Jx3f/vQYCxjndSMB+5CvWjypwPxyaLyjIIexqcqPZF/46SV+Q6WAmL9RF/ETtrTXIWbvHKygvdQxZXAot/ZTp2QjS+oFii3tF2orbn6t42im65Vv/Rl76z5ppyj7AHrqSAi2mCaJy564wEkCIiRuOpsIccjF5WiZN2M/11argfYFyjtaqemB6lisBIwOSW14AaX5h3tfbtuxRGgca5V5ayPAt09CBz3FDUFQwkn2stU/Qvc4nZXd ip0FVVKG fGvumlA5UPv1CshUIWTs6+xS4mFfpQHradXeYTWCMtnqO6LKaNEgqBMt8VcUEEH5Rp3aLmN31V+WchDAbh9zHzoz1gVFt8nqwlm9fUG2Yv5xGQKKzHBTDxzKvIW0TDrS0LbBaE2oLhVOU/MCXW+3qOeWWTzomp2+B62Fsz7BA5D5eO+rsyL4kcezD9sPOFmPF5GXzvigxKBciyS8YOLdjRL+xBM3E1naXzDLHils0Qtq8MuQhJ541XBJCsOp4YiQUKThPEVFdoYgAMisHqr8jZOqVKzuXtujj5d3VJLKQS5zgh/P5KRv9E32U9uCtr39B0cgIMTECIlH2l5TJdJxLF7aq5qAlyTZwxOo2WfmMpu15vC0juj7cZVUlCtGcuLZJ6TCZX66xzLv93rzF8P1zJK5Zza0kB93ubYkCRrz206n3K9mjFPtp14gShg== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: On Fri, 14 Mar 2025, Jonathan Cameron wrote: >On Sun, 16 Feb 2025 14:49:50 +0800 >"Huang, Ying" wrote: >> Because the hot pages may be available upon page accessing (such PROT_NONE >> page fault), the interface may be "push" style instead of "pull" style, >> e.g., > Right, I was also thinking along those lines. Hot pages could be fed right into kpromoted (with the appropriate interface for 'phi' of course), then kicked to do the migration. This already has the frequency, and the destination node so no guessing as to where the page should be placed. So this makes me wonder kmmscand vs NUMAB=2... should both co-exist? Doubling the scanning overhead, so I think not (albeit non mapped page cache pages). The original data from kmmscand is with a busted nid selection, but now Raghu has a proposed some heuristics, so I am curious what kind of numbers come up in terms of accuracy and performance vs a NUMAB=2 migration offload. >Absolutely agree that might be the approach, but with some form of back pressure >as for at least some approaches it is much cheaper to find a find a few hot >pages than to find lots of them. More complex if you want a few of the very hottest >or just hotter than X. Yeah, also cases like different CXL type3 devices with different access latencies both saying here's what's hot. Thanks, Davidlohr