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 83161C3DA4A for ; Thu, 1 Aug 2024 08:06:41 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C371E6B0096; Thu, 1 Aug 2024 04:06:40 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id BE6436B0098; Thu, 1 Aug 2024 04:06:40 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A87276B0099; Thu, 1 Aug 2024 04:06:40 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 8AFBB6B0096 for ; Thu, 1 Aug 2024 04:06:40 -0400 (EDT) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 0CDBCC08FC for ; Thu, 1 Aug 2024 08:06:40 +0000 (UTC) X-FDA: 82402944960.02.59C1D19 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by imf04.hostedemail.com (Postfix) with ESMTP id C2F9740019 for ; Thu, 1 Aug 2024 08:06:37 +0000 (UTC) Authentication-Results: imf04.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=O7a8lRd1; spf=pass (imf04.hostedemail.com: domain of david@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=david@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1722499592; 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:in-reply-to:references:references:dkim-signature; bh=fSbKvwYBQ6IDwLVCp8S4T0F+fvx1pgc6qaCobZqxwZs=; b=zWBQIK27v3c6i+2lgQG837P9k8vAQSZHZ6nTpMq/nha7xajtY2DvRuxMSBrXcYvwoIbvky 1vbJyhT5FkWTIiw1GK1/PJv/SCl/t7EeknGVkg6cwmid7aATW6rGhSM7c3u9UppJ2+xx/6 lJa/e0Jw3Vj0y5LJkhfxFFOyRAz3APM= ARC-Authentication-Results: i=1; imf04.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=O7a8lRd1; spf=pass (imf04.hostedemail.com: domain of david@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=david@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1722499592; a=rsa-sha256; cv=none; b=qpAmtf7bpkag9qKjnIP4iAbvuSBWEFZ+dJRk7Z43esygngWYjmH99Uwt8EKyuB/A0ztVkv v9LmfWhfqv9lDfG/RHWxQhyg2Zwze4F0eDpE9p/SjkLmbemSVkI8VegzBOqiKDDr+qeoYa EgYftav7sFDzDkc8pUZXjcswarbK4Ik= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1722499597; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=fSbKvwYBQ6IDwLVCp8S4T0F+fvx1pgc6qaCobZqxwZs=; b=O7a8lRd1gircy0diBm/+elFUCdpUqyOdpDkOGbgmfzf6OHfcUvx0is+A5IPTqJ5Qkq/euY 7cQoNpzgPKCW/aQqLfp/Wf8rvjDDnbMFYbzahMzH/ndHBdEez1hn+TqOEqtUiddjhjwzRL lTIjt2uV/jdbA7dNug90cr8DQl/6wXg= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-122-GMPGk3iuNhO11LZizOObTA-1; Thu, 01 Aug 2024 04:06:35 -0400 X-MC-Unique: GMPGk3iuNhO11LZizOObTA-1 Received: by mail-wm1-f70.google.com with SMTP id 5b1f17b1804b1-4281d0d1c57so8835315e9.1 for ; Thu, 01 Aug 2024 01:06:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722499594; x=1723104394; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:from:references:cc:to:subject:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=fSbKvwYBQ6IDwLVCp8S4T0F+fvx1pgc6qaCobZqxwZs=; b=JR9RokcqU/R5Pv5QEmIZ3MHikMwm28wlGXeSq0mL7uy7wP9NFreWElVfoXVUSv57+K ygOKnYtKZwOOsOLwv2Z/TSeOs5ratrvxDWCNhoji5PWXz/8i/bFBwO+J7kQzvSGGAk/P IouCoXS3LYaTNf0zUZjKfzAJdwaxEVhprl3dv2Bn1vC8pgWyuEjJXwRKWzwENpjzX5LQ 5g7MO/rrwvQShuMol0iWL3YvKweZcMmPpvgVkjV+sYsYlps9OmFPcqccB6jyxCoff44T eX6s/gl1MLqMW3e8gmClQme81v5GcON0PkIzi5He/rz+fRCF0UFqZcW2Nu32bgqd9oZV O5oA== X-Forwarded-Encrypted: i=1; AJvYcCVaJSUtW7SJyYtnRqNhw85CRGytMwK3ZsOS/QQ1hsHy/9nMb5pW3/GgdkwgVMYBwDaNOv5jI+wfQPw5/rXk4sJYzzU= X-Gm-Message-State: AOJu0YyyrAzzc9EvjdBqsKC9Hv0eekRr1RUm+0oW7WEcGYnAow6uICUu Sy0XWeuMtv02NXNH6tlPLtVDx6fm4tn9oY3FUkoBRRng90pnuP7T8GvmY4WvRW7LBF5Ld0ox3nv WPhKFxvVLIq+BSINIgYTwmfxuC7C8o4CBqjCg3yVhP+qYnUVJ X-Received: by 2002:adf:f689:0:b0:362:d7ac:ae70 with SMTP id ffacd0b85a97d-36bb358fd39mr544353f8f.5.1722499594264; Thu, 01 Aug 2024 01:06:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFdQkA9Thfc/zZtwRGa6zF8YZ/zBF7A8+btq9cjaLSxpyF6gczDx4HontSXF8Yig0G3FrgBDA== X-Received: by 2002:adf:f689:0:b0:362:d7ac:ae70 with SMTP id ffacd0b85a97d-36bb358fd39mr544300f8f.5.1722499593669; Thu, 01 Aug 2024 01:06:33 -0700 (PDT) Received: from ?IPV6:2003:cb:c707:5c00:e650:bcd7:e2a0:54fe? (p200300cbc7075c00e650bcd7e2a054fe.dip0.t-ipconnect.de. [2003:cb:c707:5c00:e650:bcd7:e2a0:54fe]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-36b367c0113sm18763970f8f.14.2024.08.01.01.06.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 01 Aug 2024 01:06:33 -0700 (PDT) Message-ID: Date: Thu, 1 Aug 2024 10:06:30 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 0/1] mm: introduce MADV_DEMOTE/MADV_PROMOTE To: BiscuitOS Broiler , linux-mm@kvack.org, linux-kernel@vger.kernel.org, akpm@linux-foundation.org Cc: arnd@arndb.de, linux-arch@vger.kernel.org, chris@zankel.net, jcmvbkbc@gmail.com, James.Bottomley@HansenPartnership.com, deller@gmx.de, linux-parisc@vger.kernel.org, tsbogend@alpha.franken.de, rdunlap@infradead.org, bhelgaas@google.com, linux-mips@vger.kernel.org, richard.henderson@linaro.org, ink@jurassic.park.msu.ru, mattst88@gmail.com, linux-alpha@vger.kernel.org, jiaoxupo@h3c.com, zhou.haofan@h3c.com References: <20240801075610.12351-1-z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knvQWBXS lQCWmavOT9sttGQXdPCC5ynI+1ymZC1ORZKANLnRAb0NH/UCzcsstw2TAkFnMEbo9Zu9w7Kv AxBQXWeXhJI9XQssfrf4Gusdqx8nPEpfOqCtbbwJMATbHyqLt7/oz/5deGuwxgb65pWIzufa N7eop7uh+6bezi+rugUI+w6DABEBAAHCwXwEGAEIACYCGwwWIQQb2cqtc1xMOkYN/MpN3hD3 AP+DWgUCXw7HsgUJEqkpoQAKCRBN3hD3AP+DWrrpD/4qS3dyVRxDcDHIlmguXjC1Q5tZTwNB boaBTPHSy/Nksu0eY7x6HfQJ3xajVH32Ms6t1trDQmPx2iP5+7iDsb7OKAb5eOS8h+BEBDeq 3ecsQDv0fFJOA9ag5O3LLNk+3x3q7e0uo06XMaY7UHS341ozXUUI7wC7iKfoUTv03iO9El5f XpNMx/YrIMduZ2+nd9Di7o5+KIwlb2mAB9sTNHdMrXesX8eBL6T9b+MZJk+mZuPxKNVfEQMQ a5SxUEADIPQTPNvBewdeI80yeOCrN+Zzwy/Mrx9EPeu59Y5vSJOx/z6OUImD/GhX7Xvkt3kq Er5KTrJz3++B6SH9pum9PuoE/k+nntJkNMmQpR4MCBaV/J9gIOPGodDKnjdng+mXliF3Ptu6 3oxc2RCyGzTlxyMwuc2U5Q7KtUNTdDe8T0uE+9b8BLMVQDDfJjqY0VVqSUwImzTDLX9S4g/8 kC4HRcclk8hpyhY2jKGluZO0awwTIMgVEzmTyBphDg/Gx7dZU1Xf8HFuE+UZ5UDHDTnwgv7E th6RC9+WrhDNspZ9fJjKWRbveQgUFCpe1sa77LAw+XFrKmBHXp9ZVIe90RMe2tRL06BGiRZr jPrnvUsUUsjRoRNJjKKA/REq+sAnhkNPPZ/NNMjaZ5b8Tovi8C0tmxiCHaQYqj7G2rgnT0kt WNyWQQ== Organization: Red Hat In-Reply-To: <20240801075610.12351-1-zhang.renze@h3c.com> X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Rspam-User: X-Stat-Signature: hsw5b3oqm1jeuc49tiaa78e3o8t8bdb1 X-Rspamd-Queue-Id: C2F9740019 X-Rspamd-Server: rspam11 X-HE-Tag: 1722499597-433110 X-HE-Meta: U2FsdGVkX18BM1/nmQNX2rRO4JkrGV2jGfAGFxZOyb8xjRff/gPUr+XP7RfQJmVo26KCeF6ByqAdqOIO8kfI5jHMq5RhseHuPLGEMuxVRInrWnEZB5EhBBpG70ibJqCViNCTS6phH7JsO6WTGt8p9koDVZZPG08cmzLoK7jPhjTYPYpuOiPGztJrlcdvbrwpEqzXdNLIJlzaXpSei2Qpww6kseHv/5eM8u1xMdsD0S7atWuQ4EiMhWcpspcXQP9R88e86ZctI14FyquPn87A01RKj8q0G9Bk6LylCd8EnNCih9rQyaCrPku5nJrE6HKw6keZh+RXRPXDgF5gmkVNjmjg8BTPWz1EhxMUKzw3SEfnY2Kx+cwFS6doDUj1wz9jhcYaZvsV+PhEMp2A85P8SajcIicVc9llSGFGrUYe1TrF6dGOFRRqSSc9n2lD2vAy4ACaifsCqmCTrlDfU7GC6sU5DslJ4/DjQCjXFhKi3lFLQu7sevvwR9hQ1X/cAF7SOuO1Kid5Ff8Kc1HQMcZ95oles1o7mvhCgP//bZsJXjPk0ICZBS0+OtNAoIWFSfRVmW2+v3ME9fGdYQO3uK9hYP/7w3KwNgLX4xhZc5CsV7NuXWCSeNrkhoNHbU+uQBC+pzD0NpoKXuhWlwBsL4jtMy5AbJIFfNZHhyqI8Rm7THTZL9CkULA0ICmfqjHlI9f0ivz3pmN/x3MX5L19sR1GNZ8npmAXlF021iWjEnhhPMbWx14j1LGg2jy9q2vfZnypWlmHvc3upD25E+FsP3aBVm0fIDu7yMdZXsA+yZRKz6fxNVYZM8Fd0EdkBfDYrgrMD70HCzecboK0rmtfuSKejUtq8Wd1QQlzPo3q2ViSnsz7HXoZVG8dBlBKKSAfg4RLsz6Gs1pXZFeLwn2+9BkM1XsDMHKEWdY9/IkyvmDLInsJhvYCSY1d4ZU72DDt/wX5MLMt8BpfrCLNR/Qsoys aYANjCAT Q4p/peU4cbiQ4XIYmyYWFBK+z4EdhdMRwXqjG7ZxuaRu72nR7tgckc2YN8JJCDk34wIok1wdhECWx+3aMfLGhOsGCjMTUjcYY4YkjrVKCBSNUTvDpGQohksx/YclF20eyQsrLCc/z1cH/10AytEKNTkyQOW79GfkTQjkCmWZubMi+Fn5vTLlMUL2agd2h/QTeK9EtQh+Ed5uJUAUNwC02DSBwTly4l44kDg/9DWPXzh/f/IyyBklDPiE7ooGnLrmRV9PyHrcYe0n8wkBQcg8BUNxvaKoSFdNlS6NeZeykVpXOlB707cx4DNO9R/2C7GB22HM6r5l6nkqQ4gOJMCahYQReJ3X+Gn75duDCGHFSVbJG6HlLICRMp6eZ5dnmNsT3YZ5PETHj8j4I00lXbn8kU6FQ33BDZvB2WJyTAev8DEE9iq0= X-Bogosity: Ham, tests=bogofilter, spamicity=0.010676, 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 01.08.24 09:56, BiscuitOS Broiler wrote: > Sure, here's the Scalable Tiered Memory Control (STMC) > > **Background** > > In the era when artificial intelligence, big data analytics, and > machine learning have become mainstream research topics and > application scenarios, the demand for high-capacity and high- > bandwidth memory in computers has become increasingly important. > The emergence of CXL (Compute Express Link) provides the > possibility of high-capacity memory. Although CXL TYPE3 devices > can provide large memory capacities, their access speed is lower > than traditional DRAM due to hardware architecture limitations. > > To enjoy the large capacity brought by CXL memory while minimizing > the impact of high latency, Linux has introduced the Tiered Memory > architecture. In the Tiered Memory architecture, CXL memory is > treated as an independent, slower NUMA NODE, while DRAM is > considered as a relatively faster NUMA NODE. Applications allocate > memory from the local node, and Tiered Memory, leveraging memory > reclamation and NUMA Balancing mechanisms, can transparently demote > physical pages not recently accessed by user processes to the slower > CXL NUMA NODE. However, when user processes re-access the demoted > memory, the Tiered Memory mechanism will, based on certain logic, > decide whether to promote the demoted physical pages back to the > fast NUMA NODE. If the promotion is successful, the memory accessed > by the user process will reside in DRAM; otherwise, it will reside in > the CXL NODE. Through the Tiered Memory mechanism, Linux balances > betweenlarge memory capacity and latency, striving to maintain an > equilibrium for applications. > > **Problem** > Although Tiered Memory strives to balance between large capacity and > latency, specific scenarios can lead to the following issues: > > 1. In scenarios requiring massive computations, if data is heavily > stored in CXL slow memory and Tiered Memory cannot promptly > promote this memory to fast DRAM, it will significantly impact > program performance. > 2. Similar to the scenario described in point 1, if Tiered Memory > decides to promote these physical pages to fast DRAM NODE, but > due to limitations in the DRAM NODE promote ratio, these physical > pages cannot be promoted. Consequently, the program will keep > running in slow memory. > 3. After an application finishes computing on a large block of fast > memory, it may not immediately re-access it. Hence, this memory > can only wait for the memory reclamation mechanism to demote it. > 4. Similar to the scenario described in point 3, if the demotion > speed is slow, these cold pages will occupy the promotion > resources, preventing some eligible slow pages from being > immediately promoted, severely affecting application efficiency. > > **Solution** > We propose the **Scalable Tiered Memory Control (STMC)** mechanism, > which delegates the authority of promoting and demoting memory to the > application. The principle is simple, as follows: > > 1. When an application is preparing for computation, it can promote > the memory it needs to use or ensure the memory resides on a fast > NODE. > 2. When an application will not use the memory shortly, it can > immediately demote the memory to slow memory, freeing up valuable > promotion resources. > > STMC mechanism is implemented through the madvise system call, providing > two new advice options: MADV_DEMOTE and MADV_PROMOTE. MADV_DEMOTE > advises demote the physical memory to the node where slow memory > resides; this advice only fails if there is no free physical memory on > the slow memory node. MADV_PROMOTE advises retaining the physical memory > in the fast memory; this advice only fails if there are no promotion > slots available on the fast memory node. Benefits brought by STMC > include: > > 1. The STMC mechanism is a variant of on-demand memory management > designed to let applications enjoy fast memory as much as possible, > while actively demoting to slow memory when not in use, thus > freeing up promotion slots for the NODE and allowing it to run in > an optimized Tiered Memory environment. > 2. The STMC mechanism better balances large capacity and latency. > > **Shortcomings of STMC** > The STMC mechanism requires the caller to manage memory demotion and > promotion. If the memory is not promptly demoting after an promotion, > it may cause issues similar to memory leaks Ehm, that sounds scary. Can you elaborate what's happening here and why it is "similar to memory leaks"? Can you also point out why migrate_pages() is not suitable? I would assume demote/promote is in essence simply migrating memory between nodes. -- Cheers, David / dhildenb