From patchwork Sat Feb 24 22:47:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Barry Song <21cnbao@gmail.com> X-Patchwork-Id: 13570673 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 68E96C48BF6 for ; Sat, 24 Feb 2024 22:48:11 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 83AF66B00DD; Sat, 24 Feb 2024 17:48:10 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 7EBCC6B00DF; Sat, 24 Feb 2024 17:48:10 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6B31F6B00E0; Sat, 24 Feb 2024 17:48:10 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 5BE246B00DD for ; Sat, 24 Feb 2024 17:48:10 -0500 (EST) Received: from smtpin28.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 2FD9A1C0552 for ; Sat, 24 Feb 2024 22:48:10 +0000 (UTC) X-FDA: 81828187140.28.4DD5072 Received: from mail-oa1-f54.google.com (mail-oa1-f54.google.com [209.85.160.54]) by imf27.hostedemail.com (Postfix) with ESMTP id 7DAA04000A for ; Sat, 24 Feb 2024 22:48:08 +0000 (UTC) Authentication-Results: imf27.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=fpLgxGi3; spf=pass (imf27.hostedemail.com: domain of 21cnbao@gmail.com designates 209.85.160.54 as permitted sender) smtp.mailfrom=21cnbao@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1708814888; 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-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=BvzO7ZUsymLO2jBd+mJ7CM2X1lBqtVuXEd4hC3J8wSU=; b=HzL05ZUQGNRJLjq5s0HABHLac0CtQnz1d3q5sp6xce+0gsSo68/Mkr7lk6z6UJY3r1QrBe ZWY4osKwauf2ZpEM4OzMCJLMZ4NRZi/bY3RC5QF0YrY9Jz7AwQhidpN8N5MwbKmtpkR98V jZe55oMtS/NJ/Usj77q9ft2rQK3pqm4= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1708814888; a=rsa-sha256; cv=none; b=VKAG38trepwpmNqZqPfJIIFdECxDij2Agandk1kUh7OFU8dX0WMnClNsgepiGoNRFQXx6U vD3GyCXa7qpfwZ0fJLyjBKc+KFY/JQKb6i4TQUDTqjO9aL29qQj2Ij584XWOHN6nA2k6ah nxzJPwQrqRYnzSupxKJPTIp9XEtPDMg= ARC-Authentication-Results: i=1; imf27.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=fpLgxGi3; spf=pass (imf27.hostedemail.com: domain of 21cnbao@gmail.com designates 209.85.160.54 as permitted sender) smtp.mailfrom=21cnbao@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-oa1-f54.google.com with SMTP id 586e51a60fabf-218642337c9so937317fac.3 for ; Sat, 24 Feb 2024 14:48:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708814887; x=1709419687; darn=kvack.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=BvzO7ZUsymLO2jBd+mJ7CM2X1lBqtVuXEd4hC3J8wSU=; b=fpLgxGi32T1eBbP7aHx9aOOMEKGgno1AikN2O8nZqsO2v/mFO+CBsxpmToTb41MsjI op7mv6++1NgJudJTX8RFhFKrfqsXLt4JJmGO33GT0pkQfynG7LrS4k02F2yZ4SCbBS04 fouU8TMYv621V96NbG/vzP5IiHm2i4XNrAW0WI5JnF8Ss63bNdrc7zjbbTI9j32x+HYB 6bD8QY9tbsBTMW/5dHItfJl2qlizIEYs84lXL8Czv8OCDR4QthMImdvLMedH6tCouc/5 B0g42liUlaniwb9upWV4d379INp9Ls4e3qhWpCU641QMwBup3dadta2BBq6T9sKNP21Y HZiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708814887; x=1709419687; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=BvzO7ZUsymLO2jBd+mJ7CM2X1lBqtVuXEd4hC3J8wSU=; b=vla6yIxUTjOgyATI2HHKxXw68SBb2/xUZuL1ineoENtXg/RJ4DdXzulzhtdUNpEJP7 Yeik6n1RVe7UMSl8qR37a//rqs4bO7fROYlz8nfgEJyweWJ4Sok5ZD9Z3iohqk6tzVCp jGCE4wpcBQoeX0ABcL8xosbYIIkwtAU1Tb1sDJ8I8awVKtCUrdVqP+aqdcsqAeEY8wp3 riBnHv22Um7axvfA2F988NPG278q3JnJwv2WZg3LjYKM/CjdokC6vW+O0oCZr61s6Xq9 aBP213wpSRoooDn8zqX+VK/E13iYmUiWCLO8BsmSsEgc3wiSxmupmpyR9PKx9jictyWg yUYQ== X-Forwarded-Encrypted: i=1; AJvYcCWZHCklKruJZARFckuyyutmqZ2PFQrtFLFHxSQw/DZFh+QoNySiEm5ohxaF1IgyLTxejN6Dp8gpgP+BRw48Xl2YZik= X-Gm-Message-State: AOJu0Yx6rZvGZD5Lsuj3tH9SqkeZCGGtqzqQyVE8Aw6Q1BIZrJ54kBdF PsgJjpnOWBABc4PBU2LEGmjl2lQPROXkgq1DVyFdm/hmL4CAbJbD X-Google-Smtp-Source: AGHT+IGtgVmOgAMzHE/9QbMi+O3Hk+d0Dl2iKByTn0sco5cLzPXoOU8adxaZX9wsTwzocuE6fNNw6g== X-Received: by 2002:a05:6870:364c:b0:21f:dc71:c3f4 with SMTP id v12-20020a056870364c00b0021fdc71c3f4mr2515594oak.43.1708814887599; Sat, 24 Feb 2024 14:48:07 -0800 (PST) Received: from barry-desktop.hub ([2407:7000:8942:5500:fae4:3bff:fecb:410]) by smtp.gmail.com with ESMTPSA id fy16-20020a17090b021000b0029aac9c523fsm595754pjb.47.2024.02.24.14.48.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Feb 2024 14:48:07 -0800 (PST) From: Barry Song <21cnbao@gmail.com> To: corbet@lwn.net, linux-mm@kvack.org, akpm@linux-foundation.org, damon@lists.linux.dev, linux-doc@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Barry Song , SeongJae Park , Minchan Kim , Michal Hocko , Johannes Weiner Subject: [PATCH v2] Docs/mm/damon/design: remove the details for pageout as paddr doesn't use MADV_PAGEOUT Date: Sun, 25 Feb 2024 11:47:51 +1300 Message-Id: <20240224224751.4673-1-21cnbao@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Rspamd-Queue-Id: 7DAA04000A X-Rspam-User: X-Stat-Signature: ak43mhrfpitgxrqij7fyhztcqiohksmi X-Rspamd-Server: rspam03 X-HE-Tag: 1708814888-975799 X-HE-Meta: U2FsdGVkX18VA+cpOz5FoJiBM+u2vrqdFct6VJ6/KJOiYrGv36BYHRYzA+zoqcbBBND8PxZolVfJvnSmlstDkAcaYeAsMsuem1sxqEUvOXYktnctTFlS9IY/wmu19be6fOPcnEJ+SAoB9hKtzDPUYRfNJ9e5QStLD7VaWW2gOO61tlCYC9+DVM7LoTWEAX9n7LBpXaj6OZWdiCGeQE3xSVVuLQqKaTpDJT5AlLA4vy5R+eThOW1HkMk5r/nkWEgWl6PjtH5dvbQUWbvk8icaLdx5P0OQHaW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Y0Wz2tXzrGWT0hLeQjHOIpICsS4nK0556jh7B+DnLIvv0sayo6RMg3yUsa7Y89ckh+7H2thlYiONzNxGJ+EEADCX0PIAvxBL2Re3Vqlkggs5+4SikHS3R9FcRHy3oZ6ESdIsw7Q+mVdaN0lN3SHC5oU5FmSGlyr6m5/OcWRhPz8LJUtgN2f6btFGlX6lmlqmWZniltU/1TyY19m7mYEP9J2n0KWwZU/R1MerbFWOvFHAqOTi0j5+JSVePtlEjwgAHui90QdeZseqScBE9gD1hu2g7R3Q1XVKH+GkTByZUSqNibaU3t8tCnhUeU9RmeKZCRWuAacapVBTFngCcf7xrYkkjWVARt5yZvVM33QuXM118= 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: From: Barry Song The doc needs fix. As only in the case of virtual address, we are calling madvise() with MADV_PAGEOUT. But in the case of physical address, we are calling reclaim_pages() directly. MADV_PAGEOUT on virtual address is much more aggresive to reclaim memory compared to reclaim_pages() on paddr region. This patch removes the details so that the description can apply to both cases. And we don't need to couple with the implementation details. Cc: SeongJae Park Cc: Minchan Kim Cc: Michal Hocko Cc: Johannes Weiner Signed-off-by: Barry Song Reviewed-by: SeongJae Park --- -v2: decouple with the details according to SeongJae -v1: https://lore.kernel.org/linux-mm/20240224215023.5271-1-21cnbao@gmail.com/ Documentation/mm/damon/design.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/mm/damon/design.rst b/Documentation/mm/damon/design.rst index 8c89d26f0baa..5620aab9b385 100644 --- a/Documentation/mm/damon/design.rst +++ b/Documentation/mm/damon/design.rst @@ -315,7 +315,7 @@ that supports each action are as below. Supported by ``vaddr`` and ``fvaddr`` operations set. - ``cold``: Call ``madvise()`` for the region with ``MADV_COLD``. Supported by ``vaddr`` and ``fvaddr`` operations set. - - ``pageout``: Call ``madvise()`` for the region with ``MADV_PAGEOUT``. + - ``pageout``: Reclaim the region. Supported by ``vaddr``, ``fvaddr`` and ``paddr`` operations set. - ``hugepage``: Call ``madvise()`` for the region with ``MADV_HUGEPAGE``. Supported by ``vaddr`` and ``fvaddr`` operations set.