Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1199274ybt; Thu, 18 Jun 2020 03:02:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjsIc7T2FOYS6Fu+4c6nGAC6qALEvvI1i+LFWu3kEFi9WuLCCD++XEbsYePept0B3b660N X-Received: by 2002:a17:907:429b:: with SMTP id ny19mr3288579ejb.498.1592474519942; Thu, 18 Jun 2020 03:01:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592474519; cv=none; d=google.com; s=arc-20160816; b=f98yduaSr9eUS5es08KaK3xD6S8fqyM0Km9nP3l02k9KCOqf/hSBtIeQPG3+Hr8jpG YFJFrOakLFv8aT3tcc8193lRDwIpDry290YVz6sJTYz+O5q8ohHmq/VtvCwgLZ3KrEn2 bkuWPG1mxjDxWqog3BoCe1EpzDXnyT5TduEwISndsBhFrhD1R7zvK07cJIRgWWYIEldO dty9h5gWNm22NQ7gDfLZd/ghaE9sQQh527m1bEpYoimsY3FmwyBUaJb9iRd9vjXCi9Mh cycdhUjtQqKihT138vHc4tNuK7PL7LjaHc4msmTAt+eAyxXChVc++Md7itzITc5EZptR 8MJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:message-id:date:subject:cc:to :from:ironport-sdr:dkim-signature; bh=AXktVEBst0a5Xx6ME8y/aUH5oG7cSFUc9f7JNgXbuDM=; b=saz4VlxTi/L6OG5VlN3lZGD9imAb87zgUwJiugoNKQNqnMHVMGlbGJyRzKuhan5e3d xNpWo6u84dUzZXVowzBI8gZlqz50dvQ2qa8BH+9MiK8AEmU7JJRGR+DYzSUwKrbyefVC jEkXDsqXhtG0igYQO28Raf80MmT26zBnOZ602+dWYnPzQWf9dIORSr11VIY42EPaSnzt uP/DCqJBVjVhtTgc7FvgXRhfDp6iUOuLHH0i/0NCuWdOk5KwSlt8pODwA3egREtGy2mL KS0afIbkxNsEDpuroj5YqBSQtAiFwF5RpUfxrUNkLx0gDCYxWqKwdrie6z0iLte+JcEb KXqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=qiIW3k7a; 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 nk5si1568479ejb.513.2020.06.18.03.01.37; Thu, 18 Jun 2020 03:01:59 -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=qiIW3k7a; 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 S1729112AbgFRJX7 (ORCPT + 99 others); Thu, 18 Jun 2020 05:23:59 -0400 Received: from smtp-fw-6002.amazon.com ([52.95.49.90]:52806 "EHLO smtp-fw-6002.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729082AbgFRJX6 (ORCPT ); Thu, 18 Jun 2020 05:23:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1592472237; x=1624008237; h=from:to:cc:subject:date:message-id:in-reply-to; bh=AXktVEBst0a5Xx6ME8y/aUH5oG7cSFUc9f7JNgXbuDM=; b=qiIW3k7acs3gg+BFNFo7DmpAP2d35M+sc32SS8ZOB3z7QqqXxxoPU7t3 Ka0KEi7MbIdbWlJJnzGdqCfRu5QpGayTg3IX/xN8YTDQKeFEUU3bFjj4m 4hEdDlebwLX7K18Hs1LgD5U3/m83EWanMx/PoJqPgFRZQ5XAv4FlpQac8 U=; IronPort-SDR: 1T86ecPT5WS1me4DVgCewcfsSHOeBhqhzAMxlusNuWC6ifv0Btz7+fmrJTbG84DGklWX4oNlH5 1MtuLKS7jIYw== X-IronPort-AV: E=Sophos;i="5.73,526,1583193600"; d="scan'208";a="36904964" Received: from iad12-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-2a-119b4f96.us-west-2.amazon.com) ([10.43.8.6]) by smtp-border-fw-out-6002.iad6.amazon.com with ESMTP; 18 Jun 2020 09:23:52 +0000 Received: from uc85b765ebdd8595b4b67.ant.amazon.com (pdx2-ws-svc-lb17-vlan3.amazon.com [10.247.140.70]) by email-inbound-relay-2a-119b4f96.us-west-2.amazon.com (Postfix) with ESMTPS id F36331A00F3; Thu, 18 Jun 2020 09:23:48 +0000 (UTC) Received: from uc85b765ebdd8595b4b67.ant.amazon.com (localhost [127.0.0.1]) by uc85b765ebdd8595b4b67.ant.amazon.com (8.15.2/8.15.2/Debian-3) with ESMTP id 05I9Nk4P022816; Thu, 18 Jun 2020 11:23:46 +0200 Received: (from foersleo@localhost) by uc85b765ebdd8595b4b67.ant.amazon.com (8.15.2/8.15.2/Submit) id 05I9NkJk022812; Thu, 18 Jun 2020 11:23:46 +0200 From: Leonard Foerster To: SeongJae Park Cc: akpm@linux-foundation.org, SeongJae Park , Jonathan.Cameron@Huawei.com, aarcange@redhat.com, acme@kernel.org, alexander.shishkin@linux.intel.com, amit@kernel.org, benh@kernel.crashing.org, brendan.d.gregg@gmail.com, brendanhiggins@google.com, cai@lca.pw, colin.king@canonical.com, corbet@lwn.net, dwmw@amazon.com, foersleo@amazon.de, irogers@google.com, jolsa@redhat.com, kirill@shutemov.name, mark.rutland@arm.com, mgorman@suse.de, minchan@kernel.org, mingo@redhat.com, namhyung@kernel.org, peterz@infradead.org, rdunlap@infradead.org, riel@surriel.com, rientjes@google.com, rostedt@goodmis.org, sblbir@amazon.com, shakeelb@google.com, shuah@kernel.org, sj38.park@gmail.com, snu@amazon.de, vbabka@suse.cz, vdavydov.dev@gmail.com, yang.shi@linux.alibaba.com, ying.huang@intel.com, david@redhat.com, linux-damon@amazon.com, linux-mm@kvack.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v16 05/14] mm/damon: Allow dynamic monitoring target regions update Date: Thu, 18 Jun 2020 11:23:45 +0200 Message-Id: <1592472225-22768-1-git-send-email-foersleo@amazon.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <20200615161927.12637-6-sjpark@amazon.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-06-15T18:19:18+02:00 SeongJae Park wrote: > From: SeongJae Park > > The monitoring target regions can be dynamically changed. For example, > virtual memory mapping could be dynamically updated and physical memory > could be hot-plugged. > > To handle such cases, this commit adds a monitoring attribute, ``regions > update interval`` and a callback ``init_target_regions`` in the > monitoring context. If the two fields are properly set, DAMON will call > the ``init_target_regions()`` callback for every ``regions update > interval``. In the callback, users can check current memory mapping or > hotplugged physical memory sections and appropriately update the > monitoring target regions of the context. > > Signed-off-by: SeongJae Park > --- Reviewed-by: Leonard Foerster