From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 85173C2D0E0 for ; Tue, 15 Sep 2020 18:08:57 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 16D5320738 for ; Tue, 15 Sep 2020 18:08:56 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=amazon.com header.i=@amazon.com header.b="s3iGa1qg" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 16D5320738 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=amazon.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 7582C900077; Tue, 15 Sep 2020 14:08:56 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 705DD900057; Tue, 15 Sep 2020 14:08:56 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5F5C4900077; Tue, 15 Sep 2020 14:08:56 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0132.hostedemail.com [216.40.44.132]) by kanga.kvack.org (Postfix) with ESMTP id 476CD900057 for ; Tue, 15 Sep 2020 14:08:56 -0400 (EDT) Received: from smtpin17.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 04A79180AD80F for ; Tue, 15 Sep 2020 18:08:56 +0000 (UTC) X-FDA: 77266081872.17.sofa74_030856a27113 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin17.hostedemail.com (Postfix) with ESMTP id 982FE180D0186 for ; Tue, 15 Sep 2020 18:08:54 +0000 (UTC) X-HE-Tag: sofa74_030856a27113 X-Filterd-Recvd-Size: 5369 Received: from smtp-fw-4101.amazon.com (smtp-fw-4101.amazon.com [72.21.198.25]) by imf21.hostedemail.com (Postfix) with ESMTP for ; Tue, 15 Sep 2020 18:08:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1600193334; x=1631729334; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=hFApYuTtXawBb/Q1U5pmebyMoxtW2mY4qfAUML9XXzE=; b=s3iGa1qgpinV9xkDJ4HT2DcUxmBNGYQQYhIuHEt4Y38Xfxd1Ge3zQXf8 Mlu1yh2vfRBt65Zsw6t9S13LxSQhhIzjgjBMmyrZi9+2fDYmA/43bmFMk u/GhxFfwlO+s6SUJ/nb/4kmopBJDdKd7B9xcR6NUPD4RfK8uQC9ku4Ajy E=; X-IronPort-AV: E=Sophos;i="5.76,430,1592870400"; d="scan'208";a="54192495" Received: from iad12-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-1d-474bcd9f.us-east-1.amazon.com) ([10.43.8.6]) by smtp-border-fw-out-4101.iad4.amazon.com with ESMTP; 15 Sep 2020 18:08:53 +0000 Received: from EX13D31EUA004.ant.amazon.com (iad12-ws-svc-p26-lb9-vlan3.iad.amazon.com [10.40.163.38]) by email-inbound-relay-1d-474bcd9f.us-east-1.amazon.com (Postfix) with ESMTPS id 6A613A1E4E; Tue, 15 Sep 2020 18:08:40 +0000 (UTC) Received: from u3f2cd687b01c55.ant.amazon.com (10.43.162.85) by EX13D31EUA004.ant.amazon.com (10.43.165.161) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 15 Sep 2020 18:08:22 +0000 From: SeongJae Park To: CC: SeongJae Park , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Subject: [RFC PATCH 0/2] DAMON: Improve User Space Interface Date: Tue, 15 Sep 2020 20:08:07 +0200 Message-ID: <20200915180807.18812-1-sjpark@amazon.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200915180225.17439-2-sjpark@amazon.com> References: <20200915180225.17439-2-sjpark@amazon.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.43.162.85] X-ClientProxiedBy: EX13D46UWB004.ant.amazon.com (10.43.161.204) To EX13D31EUA004.ant.amazon.com (10.43.165.161) X-Rspamd-Queue-Id: 982FE180D0186 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam02 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: From: SeongJae Park Seems lore.kernel.org missed original posting of this mail. Resending. NOTE: This is only an RFC for future features of DAMON patchset[1], which is not merged in the mainline yet. The aim of this RFC is to show how DAMON would be evolved once it is merged in. So, if you have some interest in this RFC, please consider reviewing the DAMON patchset, either. After posting DAMON patchset[1], we received a number of comments. Based on those, we listed and shared future works for DAMON in the kernel summit 2020[2] and had a poll for the priorities of the works. As a result, the user space interface improvement received a second highest priority[3]. For the reason, this patchset is came out. The 1st patch puts more information in the monitoring thread name so that user space could charge the DAMON's CPU usage on them by themselves, in fine granularity. The 2nd patch makes multiple monitoring contexts available using the debugfs interface. [1] https://lore.kernel.org/linux-mm/20200817105137.19296-1-sjpark@amazon.com/ [2] https://linuxplumbersconf.org/event/7/contributions/659/ [3] https://lore.kernel.org/linux-mm/20200831112235.2675-1-sjpark@amazon.com/ Baseline and Complete Git Trees =============================== The patches are based on the v5.8 plus DAMON v20 patchset[1], RFC v14 of DAMOS patchset, RFC v8 of physical address space support patchset, and some more trivial fixes (s/snprintf/scnprintf). You can also clone the complete git tree: $ git clone git://github.com/sjp38/linux -b damon-usi/rfc/v1 The web is also available: https://github.com/sjp38/linux/releases/tag/damon-usi/rfc/v1 [1] https://lore.kernel.org/linux-mm/20200817105137.19296-1-sjpark@amazon.com/ [2] https://lore.kernel.org/linux-mm/20200804142430.15384-1-sjpark@amazon.com/ [3] https://lore.kernel.org/linux-mm/20200831104730.28970-1-sjpark@amazon.com/ SeongJae Park (2): mm/damon: Put more information in kdamond thread name mm/damon/debugfs: Support multiple contexts include/linux/damon.h | 2 + mm/damon-test.h | 34 ++-- mm/damon.c | 361 +++++++++++++++++++++++++++++++++--------- 3 files changed, 308 insertions(+), 89 deletions(-) -- 2.17.1