Message ID | 20231012192256.33556-1-sj@kernel.org |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp1451204vqb; Thu, 12 Oct 2023 12:23:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEnX7HkWA5wG7QyTpp7k40LKXhzUjQne5V3MYnPIe6uLJ4FfiPiICcKspn1zV3V6Jb/JfbC X-Received: by 2002:a17:90b:17c3:b0:27c:f653:37b2 with SMTP id me3-20020a17090b17c300b0027cf65337b2mr7341357pjb.1.1697138603337; Thu, 12 Oct 2023 12:23:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697138603; cv=none; d=google.com; s=arc-20160816; b=mcQIMHZEIy5bL96AmGsWUCQfSjadZzkJbtDT/OfPg01zE6XHJm5zGFaBmvuxXI4RV5 NWtnyzDzKw4dGgyMqDVCWyClHWkPPVmlMgmm1bgQPQx28C6HM9/XApPcrrZXd5cmRRql QvTePfncTlSDIMp5AKazmjSpVyzFjP0ipF7ub7T1EM3f5/6eoxJP9hAwtUzjMfao+m81 F/dOb8WV26LO2DatErM7xvdlrNu0rjaQ9E7g2vEO4LOE3vva6AOny1iyznXq3qe7KPFc gweaihm7eULsRThHHlBFyGXGbH+EAUk+fSXPO5MM0HOBbFwK1TOdXNKanY6fkv+njLgO Y4lA== 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.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id a4-20020a170902ecc400b001c20e55153esi3155624plh.496.2023.10.12.12.23.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 12:23:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; 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.38 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 fry.vger.email (Postfix) with ESMTP id AAEAD803D54A; Thu, 12 Oct 2023 12:23:16 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1442093AbjJLTXC (ORCPT <rfc822;rua109.linux@gmail.com> + 19 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 <rfc822;linux-kernel@vger.kernel.org>); 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 <linux-kernel@vger.kernel.org>; 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 <sj@kernel.org> To: Andrew Morton <akpm@linux-foundation.org> Cc: SeongJae Park <sj@kernel.org>, Jonathan Corbet <corbet@lwn.net>, 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 fry.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 12 Oct 2023 12:23:16 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779578807596081557 X-GMAIL-MSGID: 1779578807596081557 |
Series |
mm/damon/sysfs-schemes: Do DAMOS tried regions update for only one apply interval
|
|
Message
SeongJae Park
Oct. 12, 2023, 7:22 p.m. UTC
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