From patchwork Fri Jun 16 19:17:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 13283221 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 0D95CEB64DB for ; Fri, 16 Jun 2023 19:17:55 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 5A2548E0002; Fri, 16 Jun 2023 15:17:53 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 522768E0003; Fri, 16 Jun 2023 15:17:53 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2AFC56B007B; Fri, 16 Jun 2023 15:17:53 -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 1D2A46B0075 for ; Fri, 16 Jun 2023 15:17:53 -0400 (EDT) Received: from smtpin29.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id EC2F580D75 for ; Fri, 16 Jun 2023 19:17:52 +0000 (UTC) X-FDA: 80909570784.29.DD98148 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf07.hostedemail.com (Postfix) with ESMTP id 4727B40009 for ; Fri, 16 Jun 2023 19:17:51 +0000 (UTC) Authentication-Results: imf07.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=pjRyPXBj; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf07.hostedemail.com: domain of sj@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=sj@kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1686943071; 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:in-reply-to:references:references:dkim-signature; bh=tDssXFzBfTQBf1iQwsSfccJcdCXTNZxoUGwyfZL6uNc=; b=3fbjIUYKWS03zYHWMWlF/whRkbhnTwpJSp3m+M09WCu7DNgGquq7fehGVpoZbSI1kYKhv2 esjBytkxZf5PiJBs5VLQR+yfnURYVdeiAtZsN8l83Km+BxmZALUgzjcoQNGQgdke1WNspe PG7w2l7/sCxxxNpoZtzDIgt/pbFtfCI= ARC-Authentication-Results: i=1; imf07.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=pjRyPXBj; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf07.hostedemail.com: domain of sj@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=sj@kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1686943071; a=rsa-sha256; cv=none; b=2fvHnwVR74Gt8VJMxvWNyw+imYNgR21HvQj833e9Vy52vYc17EckbtilfktwT1PSbJjBzo sgwhL9MZ3eb8GRx2qdYZCe4HYm72/Oo1khdwcaQazYws9OfijaOghh/PP1uf6SjcpLQS2+ pagvdBYwLMrvgPzaz3HDEnov6lRSkMw= Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8620163F01; Fri, 16 Jun 2023 19:17:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 00E20C433C0; Fri, 16 Jun 2023 19:17:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686943069; bh=LvC4YT4/e0KgspEdK+7PadxzOaV+ZKDN40FmhrIY1TE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pjRyPXBjPdmD/CCyo3c/TOJEl8Pc/wVwxfP/HY+a9sa6wUtE1ECgVtVOC0x4Dm/EZ /FBoIRXKO64a0/wO29ZO4g1VWHNl4FtGc08wRZkiCOXa9vgfri7swZffPkGk1mlY4s 2bzaL1IeFZdWGH2AtwoG651fSafZC15/aa/H/OTI90JKO07q82eEgVXnqkwvIMkwyx /n8msXEZh2z8+ptNjDMD5vJQRYUOEhjW93jFNuQbPZ9asQRgRXDBuSXDo5EaQsSGQ4 l2v9YABAJtr+MjpYWV0t4y8pIOqxzmot/AkRtdU2KHUxTWA3rIuQEx092Tlf8UZpY4 nRF+N3RE8K5Ww== From: SeongJae Park To: Andrew Morton Cc: SeongJae Park , Jonathan Corbet , damon@lists.linux.dev, linux-mm@kvack.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/7] Docs/admin-guide/mm/damon/start: update DAMOS example command Date: Fri, 16 Jun 2023 19:17:37 +0000 Message-Id: <20230616191742.87531-3-sj@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230616191742.87531-1-sj@kernel.org> References: <20230616191742.87531-1-sj@kernel.org> MIME-Version: 1.0 X-Rspam-User: X-Stat-Signature: p4id337jpb8cezwz7ikcofocmpkqgi7j X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 4727B40009 X-HE-Tag: 1686943071-857165 X-HE-Meta: U2FsdGVkX19INZPiCozLzShUzJ5D0MyitUCN20SOAR+3UE3EDAtXmZO3AVsoCbbKN7qznYPoSO7wcWajUVJ4vsCx0TNodtmjg7ARaUXhkXVsWkL+Yt1liCLy8CQSUKcp6nX9+9t27pmIH3Gm9oKGAm5y3p3UTMptPYOq8oIAMSjdwfCkubEJim57hc1/tbsqutZonMG3TEp2c45Xj0HR/UiVoSGK0keDpPOgPstrD7WKJAcrzw/oTfhUiGzS5hx4Z4gcJJX8kqwqErF1hVe9Rs9vQ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ZE= 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: DAMON user-space tool, damo, has deprecated[1] its old DAMOS schemes specification format. However, an example of DAMON documentation is still using it. Update the example to use one of the alternative options. [1] https://github.com/awslabs/damo/commit/e9950ae68f6c Signed-off-by: SeongJae Park --- Documentation/admin-guide/mm/damon/start.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Documentation/admin-guide/mm/damon/start.rst b/Documentation/admin-guide/mm/damon/start.rst index 9f88afc734da..7aa0071ff1c3 100644 --- a/Documentation/admin-guide/mm/damon/start.rst +++ b/Documentation/admin-guide/mm/damon/start.rst @@ -119,9 +119,9 @@ set size has chronologically changed.:: Data Access Pattern Aware Memory Management =========================================== -Below three commands make every memory region of size >=4K that doesn't -accessed for >=60 seconds in your workload to be swapped out. :: +Below command makes every memory region of size >=4K that has not accessed for +>=60 seconds in your workload to be swapped out. :: - $ echo "#min-size max-size min-acc max-acc min-age max-age action" > test_scheme - $ echo "4K max 0 0 60s max pageout" >> test_scheme - $ damo schemes -c test_scheme + $ sudo damo schemes --damos_access_rate 0 0 --damos_sz_region 4K max \ + --damos_age 60s max --damos_action pageout \ +