Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp522417rdg; Thu, 12 Oct 2023 12:23:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFOYj2CpT36L+RruwpPWygpLzfPkkjdRFl85lcs5c9T3z50a6xDRz6wk7kWiY/1HETT7jY/ X-Received: by 2002:a17:90b:3686:b0:268:1354:7b03 with SMTP id mj6-20020a17090b368600b0026813547b03mr24304875pjb.12.1697138611011; Thu, 12 Oct 2023 12:23:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697138610; cv=none; d=google.com; s=arc-20160816; b=ivP7qMHCha3p0qY3CJT2GujJJ49e8+xZFJ7xyFXwxMw4EQxVLcj/mKJHQq2Ezx6c9h kB1s/u8Ji0vwHnlyxg+h5m5dlQGqbBFQdBoa0RAhpphcL3WJN5AJSR0I+YeojHB2/2JE I5TYVSUtgvXYZ+gCvudoX1Epe+BhRkUyJpwv3sdKt9K2OS73TcfNFoLZ5avNJNueR16V KhXlGVR3Kf1AcWk6ItLMfUipf+qa7zBh+MCslOAMblhvaF7S9NimlqWXayC7jbc8iOz5 R8spC/Vd5XCpnEhT2RE/oZM43zSn2eRyf1L9prb6IdHtUT8R2xXfTC/5wnsFS8iOg9jC UGcA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=58jeOcEBnFA7lKEuRbZIvKF3IsNCattCqVmfk0OEdhA=; fh=jKijsxc1Z2CHKVFf4S4lB42jMLcn6gTpewOn4Tq1/VM=; b=NfDd5k/Kj1cQnWaq1MoHeLvbdsythZJmlLRIVyoonIIfUjM3RZ97XsUCcNYXdyMvIN nGVCcImCMka2YjxKy6676RBoetloDX+ENNF+1diCQ5n0Inrro3B+emhwL9KOxzX5bNgE 9naShVlbaGOoJ6kXvT8yTy2XVZ73rcvJ1mxhqURKRxcUxe7+jmY6pBjKxlFVO4UQjpye NAw/Oyr5OfL4YOio3oZ4FiD1zcrTc6uy9yNOMatan9HdxA3Lu//VaUtCmq7oxyJCEEIH fAM3/szfIh6PGpY2nFxs/YWd21Zss0dFuwp2BbXYybfxJ54NlZrMJqq6naddM2IRxJHH zIFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aqFUhq0p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id v10-20020a170902b7ca00b001bd9e2b4b46si2677881plz.601.2023.10.12.12.23.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 12:23:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aqFUhq0p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 500FC81C57FD; Thu, 12 Oct 2023 12:23:20 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1442071AbjJLTXC (ORCPT + 99 others); Thu, 12 Oct 2023 15:23:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347366AbjJLTXB (ORCPT ); Thu, 12 Oct 2023 15:23:01 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D910B7 for ; Thu, 12 Oct 2023 12:22:58 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7F4A7C433C7; Thu, 12 Oct 2023 19:22:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697138578; bh=dhkNkcd5s5dF4hY99APwOOIKtTfhuQ585ymiYD2asqE=; h=From:To:Cc:Subject:Date:From; b=aqFUhq0pY1YB2OjHpjc0rQz4kU1EVFhRX7IY2f1LSyOh0qJXFpzH4+Qlm5zltWdT3 I+gDoQUNF3S5+s75NqsZW5GugdC4+m35pte3sdBnx6tq2ga1Hac8J7pMbNHra+Efcg V7YNhtDQEX/n+/LnIulfUF57Em6W5I+ZW2RuV+QrdgfdlXwY1GTNkXMZGjBBlIRjlg h3F1IiXedOJgtVat2g57BmwtcEkPUKGFAVatVIwvM9+7/blH7Q6s+UuGI5EluTOM5Y bJNJPKhG8EPkl9eTtRgB9lQeabHG5umqCVM1jNwZJZkBIe861zNWWcpb6Hh5UyjfAO mEu5jxwitRKFg== 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 0/3] mm/damon/sysfs-schemes: Do DAMOS tried regions update for only one apply interval Date: Thu, 12 Oct 2023 19:22:52 +0000 Message-Id: <20231012192256.33556-1-sj@kernel.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 12 Oct 2023 12:23:20 -0700 (PDT) Changes from RFC (https://lore.kernel.org/damon/20231010012600.83140-1-sj@kernel.org/) - Rebase on latest mm-unstable DAMOS tried regions update feature of DAMON sysfs interface is doing the update for one aggregation interval after the request is made. Since the per-scheme apply interval is supported, that behavior makes no much sense. That is, the tried regions directory will have regions from multiple DAMON monitoring results snapshots, or no region for apply intervals that much shorter than, or longer than the aggregation interval, respectively. Update the behavior to update the regions for each scheme for only its apply interval, and update the document. Since DAMOS apply interval is the aggregation by default, this change makes no visible behavioral difference to old users who don't explicitly set the apply intervals. Patches Sequence ---------------- The first two patches makes schemes of apply intervals that much shorter or longer than the aggregation interval to keep the maximum and minimum times for continuing the update. After the two patches, the update aligns with the each scheme's apply interval. Finally, the third patch updates the document to reflect the behavior. SeongJae Park (3): mm/damon/sysfs-schemes: do not update tried regions more than one DAMON snapshot mm/damon/sysfs: avoid empty scheme tried regions for large apply interval Docs/admin-guide/mm/damon/usage: update for tried regions update time interval Documentation/admin-guide/mm/damon/usage.rst | 6 +- mm/damon/sysfs-common.h | 2 + mm/damon/sysfs-schemes.c | 93 ++++++++++++++++++++ mm/damon/sysfs.c | 34 ++++++- 4 files changed, 128 insertions(+), 7 deletions(-) base-commit: 937421b2a4e95c57fddf10477b949fa5693711da -- 2.34.1