From patchwork Mon Aug 22 10:56:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kairui Song X-Patchwork-Id: 12950500 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 031C2C28D13 for ; Mon, 22 Aug 2022 10:56:56 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3397C8D0001; Mon, 22 Aug 2022 06:56:56 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 2E9F36B0074; Mon, 22 Aug 2022 06:56:56 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1B24C8D0001; Mon, 22 Aug 2022 06:56:56 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 0884B6B0073 for ; Mon, 22 Aug 2022 06:56:56 -0400 (EDT) Received: from smtpin22.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id CF562A08B7 for ; Mon, 22 Aug 2022 10:56:55 +0000 (UTC) X-FDA: 79826925990.22.E749E73 Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) by imf01.hostedemail.com (Postfix) with ESMTP id 89694400FD for ; Mon, 22 Aug 2022 10:56:55 +0000 (UTC) Received: by mail-pl1-f176.google.com with SMTP id c2so9584967plo.3 for ; Mon, 22 Aug 2022 03:56:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:reply-to:message-id:date :subject:cc:to:from:from:to:cc; bh=hUQZ/Tp1Sqyiv6w3yUz+ygSiTM9PrSsj+REeubDk2qE=; b=C3HaUGLQY/5xCsQrVkt+OdGw/vWjDEQbsfd0003LDMRZiClk+Q/ID/FH98FpvzpkhW YmozuFBomyLxUP7iEui4cprVH2IL/wR6kybEI06V3D+1rKIOvuB2TD1db8RGJWmOn8BO Ratq2FuXP5lPY+ygKTFYyzIWy0inHKk727PrNQfDFkKvRBTwLEKbXo+/gn+HMMKgYacO rdBCeFi1Bl6PTxOETCCW7oGQBBfh+B+wNCG48TleMWHAtuFuzBf7Vns0E08EYK9wDqPu zpaNILIeB1gIwrhs1EoEHnqsdoj9pdDc0wUs235s2eOFfGUM0Jyhgt9dzstb17bArH26 KoAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:reply-to:message-id:date :subject:cc:to:from:x-gm-message-state:from:to:cc; bh=hUQZ/Tp1Sqyiv6w3yUz+ygSiTM9PrSsj+REeubDk2qE=; b=s+OU/DvfmsXL4mmqCKrmwJ+K3D1XQgaabnBmZ1eAdmxwZW2a1J4JuQuIZNohhsqk8y CpCiysUnQCgrK9LUhZrycx6Ma2oiCMM4H6ULvZp9/AN0pvtERW0oa3/ew7kBocJUWsaX mKWAX3CFbksK/sxqo5vBNoAUXNdlSSB/qxDpwYAgJEGlic8ivRUDqvX3/aG11ncJDvJZ igzcFWQppA5PN7qG9d1zJHj3amyReXoKroHhyVSMmYHFNIIRM/nieZ5tkwTudUgcCBZe M7IylYhQUQU+TKtrU4WG1xemAA1vapBkR7P/w1aqgCetjx8A6AhZoydrfXm4ccJfBarv WUJg== X-Gm-Message-State: ACgBeo1u8xDWBNmWYVcLM/iqu9glBgZnqs0x3czPc+mHXhULm03AczOm r0T0Z1rDo8T9nYWg3r0+Ybg= X-Google-Smtp-Source: AA6agR5CXRqUs3HJRCeXUJI+lLofKDx4VbPUBq2jOgPfCZ7L6aGgxEOblRidGxRmwmFYt28M9X+3mQ== X-Received: by 2002:a17:902:7005:b0:172:98ef:863c with SMTP id y5-20020a170902700500b0017298ef863cmr19616019plk.131.1661165814407; Mon, 22 Aug 2022 03:56:54 -0700 (PDT) Received: from KASONG-MB0.tencent.com ([103.7.29.31]) by smtp.gmail.com with ESMTPSA id m7-20020a1709026bc700b00172d9f6e22bsm3727399plt.15.2022.08.22.03.56.52 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 22 Aug 2022 03:56:53 -0700 (PDT) From: Kairui Song To: damon@lists.linux.dev Cc: SeongJae Park , Jonathan Corbet , linux-mm@kvack.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Kairui Song Subject: [PATCH] Docs/admin-guide/mm/damon/usage: fix the example code snip Date: Mon, 22 Aug 2022 18:56:17 +0800 Message-Id: <20220822105617.75524-1-ryncsn@gmail.com> X-Mailer: git-send-email 2.35.2 Reply-To: Kairui Song MIME-Version: 1.0 ARC-Authentication-Results: i=1; imf01.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=C3HaUGLQ; spf=pass (imf01.hostedemail.com: domain of ryncsn@gmail.com designates 209.85.214.176 as permitted sender) smtp.mailfrom=ryncsn@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1661165815; a=rsa-sha256; cv=none; b=G7GqHTH5P7N8if0T41/XY8LivBB+A3Nda/pxAnEDJbH2DHT45ASawT1ezmkachWNwBYHkA d91s91ge2bEy9E9Vhsw+9c/Py2abXEy8uDgGOu65DIIbFX+YbbRUN93aur+141U1vJ5E0U /Kkq9NwIXmX5lEIt7pa7JqqLkdh4E1Q= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1661165815; h=from:from:sender:reply-to: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=hUQZ/Tp1Sqyiv6w3yUz+ygSiTM9PrSsj+REeubDk2qE=; b=Ou2kHV/r3q9bM6bC4E/IZZF1kbDBnoNMbeN73bKOpTDt5pGJREbjrqHLoajXNjO5PpkjFp fKnDTN0o62KRRpEvBQq8FqN5fqaaS0hgNccAO47pvhl13KR5hzqNoN29vq+WB5RbsSveMl qF+Pn0e/5GckpkQYj/CUDt4/GydwBqg= X-Stat-Signature: f1hce4ngfkxukjxpeunzt9p8yz7jnko5 X-Rspamd-Queue-Id: 89694400FD X-Rspam-User: Authentication-Results: imf01.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=C3HaUGLQ; spf=pass (imf01.hostedemail.com: domain of ryncsn@gmail.com designates 209.85.214.176 as permitted sender) smtp.mailfrom=ryncsn@gmail.com; dmarc=pass (policy=none) header.from=gmail.com X-Rspamd-Server: rspam05 X-HE-Tag: 1661165815-805502 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: From: Kairui Song The workflow example code is not working since it got the file names wrong. So fix this. Signed-off-by: Kairui Song Reviewed-by: SeongJae Park --- Documentation/admin-guide/mm/damon/usage.rst | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Documentation/admin-guide/mm/damon/usage.rst b/Documentation/admin-guide/mm/damon/usage.rst index d52f572a90298..ca91ecc290785 100644 --- a/Documentation/admin-guide/mm/damon/usage.rst +++ b/Documentation/admin-guide/mm/damon/usage.rst @@ -50,10 +50,10 @@ For a short example, users can monitor the virtual address space of a given workload as below. :: # cd /sys/kernel/mm/damon/admin/ - # echo 1 > kdamonds/nr && echo 1 > kdamonds/0/contexts/nr + # echo 1 > kdamonds/nr_kdamonds && echo 1 > kdamonds/0/contexts/nr_contexts # echo vaddr > kdamonds/0/contexts/0/operations - # echo 1 > kdamonds/0/contexts/0/targets/nr - # echo $(pidof ) > kdamonds/0/contexts/0/targets/0/pid + # echo 1 > kdamonds/0/contexts/0/targets/nr_targets + # echo $(pidof ) > kdamonds/0/contexts/0/targets/0/pid_target # echo on > kdamonds/0/state Files Hierarchy @@ -366,12 +366,12 @@ memory rate becomes larger than 60%, or lower than 30%". :: # echo 1 > kdamonds/0/contexts/0/schemes/nr_schemes # cd kdamonds/0/contexts/0/schemes/0 # # set the basic access pattern and the action - # echo 4096 > access_patterns/sz/min - # echo 8192 > access_patterns/sz/max - # echo 0 > access_patterns/nr_accesses/min - # echo 5 > access_patterns/nr_accesses/max - # echo 10 > access_patterns/age/min - # echo 20 > access_patterns/age/max + # echo 4096 > access_pattern/sz/min + # echo 8192 > access_pattern/sz/max + # echo 0 > access_pattern/nr_accesses/min + # echo 5 > access_pattern/nr_accesses/max + # echo 10 > access_pattern/age/min + # echo 20 > access_pattern/age/max # echo pageout > action # # set quotas # echo 10 > quotas/ms