Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp818264ybm; Wed, 27 May 2020 08:44:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwDWLUz9GU+kj7LCkdxQXJ3NqgKb0/4L7hr6B96XJc3e/oDzdEmYADiQLHUUuZh1ZMYtF1h X-Received: by 2002:a05:6402:31ad:: with SMTP id dj13mr25108241edb.232.1590594265477; Wed, 27 May 2020 08:44:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590594265; cv=none; d=google.com; s=arc-20160816; b=H1syLDZwKdtggPgW1gIIyczijIBY07f/BH3SijgYIvmsyYe36JAkTKish8Ic68i/Hj hWuWF/sReV6ww8+nzy84ynaYWovStLD/Ba0O/a7rRvZbMmoTYwM0CEqqZNiKsG7FOqr1 qGz+C3O0LcOxrzS6gmysFd6XoEsQlq1KkjH4aIjPDh3DWCLsqMwCY3NUZfshj7WsADVK mCtw8l5oYiL6QsbPSaj0t/6IymcdQ/OybB52fz5fK2aIRw8h2R9IpoWoTx3n87beQ8WZ cuVcZhOvE9qUd9fgb1sgADFoRT8T69my9oAEYjNLuOGgi5yLawNKwyT0hISCpF+qAqc4 Akzw== 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=iRjowuh3rsT6KaQa5IoA4dyPWOraak/h0is2Gj8OFRE=; b=Km5fgLZNn8Baqqq+QzbGemGM6GQy1qsIHn75V8tCfckcojXgw5Hwmm0TWCRmGgfKeS WmgFbKhWDzgcGLWwKFRJTwbCge9S4L4RfQA+Q/Kqk9TSB/7Hv0j/c9tntdikHsOQ1qwn YQ5RcIncIjxjO2JnNCf+gO6+eS4NpMoERZ++51q1fzKiRBGwMd+1Vx88zywlSuJX8T8D wfn94xZWAvUmCsjpb5DSGcgGyeO0NRy14SuVButixIiOZBYrRKmqIf/mz9hSLPHvkiCI V3EzYUzCPnrq5CwnNNaG2dzldvKT6kFsD5hLwcXLNkeaF3TWQcvksdDM6nf5yFmgEtvf SFwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=EDVTjmO0; 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 e21si2229193ejh.710.2020.05.27.08.44.02; Wed, 27 May 2020 08:44: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=EDVTjmO0; 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 S2388435AbgE0LY0 (ORCPT + 99 others); Wed, 27 May 2020 07:24:26 -0400 Received: from smtp-fw-6001.amazon.com ([52.95.48.154]:15236 "EHLO smtp-fw-6001.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388019AbgE0LYZ (ORCPT ); Wed, 27 May 2020 07:24:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1590578665; x=1622114665; h=from:to:cc:subject:date:message-id:in-reply-to; bh=iRjowuh3rsT6KaQa5IoA4dyPWOraak/h0is2Gj8OFRE=; b=EDVTjmO0uOAvpsvLalthUw6AtLp90rxaC3btJG/mQj+IN5rbHxgEZpsT Y+KqN92eqcpZj4sNUmi9Frzmj2Q2C8PbSEDK03EJU6KQnoqcJzcMMvBVy R0Dby40jAqAw++3KBhqgPHKml6BN3KD2RDXIcZF2dUAMP/Kcek5mOwmjw k=; IronPort-SDR: gzc5vzbcQcGaYviq5tmSnNk32G+8h0J63+22zkVNJ+T1UWGfmr+qKW/YCRNCQybor1A8DI6n0t rAch2mHLhG1g== X-IronPort-AV: E=Sophos;i="5.73,441,1583193600"; d="scan'208";a="33842691" Received: from iad12-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-2a-538b0bfb.us-west-2.amazon.com) ([10.43.8.6]) by smtp-border-fw-out-6001.iad6.amazon.com with ESMTP; 27 May 2020 11:24:22 +0000 Received: from uc85b765ebdd8595b4b67.ant.amazon.com (pdx2-ws-svc-lb17-vlan2.amazon.com [10.247.140.66]) by email-inbound-relay-2a-538b0bfb.us-west-2.amazon.com (Postfix) with ESMTPS id D1D4CA1EA7; Wed, 27 May 2020 11:24:18 +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 04RBOGT4027335; Wed, 27 May 2020 13:24:16 +0200 Received: (from foersleo@localhost) by uc85b765ebdd8595b4b67.ant.amazon.com (8.15.2/8.15.2/Submit) id 04RBOG5A027331; Wed, 27 May 2020 13:24:16 +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, 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, linux-damon@amazon.com, linux-mm@kvack.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v13 07/15] mm/damon: Implement callbacks Date: Wed, 27 May 2020 13:24:15 +0200 Message-Id: <1590578655-27285-1-git-send-email-foersleo@amazon.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <20200525091512.30391-8-sjpark@amazon.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-05-25T11:15:04+02:00 SeongJae Park wrote: > From: SeongJae Park > > This commit implements callbacks for DAMON. Using this, DAMON users can > install their callbacks for each step of the access monitoring so that > they can do something interesting with the monitored access patterns > online. For example, callbacks can report the monitored patterns to > users or do some access pattern based memory management such as > proactive reclamations or access pattern based THP promotions/demotions > decision makings. > > Signed-off-by: SeongJae Park Reviewed-by: Leonard Foerster