Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp563605ybg; Tue, 9 Jun 2020 07:27:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx/xqqk6LILz3rHKL5r4Tgow1QnJ1lKn25HLnUVINeP/IxQ0RMmCxdoEvjHZ0W9yXQpSOj0 X-Received: by 2002:aa7:c944:: with SMTP id h4mr26637241edt.383.1591712830313; Tue, 09 Jun 2020 07:27:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591712830; cv=none; d=google.com; s=arc-20160816; b=Y+izG19+SB0N67nfmTQrVmxMXdDzxHDAhje4kCGUUdiLYTEWeVoiruW20vfSVfFhf5 tx2mRBT66LH9flDIJ6nftuNC9l234WqPuDIJPchbnNdibq5KfaZrdUoiI7kXG1/EN269 mS/I9d+vmA3LTCT2NF6S5lmUySmvQ9ImoavuKFLfZcDycR6uvaLaBnwzw3wBza2L8pmJ +gxb4o+YxcEp3+Gg93J2YHOF6CXjOlYhmPEE5sONAPMRueEhtcTLuxGdlX+D7v/iSQkA +imA4MvT6KdnXonkm3azBdnNTiFVVPlBNmHl7PwTYvt2l//5wrcb6YH6sZB4RBEJuH4j 0Mjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:ironport-sdr:dkim-signature; bh=v6Vmzq5EIDAZEFmnvXrN4Ci7XeSQ+6uNTzvYLYOmCMg=; b=JHeS0VAOwBIHXMhFpsU3vTZp/eYCKOIf9vIg+8TKI1vgcDVu42tWChQuWvwMkVGZsv 7bW80voCRqKGqLe7ZldVo3DJg8s5TSdV4qK+9RnCu1A3gP2RB8C0wSEoNFLJRVIeKy7p ruKmo2l246pnnkgobkY7HhdPHE9e55yLLQi//YukqkVFUUiLgOl412njD1SL3APRlgzM 6iT/sWsztrGPTXKghWEp4TU5ioXgPPY0uZMAXJ8q+FfBBOdmAM9n/OkLL1J5fcWgOoSm R9Z7zInt5Pyj+EHzH+erZ+fbiL9FrVDobrD5RknBuXd/G2FTa5NjcCVcyfxmj0Ay4ayZ ACRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=pb8usziu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lx13si10313429ejb.196.2020.06.09.07.26.47; Tue, 09 Jun 2020 07:27:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=pb8usziu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730493AbgFIOWD (ORCPT + 99 others); Tue, 9 Jun 2020 10:22:03 -0400 Received: from smtp-fw-2101.amazon.com ([72.21.196.25]:7814 "EHLO smtp-fw-2101.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728601AbgFIOWC (ORCPT ); Tue, 9 Jun 2020 10:22:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1591712522; x=1623248522; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=v6Vmzq5EIDAZEFmnvXrN4Ci7XeSQ+6uNTzvYLYOmCMg=; b=pb8usziuC+fs/n+G+/Qy+woXfJmm2sEKfAj4VidLiSkUXwqgjRSBy+EG dGryqdBNY3HqiVk1MrRxAybGkuGgX8UMV5bSn9su0CKiY3xbeGlKEtfdK zZe1NSCEEc8ySMuhwA7NKw9v3d6hynS8Q8E0Oaeb3evCgzWi0YL2ar55l w=; IronPort-SDR: nEpkDPK0Sk41CVJJYXq9cww3EDIAVJgQCfJearg4PLeUq/AU2/79A5knzDXjrum2RiFlD66pp1 qSSxpNs97AnA== X-IronPort-AV: E=Sophos;i="5.73,492,1583193600"; d="scan'208";a="35297528" Received: from iad12-co-svc-p1-lb1-vlan2.amazon.com (HELO email-inbound-relay-1e-c7c08562.us-east-1.amazon.com) ([10.43.8.2]) by smtp-border-fw-out-2101.iad2.amazon.com with ESMTP; 09 Jun 2020 14:22:01 +0000 Received: from EX13MTAUEA002.ant.amazon.com (iad55-ws-svc-p15-lb9-vlan2.iad.amazon.com [10.40.159.162]) by email-inbound-relay-1e-c7c08562.us-east-1.amazon.com (Postfix) with ESMTPS id 6529F24230A; Tue, 9 Jun 2020 14:21:50 +0000 (UTC) Received: from EX13D31EUA001.ant.amazon.com (10.43.165.15) by EX13MTAUEA002.ant.amazon.com (10.43.61.77) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 9 Jun 2020 14:21:49 +0000 Received: from u886c93fd17d25d.ant.amazon.com (10.43.162.109) by EX13D31EUA001.ant.amazon.com (10.43.165.15) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 9 Jun 2020 14:21:33 +0000 From: SeongJae Park To: CC: SeongJae Park , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Subject: [RFC v3 05/10] Docs/damon: Document 'initial_regions' feature Date: Tue, 9 Jun 2020 16:19:36 +0200 Message-ID: <20200609141941.19184-6-sjpark@amazon.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200609141941.19184-1-sjpark@amazon.com> References: <20200609141941.19184-1-sjpark@amazon.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.43.162.109] X-ClientProxiedBy: EX13D30UWC004.ant.amazon.com (10.43.162.4) To EX13D31EUA001.ant.amazon.com (10.43.165.15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: SeongJae Park This commit documents the 'initial_regions' feature. Signed-off-by: SeongJae Park --- Documentation/admin-guide/mm/damon/usage.rst | 34 ++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/Documentation/admin-guide/mm/damon/usage.rst b/Documentation/admin-guide/mm/damon/usage.rst index 18a19c35b4f3..f600366cdd4e 100644 --- a/Documentation/admin-guide/mm/damon/usage.rst +++ b/Documentation/admin-guide/mm/damon/usage.rst @@ -326,6 +326,40 @@ having pids 42 and 4242 as the processes to be monitored and check it again:: Note that setting the pids doesn't start the monitoring. +Initial Monitoring Target Regions +--------------------------------- + +DAMON automatically sets and updates the monitoring target regions so that +entire memory mappings of target processes can be covered. However, users +might want to limit the monitoring region to specific address ranges, such as +the heap, the stack, or specific file-mapped area. Or, some users might know +the initial access pattern of their workloads and therefore want to set optimal +initial regions for the 'adaptive regions adjustment'. + +In such cases, users can explicitly set the initial monitoring target regions +as they want, by writing proper values to the ``init_regions`` file. Each line +of the input should represent one region in below form.:: + + + +The ``pid`` should be already in ``pids`` file, and the regions should be +passed in address order. For example, below commands will set a couple of +address ranges, ``1-100`` and ``100-200`` as the initial monitoring target +region of process 42, and another couple of address ranges, ``20-40`` and +``50-100`` as that of process 4242.:: + + # cd /damon + # echo "42 1 100 + 42 100 200 + 4242 20 40 + 4242 50 100" > init_regions + +Note that this sets the initial monitoring target regions only. DAMON will +automatically updates the boundary of the regions after one ``regions update +interval``. Therefore, users should set the ``regions update interval`` large +enough. + + Record ------ -- 2.17.1