Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2479968ybt; Tue, 16 Jun 2020 07:13:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwIcWR2j4bQt1xMXJePps6hSXZWPzII0Du2WpmkRE4Qrp0YSs69FmGw811hT9jC7rbyjOuV X-Received: by 2002:a17:906:4c81:: with SMTP id q1mr3035084eju.273.1592316805778; Tue, 16 Jun 2020 07:13:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592316805; cv=none; d=google.com; s=arc-20160816; b=OzWnATFTQo+/X0K6ZFNnoDs75EXkY/FNtsyo3qKia9oO4hphphhR9x/XvGcrnoXGCe CREz4A2kA4Tw0OJ3gh56JFmKv3FbyVq+XJOwI07ARpxQcmXsdncpDnKYsE5Nm7agVhwN Lva4eKTxZYRmkdlV11hYAdNOb7vAeADYRhNFe81E1E2w+WXxURtUvNr54saxKRPhZetC +bORGLa0yb84iQuLrrJkHpoM19+pbWrZzozcD9gDcxSDbJFfiuqgtNdO85iImgfV5vvH /4d1Gr2qej/JLfIJNpEIHa32t/zgFnmns4JuAMTA5st8H7DCg9UcIqeSRNmWKpZyw+S2 hEYw== 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=NkQV8XZb6WAEthYy8o1WXcIlkgPfAm++tDmi/3RmsTU=; b=ZX2O8X59Sdk8a7/+SmGRoemo8buVNNuGtz3v14MESYg558PEGnm7v/jeEj+AyvDJAF M/wRPc/1GBmxgL5qrxRSwajLqyzzqYVyDHk9YAvPrfsWALOaxZCoWxl/F8DylsHMSCHv F7knGd23M+6vdmmKqQmyLR3C8RuANvjFrJTvSvi6okEClW/VpRdXalGszU1M9qy8xTQj Uv4hxDZUE7pd48yRZwpj3n9B28BcQvTB1qq9Wi5dAbh6TbETpzf1p3A+GWCsqFvrF/l1 Ei+oenHx0vBG6Xd9KJTS8P8EJsEOZ/YhJk2j8Wf77EHYnpJ5VN/oOD5Tvay/MthBFtKA zmGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=Od6LTABf; 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 k12si11087686edi.198.2020.06.16.07.13.01; Tue, 16 Jun 2020 07:13:25 -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=Od6LTABf; 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 S1729196AbgFPOKY (ORCPT + 99 others); Tue, 16 Jun 2020 10:10:24 -0400 Received: from smtp-fw-2101.amazon.com ([72.21.196.25]:13439 "EHLO smtp-fw-2101.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726261AbgFPOKY (ORCPT ); Tue, 16 Jun 2020 10:10:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1592316624; x=1623852624; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=NkQV8XZb6WAEthYy8o1WXcIlkgPfAm++tDmi/3RmsTU=; b=Od6LTABf6O1bDEOR8txPA/jVbdk5ncF93BV2JfeFghS4i3Wgck3j3HgT E45sWczWFHNnTK1sEgbkmFPOpggU5l3+Mly6j5UYFwBYOMQ1opCfRmsJK Zq8SjCqkXplp2ZfxMs1dQQiK/+dSVVo71pgiMS4K1JLWk/7bm2s+8z/h+ g=; IronPort-SDR: qvKh6XWzQXfZpX7zQAK8XPGEHLAqde90iq+zdKLpTK07lOE7/qKoZw8CsHO3zfm78RCCaKPCkU XShxEVHonoIg== X-IronPort-AV: E=Sophos;i="5.73,518,1583193600"; d="scan'208";a="36584488" Received: from iad12-co-svc-p1-lb1-vlan2.amazon.com (HELO email-inbound-relay-2a-6e2fc477.us-west-2.amazon.com) ([10.43.8.2]) by smtp-border-fw-out-2101.iad2.amazon.com with ESMTP; 16 Jun 2020 14:10:20 +0000 Received: from EX13MTAUEA002.ant.amazon.com (pdx4-ws-svc-p6-lb7-vlan2.pdx.amazon.com [10.170.41.162]) by email-inbound-relay-2a-6e2fc477.us-west-2.amazon.com (Postfix) with ESMTPS id C2992A17C1; Tue, 16 Jun 2020 14:10:17 +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, 16 Jun 2020 14:10:17 +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, 16 Jun 2020 14:09:58 +0000 From: SeongJae Park To: CC: SeongJae Park , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Subject: [RFC v4 3/8] Docs/damon: Document 'initial_regions' feature Date: Tue, 16 Jun 2020 16:08:08 +0200 Message-ID: <20200616140813.17863-4-sjpark@amazon.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200616140813.17863-1-sjpark@amazon.com> References: <20200616140813.17863-1-sjpark@amazon.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.43.162.109] X-ClientProxiedBy: EX13D01UWB004.ant.amazon.com (10.43.161.157) 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 2f5b67302094..24f1b05a859a 100644 --- a/Documentation/admin-guide/mm/damon/usage.rst +++ b/Documentation/admin-guide/mm/damon/usage.rst @@ -329,6 +329,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