Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3160240pxk; Tue, 15 Sep 2020 11:35:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzLgAtO6/JrefX6Qmf7IKdHDjSilqJKXdBOdVMg+yeOTfBta4KE2wnZ6ZWtN8tWto6yAKGt X-Received: by 2002:aa7:dcd9:: with SMTP id w25mr22727333edu.280.1600194903881; Tue, 15 Sep 2020 11:35:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600194903; cv=none; d=google.com; s=arc-20160816; b=LFzZHukxLlbwgWYxi5iMjpoYIKx7kDXMbTIbxOGPD8L/YnWjCE+4aC+75PBWeiLlng MAQG/oJ26qDSPx0Wagno7CnAuTrNkAFLQ2SIb8Wt5RoAmnd3sFTjgPG8EtAsWDV6PmqX DqpKvcnJ5cAHpkTAbnQ4Bolkk+4HddpUhoYXWlrH1FauEK7W2CJHJJF1ZBzrmDZUJ0n4 WG/atuQbXB7zKnUdxROYoEpxbMn1ogpJkUJh+4IYhy5G40mY0keWeQ7kVVAKZm4OkhZe ELBcWmqv8rvQoLfVaUVsPBkea++PSrxPkR06IcJzUj5+Zgnpa4NkBjX4pDHHVlY2uVx5 OXsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=yVTvCnm6cPdQdKTtHm7qSpOYIbJyd2LOLnWAd3G4RqQ=; b=xNwYFyzx8lRABbrJJoZh2mxW/+jXXnSA+n/Y4Hxi5orCf5Tx0F8VSluajcZ4rE/0hE EnoY4eyC8qfDZsOPqcVtkiP+fuhhWRHW+1/A0fzDo/2fm09h8iPl+ZPJ28FaGSfmFRZl PCvtX8ygc+pZmGcnSkpvjhfLjXYUCzqsPzG+p8YuIuUgRxaieHZ+2LcyRyGAoBg4Ecua 49ArR1FZGhfv7xRNvn9aISeaWfr0CZTVlzEsaCE57t6S6jXnMaeWgjt80VbgWJoUGyQX 2lU4eChDtwpUGV5p4L/rPtg8MN1KdGsZybtoNdeV4nbfdaIezkCV7vEusrlvkwf3DNty DRBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=Kc5UOrlC; 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 a4si9979619edt.550.2020.09.15.11.34.40; Tue, 15 Sep 2020 11:35:03 -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=Kc5UOrlC; 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 S1727965AbgIOScD (ORCPT + 99 others); Tue, 15 Sep 2020 14:32:03 -0400 Received: from smtp-fw-9101.amazon.com ([207.171.184.25]:61940 "EHLO smtp-fw-9101.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727963AbgIOSOA (ORCPT ); Tue, 15 Sep 2020 14:14:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1600193640; x=1631729640; h=from:to:cc:subject:date:message-id:mime-version; bh=yVTvCnm6cPdQdKTtHm7qSpOYIbJyd2LOLnWAd3G4RqQ=; b=Kc5UOrlCqhEctIZyV/Xw5SNjx75sRsvjtXg6fWjCdg03j0gtQQ408gCX iJLh+JuENuik6RlAcleV4uYKViC8ssiWnsrGSqE27gzYSALJJoNzop2p7 K4kK4TF3+8o4eQwunx9//kskNx5RhBLZAZ87C3dBBG5rP13s+IZZZ2WXk 8=; X-IronPort-AV: E=Sophos;i="5.76,430,1592870400"; d="scan'208";a="68219168" Received: from sea32-co-svc-lb4-vlan3.sea.corp.amazon.com (HELO email-inbound-relay-1d-5dd976cd.us-east-1.amazon.com) ([10.47.23.38]) by smtp-border-fw-out-9101.sea19.amazon.com with ESMTP; 15 Sep 2020 18:03:04 +0000 Received: from EX13D31EUA004.ant.amazon.com (iad12-ws-svc-p26-lb9-vlan2.iad.amazon.com [10.40.163.34]) by email-inbound-relay-1d-5dd976cd.us-east-1.amazon.com (Postfix) with ESMTPS id A1D8BA1F15; Tue, 15 Sep 2020 18:03:00 +0000 (UTC) Received: from u3f2cd687b01c55.ant.amazon.com (10.43.161.34) by EX13D31EUA004.ant.amazon.com (10.43.165.161) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 15 Sep 2020 18:02:42 +0000 From: SeongJae Park To: CC: SeongJae Park , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Subject: [RFC PATCH 0/2] DAMON: Improve User Space Interface Date: Tue, 15 Sep 2020 20:02:22 +0200 Message-ID: <20200915180225.17439-1-sjpark@amazon.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.43.161.34] X-ClientProxiedBy: EX13D06UWC004.ant.amazon.com (10.43.162.97) To EX13D31EUA004.ant.amazon.com (10.43.165.161) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: SeongJae Park 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