Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp2596312rwa; Mon, 22 Aug 2022 10:09:34 -0700 (PDT) X-Google-Smtp-Source: AA6agR4tPxFDD7VY47WMn7ENQ+wdEA3WBcKY0r1yDldeyKfXbDAVRh0ved5Yw0swPD2FJEln71em X-Received: by 2002:a17:907:3faa:b0:73d:973e:4a10 with SMTP id hr42-20020a1709073faa00b0073d973e4a10mr174849ejc.587.1661188174247; Mon, 22 Aug 2022 10:09:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661188174; cv=none; d=google.com; s=arc-20160816; b=yJAHq/HgvhfRyf32xWRFDtGZPNB/4J1KNQLcIHvZa77RB+d4Cnl36X2Pcm/z3bt0oT Cb8qPyvSn8NwPHFnAlAyWx8BC1cZuuS6o9znuPSmtewP0lvpk0EgZVXafKUlOkxcLobj RePfwL19As14qy73PyC/O6XVjLY0TGUfpLGth3vt7sk0at7/Ro8AKDSUj5hBhkIkhhsO NrYAYkIR3YkI+o/5yuGX4fYJBVdQhyMgWXoeJ4VNJ8+cBDGoH4bYmTlly52Mv3LFtdtI VP1wjxx71ONBBuCyhLih9ELysvpEyYDJPiRckgaqyPEHi9l9r2PZE1BcFHbqhOFHEecd 6JoA== 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=md/y+HyVdTwxI5mnnitS29RL31KgE0Y3J2cwlkQHuQ0=; b=XJJxsZd/uF4GSqP0nbJK9o2KYCAXouQ/CQelZMSDpbaI6BKHuBR2YAiTkBANIfRyAz /hRM7JGKm+wMZchi2KiBRdBmzQBQ7YzUzCBTx2DD+VSGNQD452lEM7qfDMN9G3xpJ9dc h/i1YnGIWaC0KXS0Onr72kW7T1pe2yJNZFa9dUUliBOoiLdbi31geR5R6rjc30PfOhv6 G9v+1tJv13q4cFRImzztxAoU+ayV1V+2iz8nXP4g2LUK8Ce62Yi3jh0HygNuB8B9CiN2 ruigWtQizDWV4rvYs7khRhTkxTOtdIG6NdyL7ZMbMk1fcJoZyBPtDx6GsV6dzw+aJyL1 eNDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DoQfGOUi; 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 g15-20020a056402320f00b00443d8fae31csi7062069eda.593.2022.08.22.10.09.03; Mon, 22 Aug 2022 10:09:34 -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=DoQfGOUi; 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 S236709AbiHVQ4y (ORCPT + 99 others); Mon, 22 Aug 2022 12:56:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232132AbiHVQ4w (ORCPT ); Mon, 22 Aug 2022 12:56:52 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 382EA3E749; Mon, 22 Aug 2022 09:56:51 -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 ams.source.kernel.org (Postfix) with ESMTPS id C8FEFB81626; Mon, 22 Aug 2022 16:56:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CE6DDC433C1; Mon, 22 Aug 2022 16:56:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1661187408; bh=yG8d1dzyQST9Nceswgh4cW2/OcjGtdAH7IEPeUEqOy0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DoQfGOUiFiLncCeoBzrbxInqVBWgYP45hq6yWuJ990bZwT9xuCOe9mLb/g8Q+UsYe cjiAyLJIyZr4xMQgUkLU4lvigOXn3hZkgQDCLdWT0GcgUcPZbE3pNLXT58PIhHLGfP 161mLjRnusGpvABoqDTQkw27oeGrmvK5y3S484OJb1vsWb7SLD2nf/NfaX5s8w2GLA kb5hs3+REKuD90Pe841+BC+QDjE88TiO8pUfhWL8wqPhYy/cpDzThfnh0eegAbccj9 MKwT95ERzERMKSWWEj/w2ppI7CMeGg0Dq/NvH8EZjUjaiWQycEvz0gOpHWhz2MBdzy vYmU6OfuzFStw== From: SeongJae Park To: Kairui Song Cc: damon@lists.linux.dev, SeongJae Park , 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 16:56:46 +0000 Message-Id: <20220822165646.87524-1-sj@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220822105617.75524-1-ryncsn@gmail.com> 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 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! > > 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 >