Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3680047pxb; Tue, 17 Nov 2020 00:09:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJwYeGIUEdBpwdt+ztZmDU51pawSgZ5b0M1uYQe7nxMefuWj7kUKTs1w1vc4jAEZTnEJsBeJ X-Received: by 2002:a17:907:4186:: with SMTP id mz6mr19020870ejb.175.1605600545983; Tue, 17 Nov 2020 00:09:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605600545; cv=none; d=google.com; s=arc-20160816; b=UMYIBfJMmAuSlC2iNV9qeI80RtXDesvTrM8OwzF5fM3/xz+ze1S6FVeP5EcVIwSmqq Jbpzd7mNKeSr+yr7LpYDi2OKkZzPHwndyY6BhdIj2Ty1vOmYNyo1TD0t/gJRBUREF85j So5wCOyIlmL4JwwYitnKjv5diexZa9Ir3P172Sg6F538Ik2vULUxMq+llTuX/+omXW/8 dQwyeJXLXKO4bRFnj97BZF9S6p15xWed9cb5/HCSwOK4ylROz4v6GseBjlMpxdq0J8k7 Rz2SclKhbPYojuhCs42hEsS1DUHLBsVYIDCwbucUI1DZl4BY5ePB78ZfKGwmLdkhQ8y+ KSRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=K8f6ETiEAQNHhAiPwTTzrZ8ML7xCbvOY3ECTsRFRiDw=; b=MiUJpXyCteWSSybNpGIf38aigjavDw/hL/vEWDexcjy8z6f/4GqV7MpEzGj/LaDcf/ ebe1hX24mkjlTH3kLKJkdcHgY/RvRKhjqsoK6UEvgwfO+3UPXw1+yuhq5oIypoLoGs5D Jcz1WLinl2bSrdpCuL4W948FQWrG+5aw4N+EbUcmJq4GsFRQcckx2yamr+SKdwBVxDDB YU5kYTI3Gs6ytIWuIDz8GHqEb6saQoq+OVlLF29fe22JRb5Od0WPBOaGooeGiPxz2R4W uJCCJMVO7jOjKAWk0CQ7IqF3kfi4jDx7W6tiQpvmeVva7dPUcVohrqpFkeuVNk4d+xd9 2F6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=r7irN8HX; 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 dm25si12725929edb.238.2020.11.17.00.08.43; Tue, 17 Nov 2020 00:09:05 -0800 (PST) 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=r7irN8HX; 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 S1726295AbgKQIGX (ORCPT + 99 others); Tue, 17 Nov 2020 03:06:23 -0500 Received: from smtp-fw-2101.amazon.com ([72.21.196.25]:59754 "EHLO smtp-fw-2101.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725747AbgKQIGW (ORCPT ); Tue, 17 Nov 2020 03:06:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1605600382; x=1637136382; h=from:to:cc:subject:date:message-id:in-reply-to: mime-version; bh=K8f6ETiEAQNHhAiPwTTzrZ8ML7xCbvOY3ECTsRFRiDw=; b=r7irN8HXOePiw8itlFDd5gb3hL3YeETeaXsJdAlDeBaUBYy5VDpSPiuf 83yNJprTAvNCM69IGU+Df3ESvfYa49xuSXBGpHwULXNPhbsfQZLMlYwGA H7PapC9yjTN3OLBrhQoaq6cB6sSf4b+qmWh5T4wXCo3vvRoR4N3fverR+ Y=; X-IronPort-AV: E=Sophos;i="5.77,484,1596499200"; d="scan'208";a="64147388" Received: from iad12-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-2b-c7131dcf.us-west-2.amazon.com) ([10.43.8.6]) by smtp-border-fw-out-2101.iad2.amazon.com with ESMTP; 17 Nov 2020 08:06:13 +0000 Received: from EX13D31EUA001.ant.amazon.com (pdx1-ws-svc-p6-lb9-vlan2.pdx.amazon.com [10.236.137.194]) by email-inbound-relay-2b-c7131dcf.us-west-2.amazon.com (Postfix) with ESMTPS id C43A8A1C14; Tue, 17 Nov 2020 08:06:09 +0000 (UTC) Received: from u3f2cd687b01c55.ant.amazon.com (10.43.162.144) by EX13D31EUA001.ant.amazon.com (10.43.165.15) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 17 Nov 2020 08:05:53 +0000 From: SeongJae Park To: SeongJae Park CC: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Subject: Re: [PATCH v22 00/18] Introduce Data Access MONitor (DAMON) Date: Tue, 17 Nov 2020 09:05:39 +0100 Message-ID: <20201117080539.31334-1-sjpark@amazon.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201111164113.23245-1-sjpark@amazon.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.43.162.144] X-ClientProxiedBy: EX13D46UWB001.ant.amazon.com (10.43.161.16) To EX13D31EUA001.ant.amazon.com (10.43.165.15) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Another week, another ping. I'm waiting for _any_ comments. Thanks, SeongJae Park On Wed, 11 Nov 2020 17:41:13 +0100 SeongJae Park wrote: > Hi, I'd like to remind you that I'm still waiting more reviews. Any comments > are welcome. > > > Thanks, > SeongJae Park > > On Tue, 20 Oct 2020 10:59:22 +0200 SeongJae Park wrote: > > > From: SeongJae Park > > > > Changes from Previous Version (v21) > > =================================== > > > > This version contains below minor changes. > > > > - Fix build warnings and errors (kernel test robot) > > - Fix a memory leak (kmemleak) > > - Respect KUNIT_ALL_TESTS > > - Rebase on v5.9 > > - Update the evaluation results > > > > Introduction > > ============ > > > > DAMON is a data access monitoring framework 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, several memory management mechanisms such as > > reclamation and THP can be optimized to aware real data access patterns. > > Experimental access pattern aware memory management optimization works that > > incurring high instrumentation overhead will be able to have another try. > > > > Though DAMON is for kernel subsystems, it can be easily exposed to the user > > space by writing a DAMON-wrapper kernel subsystem. Then, user space users who > > have some special workloads will be able to write personalized tools or > > applications for deeper understanding and specialized optimizations of their > > systems. > > > > Evaluations > > =========== > > > > We evaluated DAMON's overhead, monitoring quality and usefulness using 24 > > realistic workloads on my QEMU/KVM based virtual machine running a kernel that > > v22 DAMON patchset is applied. > > > > DAMON is lightweight. It increases system memory usage by 0.25% and slows > > target workloads down by 0.89%. > > > > DAMON is accurate and useful for memory management optimizations. An > > experimental DAMON-based operation scheme for THP, 'ethp', removes 81.73% of > > THP memory overheads while preserving 95.29% of THP speedup. Another > > experimental DAMON-based 'proactive reclamation' implementation, 'prcl', > > reduces 91.30% of residential sets and 23.45% of system memory footprint while > > incurring only 2.08% runtime overhead in the best case (parsec3/freqmine). > > > > NOTE that the experimentail THP optimization and proactive reclamation are not > > for production but only for proof of concepts. > > > > Please refer to the official document[1] or "Documentation/admin-guide/mm: Add > > a document for DAMON" patch in this patchset for detailed evaluation setup and > > results. > > > > [1] https://damonitor.github.io/doc/html/latest-damon/admin-guide/mm/damon/eval.html > >