Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp2177965ybf; Mon, 2 Mar 2020 03:36:21 -0800 (PST) X-Google-Smtp-Source: APXvYqyHObxCeLtNZBi3cjAut9MyjlNevK1hhlkYxygrjwOpwSIYw0/ZHHjeCQZiai6+cSY1iuGo X-Received: by 2002:aca:44f:: with SMTP id 76mr10560119oie.23.1583148981563; Mon, 02 Mar 2020 03:36:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583148981; cv=none; d=google.com; s=arc-20160816; b=zghs68pIcd+hjeuLKd4gkGodr3pfPXgLFUgVoQIktyY0oFJJdP8JukfROoxmX1G7RK JhBKrMfLzH0s2m8tcrGD5mNwUI2KI5VciOa/oqyTGE8mRci/LIbGbBcjf+6yxxfUkKmU s1SQqRPXWPMHRum7TDLMzMGtT1TjiIf+R38Zq6BQC/QW2fp4Vqw2j1wII0zPDW0x/oo2 hIzV37P3PhmC6XQvcJqqYVFqfYLrlax19CRe3RCCXlv3Job/GKl16FnWlY9i4EugKmWR lcKvLqLWSzG0uCNePJiJ2jthpTTLhQTRQfL8UerOxRE0sLd0r6Q0tDa3A3wyCN8B1PTp tYSA== 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:ironport-sdr:dkim-signature; bh=oC+sHqqor/YXZFufFO4f+Vkq6AmhWnj6RaFndViWmTI=; b=dlTjZllifVIKDyleZAArUzJ2gRIxwHMkOij+titzDKyU4NqqGvQoamKe+qs6k5gm7d lIc+/0SABIbzSGC2GybikTndr5/F2PK/5CsPzUiXCvnTThiOUnNRB2SNlIws52tSuzvU 1Y1Hyk7yDI9Sl1U/+y4rl1QB4EqKC+7VaU3vKHri3mIZBvtk/T92MILjhDm69DEsEn5W bTyfEvzTZ9Y6mMkuUo0RifFu3RBFix/wOrkcJIFUWNDt4DKG9V60TaBe5YHR+bOX7BsJ tPjwSQ9Ib1KLCmxmhtxZCxmRWvtEBgdOOVtyJ6SELs89pJpfni0IZ+whbCgHjHxcGJmx TPWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=aSNe+g53; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id j20si5942548oii.80.2020.03.02.03.36.09; Mon, 02 Mar 2020 03:36:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=aSNe+g53; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727492AbgCBLgF (ORCPT + 99 others); Mon, 2 Mar 2020 06:36:05 -0500 Received: from smtp-fw-9102.amazon.com ([207.171.184.29]:64872 "EHLO smtp-fw-9102.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726470AbgCBLgF (ORCPT ); Mon, 2 Mar 2020 06:36:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1583148965; x=1614684965; h=from:to:cc:subject:date:message-id:in-reply-to: mime-version; bh=oC+sHqqor/YXZFufFO4f+Vkq6AmhWnj6RaFndViWmTI=; b=aSNe+g53E0+IbcRa3RBNdiYcbZzJY/WqwYk0fVcOOCxIbMzIs4W23ayj RW1MfHLY8xdGQ0U+/AdUmKouG068JIqVb1wVPYFnKzZtaUucUXXHFt9nh ieYqGfBvsgGnbcl4xleork7axJUbHZVxFNkjk18uaR4jZ4woP9W91ZpA3 4=; IronPort-SDR: NFgSqvTchRtrH2OgxPCJhIR+IpWvawBTDEEkLI9AM+1mDBmz/Dl7tM6DwOfUffA0lKp3u/9af3 cwnogZa21mBg== X-IronPort-AV: E=Sophos;i="5.70,506,1574121600"; d="scan'208";a="28575233" Received: from sea32-co-svc-lb4-vlan3.sea.corp.amazon.com (HELO email-inbound-relay-1e-c7c08562.us-east-1.amazon.com) ([10.47.23.38]) by smtp-border-fw-out-9102.sea19.amazon.com with ESMTP; 02 Mar 2020 11:35:58 +0000 Received: from EX13MTAUEA002.ant.amazon.com (iad55-ws-svc-p15-lb9-vlan2.iad.amazon.com [10.40.159.162]) by email-inbound-relay-1e-c7c08562.us-east-1.amazon.com (Postfix) with ESMTPS id 89BE9249F0D; Mon, 2 Mar 2020 11:35:48 +0000 (UTC) Received: from EX13D31EUA001.ant.amazon.com (10.43.165.15) by EX13MTAUEA002.ant.amazon.com (10.43.61.77) with Microsoft SMTP Server (TLS) id 15.0.1236.3; Mon, 2 Mar 2020 11:35:47 +0000 Received: from u886c93fd17d25d.ant.amazon.com (10.43.161.74) by EX13D31EUA001.ant.amazon.com (10.43.165.15) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Mon, 2 Mar 2020 11:35:35 +0000 From: SeongJae Park To: , SeongJae Park CC: SeongJae Park , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Subject: Re: [PATCH v6 00/14] Introduce Data Access MONitor (DAMON) Date: Mon, 2 Mar 2020 12:35:12 +0100 Message-ID: <20200302113512.8880-1-sjpark@amazon.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200224123047.32506-1-sjpark@amazon.com> (raw) MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.43.161.74] X-ClientProxiedBy: EX13D04UWA004.ant.amazon.com (10.43.160.234) To EX13D31EUA001.ant.amazon.com (10.43.165.15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On Mon, 24 Feb 2020 13:30:33 +0100 SeongJae Park wrote: > From: SeongJae Park > > Introduction > ============ > > Memory management decisions can be improved if finer data access information is > available. However, because such finer information usually comes with higher > overhead, most systems including Linux forgives the potential improvement and > rely on only coarse information or some light-weight heuristics. The > pseudo-LRU and the aggressive THP promotions are such examples. > > A number of experimental data access pattern awared memory management > optimizations (refer to 'Appendix A' for more details) say the sacrifices are > huge. However, none of those has successfully adopted to Linux kernel mainly > due to the absence of a scalable and efficient data access monitoring > mechanism. Refer to 'Appendix B' to see the limitations of existing memory > monitoring mechanisms. > > DAMON is a data access monitoring subsystem for the problem. It is 1) accurate > enough to be used for the DRAM level memory management (a straightforward > DAMON-based optimization achieved up to 2.55x speedup), 2) light-weight enough > to be applied online (compared to a straightforward access monitoring scheme, > DAMON is up to 94.242.42x lighter) and 3) keeps predefined upper-bound overhead > regardless of the size of target workloads (thus scalable). Refer to 'Appendix > C' if you interested in how it is possible. > > DAMON has mainly designed for the kernel's memory management mechanisms. > However, because it is implemented as a standalone kernel module and provides > several interfaces, it can be used by a wide range of users including kernel > space programs, user space programs, programmers, and administrators. DAMON > is now supporting the monitoring only, but it will also provide simple and > convenient data access pattern awared memory managements by itself. Refer to > 'Appendix D' for more detailed expected usages of DAMON. I have posted this patchset once per week, but skip this week because there were no comments in last week and therefore made no change in the patchset. I think I answered to all previous comments and fixed all bugs previously found. May I ask some more comments or reviews? If I missed something or doing wrong, please let me know. Thanks, SeongJae Park [...]