Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3711157rwa; Tue, 23 Aug 2022 08:54:23 -0700 (PDT) X-Google-Smtp-Source: AA6agR6N6SygImjGz3dSlNi3bvWGEkD2/alLPFwNnmzz7XQVgigYvDRhSD6+J+kiYQJpoj0m83r+ X-Received: by 2002:aa7:93a4:0:b0:535:d714:c24c with SMTP id x4-20020aa793a4000000b00535d714c24cmr24443197pff.15.1661270063279; Tue, 23 Aug 2022 08:54:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661270063; cv=none; d=google.com; s=arc-20160816; b=AQHhs+beOwc2r8915yxw7BR2j5bvYoeAbPST/HMPxsWPBvwyQsZCUpb2R0tZ23sDl0 Bd2Nu5acrQCngMKKHVv0KynaCRyMO/zbjmndgA2s0S8tQ6eh5KyopG20KFRAB3xXeCeJ 0k+nRwsiI+M1ocxax0UXLD2MYWl8+zP/VKObF9/f6wuMRermDKegSxYKJ58TbLdvcdJu boBDbVeDYOoR2lVcrG0WJnzpwGx6TcvIpgKOyQa57q+d6R8leDUS0UrxGNeJjVYmK7YG EpxriTGumB/y8MvJGS+xRe30OpjtXOeUfrDwzlQvLsFFH5Lsxm0D6fBP33fB23Xgsk1f GZgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version:reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=EX/82qnQonQiLqn4wSbDmFcuxyzSeSG7gW+qIxvJMUI=; b=iqSb/9Md5XEBwKeWnRcfWbeB42GVEo8GqFI91s+pv2UIlvFUZ7p8jNv9fu5mNQ3PNs eMVcvcgn7yf9E7oD1/tAuo67Xg6RsdPSWm14lRvLV+33MjDXieoK9alCiAVBpcblT0aD x60yK01f4InjBnEXOtZBzUzSYSgamArQV0u/IejataTYDqlwHvuHzjE8ZSE+GtP88kfh SQMHFS/5Ming0HtMQ/1L2MdxiCcXPKS3Ncycok5RdZKNjFpp0eqAe7BFMu0ub/e8Xfb8 8acIu6pEVe1f3iXohvtmRGTsNVW/SpGfHYJetPBjnAlbqqklQl4/61FhGw/SIUYCQ/Ne BD5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=EFoqdBDk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n125-20020a632783000000b004297ab85d11si15506809pgn.283.2022.08.23.08.54.12; Tue, 23 Aug 2022 08:54:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=EFoqdBDk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242796AbiHWPoJ (ORCPT + 99 others); Tue, 23 Aug 2022 11:44:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242560AbiHWPnc (ORCPT ); Tue, 23 Aug 2022 11:43:32 -0400 Received: from mail-pg1-x529.google.com (mail-pg1-x529.google.com [IPv6:2607:f8b0:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D006E29A717; Tue, 23 Aug 2022 04:41:36 -0700 (PDT) Received: by mail-pg1-x529.google.com with SMTP id q9so2980401pgq.6; Tue, 23 Aug 2022 04:41:36 -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=EX/82qnQonQiLqn4wSbDmFcuxyzSeSG7gW+qIxvJMUI=; b=EFoqdBDkG/5UPV6HPIgvFcGc0TyYf/CF3yiYdCUZx4myoPyDIRta+YXXtjyiRuQroo 34I1JKEGwEmYjmYB0oFj/hVGgCOcNAdGKuSp7d7eSNpTBV7s5pNKvxG36/ySBhSvMqHE qCaiJyxYJV+IFtlBSUSgkipI330atbUVMCk4hQzY1rxtI+m2mV24n0ZLez9g1GXR3suN AOTWJuHdfS0pLOYdoOh3ktoXGcQpmkpOTAYDA1FZVMijbtwvnhvrWalj9gGn02HKRN5/ VCKYUVyZzr8EIVzLhFNgeeEHBMANveL39F7scu6vEWxpymxF/265DWRbQwOEEZ9W7NOB OWvg== 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=EX/82qnQonQiLqn4wSbDmFcuxyzSeSG7gW+qIxvJMUI=; b=Mdc7aEY2Dv0KCW67Yz8eJuGhX9ZdELjmulb9ZLR7NxLAlxBQQ/Eg+Wdtsx2QY8TeBN aPUxx7ViTOSWSxoMfJ6daQ60W/JTvKLZDCeMUb8EkAo0JKifINqLQYWEuI6CgF+Cy/7O pWIAI6PrI7hNF3FTLGIiBhSM7XUOIm8cT4YFJU9suj+l7F7ED1cLqEyX62bD3Pdp2f/p LA+hrEFmk+ok6fFS1fw0h9BYrHDr/RgBRVt8+HKoL29FYXMKB80/D+x9bqkR6TbpA51V 9UYEvGbCXZ+9NOSE1Ad+MG8PVBxluxM4GCO1lw2oAHzfYsQmCr0jsUSKuixMVbGi4W29 2moQ== X-Gm-Message-State: ACgBeo1vZMaQuI5wqJy4iOFwoqwOYeJjQJz7VTl5IVuxfI3FFXti1esJ Hp6+R5syjFJBtTAZg/Dv5Xc= X-Received: by 2002:a05:6a00:88f:b0:530:dec:81fd with SMTP id q15-20020a056a00088f00b005300dec81fdmr25156305pfj.64.1661254867730; Tue, 23 Aug 2022 04:41:07 -0700 (PDT) Received: from KASONG-MB0.tencent.com ([103.7.29.31]) by smtp.gmail.com with ESMTPSA id w23-20020a627b17000000b0052d16416effsm10562930pfc.80.2022.08.23.04.41.05 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 23 Aug 2022 04:41:07 -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 v2] Docs/admin-guide/mm/damon/usage: fix the example code snip Date: Tue, 23 Aug 2022 19:40:53 +0800 Message-Id: <20220823114053.53305-1-ryncsn@gmail.com> X-Mailer: git-send-email 2.35.2 Reply-To: Kairui Song MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Kairui Song The workflow example code is not working since it got the file names wrong. So fix this. Fixes: b18402726bd1 ("Docs/admin-guide/mm/damon/usage: document DAMON sysfs interface") Reviewed-by: SeongJae Park Signed-off-by: Kairui Song --- 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 -- 2.35.2