Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp895339pxk; Mon, 31 Aug 2020 04:26:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw852RNYO47xUMprLyhWoigNEnVf8bTDYGIQHxVkiri4Y8pFkxe7u8Qb4tHXyMtTXyfcyh7 X-Received: by 2002:a17:906:150b:: with SMTP id b11mr691491ejd.234.1598873169048; Mon, 31 Aug 2020 04:26:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598873169; cv=none; d=google.com; s=arc-20160816; b=wrDE9atSq+Jg4Yfg56tw30tUlvTnxSOgN5asSM7NAUh8U4Bsonjero+WK1fuCiGAGH TsO32XDOM5VuTG2GaTrNne562vA1RxNE5zFcti9r0PktjvkLc/DoFpoxJ69+NEozEWTS R3uGNj77m+uLfqZPZHs7zUhwsR7aiWvjajoU/FqgkhoCO5BBaGeG5QagfHlOMcUg0+bx 6G2XLmh1tMed4jWAgouNRA3swNYia0LmARd/Oy/KdpMBjVVATWp6uEfyd5+HYkWcO+5T RQQGHTXbJb+kx9v2Io2N/gl0QXGvYeRnz/K6vtTNigXurP7au1R94ThAWQ4WbuTWhua9 Bonw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=m6n6EuRTnJI3OIEU5O1Jd/703628N4sI9qEt+Ut99Lc=; b=C92/wQ6AJWSbi6POX4a2L+PRvlyKWQXrxfP6JR4ovoPb7SFOm06Qbfi9Rm2ijlf6lO 44WD6wwVzTL+0j3L7HqELuTKAgXsP+LK8M9krdJgH3HFuQWEImvFDIdFAWIOaZBOJ2ES 3CbAAsOTUhlDGMx+OzvZjaGZYp9YN80/E+4y6yAKMq8n8s2HxTBwhsKv+09dFobXtrgX 3p8O6szEokw6JUVrcZbuNa91x9tLdADpsxXWQ0BZRZaF2LTMtSjjytjZPzfmV6+UJfPD aOSBdS9zp+RaQ15YmUvtj3W3vHAg15Y+/38zsV6QcHYury/ASxfGdvOrZ5Hn1Ud681Vq FKZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=gtCyhoxN; 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 g17si5029279eji.729.2020.08.31.04.25.45; Mon, 31 Aug 2020 04:26:09 -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=gtCyhoxN; 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 S1726714AbgHaLZK (ORCPT + 99 others); Mon, 31 Aug 2020 07:25:10 -0400 Received: from smtp-fw-9101.amazon.com ([207.171.184.25]:39878 "EHLO smtp-fw-9101.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726771AbgHaLXQ (ORCPT ); Mon, 31 Aug 2020 07:23:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1598872995; x=1630408995; h=from:to:cc:subject:date:message-id:in-reply-to: mime-version; bh=m6n6EuRTnJI3OIEU5O1Jd/703628N4sI9qEt+Ut99Lc=; b=gtCyhoxN4DgkQ4CUAk4AdZtzdFeiTSrcpQAQy+Ch/wHQ42ieto/ACc5Q WZ13pvumd4XfXpASADwJRwucmcDS/LggddGs6YVQm66VIPuBINkMBLNro cqv11fSbxxrE8B83HPJ11vooBmd4eBWtoWBTyJNFYb9tYbHsROp0Pktj7 M=; X-IronPort-AV: E=Sophos;i="5.76,375,1592870400"; d="scan'208";a="64185476" Received: from sea32-co-svc-lb4-vlan3.sea.corp.amazon.com (HELO email-inbound-relay-1e-a70de69e.us-east-1.amazon.com) ([10.47.23.38]) by smtp-border-fw-out-9101.sea19.amazon.com with ESMTP; 31 Aug 2020 11:23:11 +0000 Received: from EX13D31EUB001.ant.amazon.com (iad55-ws-svc-p15-lb9-vlan3.iad.amazon.com [10.40.159.166]) by email-inbound-relay-1e-a70de69e.us-east-1.amazon.com (Postfix) with ESMTPS id 6425EA20E5; Mon, 31 Aug 2020 11:23:08 +0000 (UTC) Received: from u3f2cd687b01c55.ant.amazon.com (10.43.161.71) by EX13D31EUB001.ant.amazon.com (10.43.166.210) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 31 Aug 2020 11:22:51 +0000 From: SeongJae Park To: SeongJae Park CC: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Subject: Re: [PATCH v20 00/15] Introduce Data Access MONitor (DAMON) Date: Mon, 31 Aug 2020 13:22:35 +0200 Message-ID: <20200831112235.2675-1-sjpark@amazon.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200820072738.27602-1-sjpark@amazon.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.43.161.71] X-ClientProxiedBy: EX13D16UWB002.ant.amazon.com (10.43.161.234) To EX13D31EUB001.ant.amazon.com (10.43.166.210) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 20 Aug 2020 09:27:38 +0200 SeongJae Park wrote: > On Mon, 17 Aug 2020 12:51:22 +0200 SeongJae Park wrote: > > > From: SeongJae Park > > > > Changes from Previous Version > > ============================= > > > > - Place 'CREATE_TRACE_POINTS' after '#include' statements (Steven Rostedt) > > - Support large record file (Alkaid) > > - Place 'put_pid()' of virtual monitoring targets in 'cleanup' callback > > - Avoid conflict between concurrent DAMON users > > - Update evaluation result document > > > > Introduction > > ============ > > > > DAMON is a data access monitoring framework subsystem for the Linux kernel. > > The core mechanisms of DAMON called 'region based sampling' and 'adaptive > > regions adjustment' (refer to 'mechanisms.rst' in the 11th patch of this > > patchset for the detail) make it > > > > - accurate (The monitored information is useful for DRAM level memory > > management. It might not appropriate for Cache-level accuracy, though.), > > - light-weight (The monitoring overhead is low enough to be applied online > > while making no impact on the performance of the target workloads.), and > > - scalable (the upper-bound of the instrumentation overhead is controllable > > regardless of the size of target workloads.). > > > > Using this framework, therefore, the kernel's core memory management mechanisms > > such as reclamation and THP can be optimized for better memory management. The > > experimental memory management optimization works that incurring high > > instrumentation overhead will be able to have another try. In user space, > > meanwhile, users who have some special workloads will be able to write > > personalized tools or applications for deeper understanding and specialized > > optimizations of their systems. > > DAMON will be presented in the next week LPC[1]. To be prepared for a screen > sharing error (if I get no such error, I will do a live-demo), I recorded a > simple demo video. I would like to share it here to help your easier > understanding of DAMON. > > https://youtu.be/l63eqbVBZRY > > [1] https://linuxplumbersconf.org/event/7/contributions/659/ During the session, I introduced the list of future works and asked the audiences to vote for the priority of the tasks: https://youtu.be/jOBkKMA0uF0?t=13253 To summarize here, the tasks are (highest priority first): 1. Make current DAMON patchset series merged in the mainline (6 votes) 2. User space interface improvement (4 votes) - Multiple monitoring contexts - Charging of the monitoring threads' CPU usage 3. Support more address spaces (2 votes) - Cgroups, cached pages, specific file-backed pages, swap slots, ... 3. DAMON-based MM optimizations (2 votes) - Page reclaim, THP, compaction, NUMA balancing, ... 4. Optimize for special use-cases (1 vote) - Page granularity monitoring, accessed-or-not monitoring, ... So, I'd like to focus on polishing current patchset so that it could be merged in. For that, I'd like to ask your more reviews. While waiting for the reviews, I will start implementing other future features that received many votes. The support of multiple monitoring contexts for the user space would be the first one. Once the implementation is finished, I will post it as separated RFC patchset (the user space interface will be compatible with current one). Any comment is welcome. Thanks, SeongJae Park