Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp2626811rwa; Mon, 22 Aug 2022 10:40:50 -0700 (PDT) X-Google-Smtp-Source: AA6agR7q3qJbvbd0ViWzRDK9DnOTsBb5/TvRjH7Xa3bsTFDMSnNkO/UKEu0mhFUG03l4Ouoj1KDB X-Received: by 2002:a63:6a84:0:b0:42a:3375:8fea with SMTP id f126-20020a636a84000000b0042a33758feamr15659333pgc.298.1661190050573; Mon, 22 Aug 2022 10:40:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661190050; cv=none; d=google.com; s=arc-20160816; b=gqAPHEFYie20SxkvYLOtJnlddHlQ5wUpQ7bP7FRkakK9vgfgb5Rz7Mv0fCiVFAqpaW fmrZfmZ8TNfRQURjPQO0o9/PoNO3z83vH3nZkXMF3R63OfTrKlrnZGZVwIaNzK+dUdZG VsB0VEWiZuPG8wGYHw/N7VicNz3P7+mzMdTMsi03otnLDeUn3hWaROif5EUt4MoT2v22 L4bSZn2FxOzzsGC8fr1pjX/93QggDQ6zWR4P+qmUhYKJbmVcv9+kH3khMc0Ixv8GF3X0 Nv01WFBTk/vv4PYN5+y81ck0Ydvi/OQKniqE7WOYdw/ruAZO68GjlO7mm2hbFDS4aXS6 PXCQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=MfBQQevPuulA1iP1NGQyZ59peJ/LOto4jilC2GQZfgc=; b=Ft5ya+zP4Hd/DbYEikB/A9ZhlSqJw+H9HNCiRCs694b/QaGU+6KTKA/wff1p/lZYO6 Dlg0QMLdyL7I89WZRHX/OmWy6GubG/TSTUlt6HIl/jaHvcx7CRYvYAXK4YJzhiBpMQ1x aEyiU0jhbdufHQKR5L9k9ce17+ilLJ8XUxaEH/z5+4pQAL08ViFiyf/U6p4EqATNYqH8 2ETSDSALUgpeI63Y3UGTqp3QfV8YxzYeP0VdZMka0re/A2Nw186fp5lc4JOaG42bOtD6 GJGEj8by+I9uOxSUZ27Pu7lxBFa0lRa30UQON/tAMQzRFQzfhFJS1/TmVNcciAm9t1oR D12w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Z799LMiw; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j10-20020aa78d0a000000b0052e40b7481fsi13350985pfe.92.2022.08.22.10.40.39; Mon, 22 Aug 2022 10:40:50 -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=@kernel.org header.s=k20201202 header.b=Z799LMiw; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235852AbiHVRFI (ORCPT + 99 others); Mon, 22 Aug 2022 13:05:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235132AbiHVRFG (ORCPT ); Mon, 22 Aug 2022 13:05:06 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 650B541D1D; Mon, 22 Aug 2022 10:05:04 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9BE5061207; Mon, 22 Aug 2022 17:05:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 648C6C433C1; Mon, 22 Aug 2022 17:05:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1661187903; bh=2RPwxK6mPiQ24V+dniyQlazWwH9XEnmeAVv55idNd7Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Z799LMiw+FL/IuHbi/9/reeai2+4hyyozmQmWlPVlykp+Hgy7vKNzLv1danQCEfiU oH3hucNa2WJcQo3tovRQgpFhzcaXJNJazD5h/tNCjBZQbnlPfRSd+LmMLpXXyMS9EX bdYGItA66XzG/Mgwqgiqsj4AJuxdG359istn8KUS5q0000a7aOkBkUQnwi2hvhvdey wBvlN+H7/cIexx7n5jz7boF26n0fp32yNHGrfNuTkldGY1uxDUkkCJnueOg5NfGs2h tsmx1aPgdi8WmsLaPkkpQoVNq9RBSL3oSG2qS8TaLH4oaXlk2XXKAP3aHj8uGNiBxJ WQHn4ZVUWVzpA== From: SeongJae Park To: SeongJae Park Cc: Kairui Song , damon@lists.linux.dev, Jonathan Corbet , linux-mm@kvack.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Kairui Song Subject: Re: [PATCH] Docs/admin-guide/mm/damon/usage: fix the example code snip Date: Mon, 22 Aug 2022 17:05:00 +0000 Message-Id: <20220822170500.87712-1-sj@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220822165646.87524-1-sj@kernel.org> References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 On Mon, 22 Aug 2022 16:56:46 +0000 SeongJae Park wrote: > Hi Kairui, > > > On Mon, 22 Aug 2022 18:56:17 +0800 Kairui Song wrote: > > > From: Kairui Song > > > > The workflow example code is not working since it got the file names > > wrong. So fix this. > > Nice finding, thank you for this patch! > > > Oh, I forgot saying that it would be good to have Fixes: here, like below: Fixes: b18402726bd1 ("Docs/admin-guide/mm/damon/usage: document DAMON sysfs interface") I wouldn't say this needs to Cc stable@, as this is just a document example fix. Nevertheless, if anyone has a different opinion, please shout out. Thanks, SJ > > Signed-off-by: Kairui Song > > Reviewed-by: SeongJae Park > > > Thanks, > SJ > > > --- > > 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