Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp890269ybl; Wed, 29 Jan 2020 11:25:59 -0800 (PST) X-Google-Smtp-Source: APXvYqzPTsSky/bKDdXkTkR/ruHsn0V/ryG8nU4uRAYlepTkQJfIgwzvwvfZrIfhw6eXQ856Cx1h X-Received: by 2002:a05:6830:18f5:: with SMTP id d21mr622091otf.225.1580325959014; Wed, 29 Jan 2020 11:25:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580325959; cv=none; d=google.com; s=arc-20160816; b=KOUMQTgbv5HMSLnY52fXyCWIMF/mPnz/bmySjsajObyUZ+ecIW2AO6J0EK4FmRwyyL 5o+5IeRGG9pOJG9gjG25c7QLOzSO6yLttCI8xAFg72MCDsWFBT5aqwvY373esHxBu86T 8A35D2DuqrjQxutrQx0tjxq9oCorEEK7BMJAgRIX5zYHB/6YIAvQEyc/PQkrnO+IYIeX ZbT4LGbnImIgIDieQj0DZ1RPRtZmHp9hAb8CLxWshIqvTwOzjhOAQoW+U1JPvq9eVd/T ojwlTwkWfAcdx5p0E/p1KTnsvrPHbEVS7Aw0EkTheo5I6urupMeW77qd3J3BJUsLLepx v3QA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=al7sS8M/717VVwE5/5undtsrujO0rBt1ejoTK551OXU=; b=k94h3Y3THlusR5x1FgirRyE76ABlUbo2QeNBvbigGedgP882paxFviJaqAAAbeGKCT FbWLepzyckcncNHP2T3GW/Se0OekD7a2UsooyFqrtRhiRbQJu4CEJCAu0XTYwWJjemo8 TYHlXS2ixZYJqsy6gigidM09bhIHEggnDm4573zeErxGqTvm7iAvvraLCtI1b0KO/XJW EP8EuXSn8cAVDnqYIWZ2KgfqBhANA+8y0h0KS6egSb/CMRByA0TwwIjjv95QEHYATYyR iVzyP+dUUJRw9XA5OgHIdiL7CuEK25AKdRWYqygeIr2y0pHuhd17hFy+4qAsosDrpb/e a2Eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=roHPqOct; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s18si1639270otr.172.2020.01.29.11.25.46; Wed, 29 Jan 2020 11:25:58 -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=@gmail.com header.s=20161025 header.b=roHPqOct; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728483AbgA2THE (ORCPT + 99 others); Wed, 29 Jan 2020 14:07:04 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:37275 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728477AbgA2THD (ORCPT ); Wed, 29 Jan 2020 14:07:03 -0500 Received: by mail-wr1-f67.google.com with SMTP id w15so797100wru.4; Wed, 29 Jan 2020 11:07:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to; bh=al7sS8M/717VVwE5/5undtsrujO0rBt1ejoTK551OXU=; b=roHPqOct4H2fUnD1pHVGmgmSikEmDQNoEYZkr6TOdKdwQEtvlV+qs5evNQE98ZWUAD VRKeTtA7jci2d9tKD/kkRkO2+uJ+hAzyc2SPdAQnVP78nGVlesuEqpcFMrODYP1OE81I G9Px2zca/2/XI9FjUS1YcTpaEHobU5Zc6iVp/q1nkCQ7mo969s1NLZYSM2R3cssius5F qsQHUkdpC1g4GvEbBjn3wfvSwRU3UXsXbkviMhc2LPwRvp/c2Ry12AzUfZxlJLhGs6JI 8ysXin9KRNZjjCD8yCip8Y9cdyTQFpXd9erT6mwd7e6MDOZEz184ea30jKLHCa3/OOtx wOKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to; bh=al7sS8M/717VVwE5/5undtsrujO0rBt1ejoTK551OXU=; b=Aedo691K4H/3OVHjhI50wOKIoDNtVY1pmztbCkK1vq1L0MMtraoCFVn9EvPXa/vHaM 3B0BCtmRYG5GWeB4ssK9Hz9pl9r45Ce7yMlHbrX9ecyMfTtqq59J23WIaRshGILXBdcm /SRqD7jyCoeW5/CxmfAYZlhIfnGiVMivFLAftq+1hiEVqGVEwSf/uDS9AZSJ/Sgl0qKi cKGXX3ytxP+20L1PSFzF7474t3QxL05RfupBns1tNHGlndTzevtQxRFUlYYq29+1kDuU 34DhA22zJdnc9WFDKU0SXK5rUSRT1Rrpvn8V4+sMfmbhMo7UVbJ6Ii4H/LD21vo1CglY BjFA== X-Gm-Message-State: APjAAAXAP3Hij29zhZMmPvG6X46Kek/inVw782W3LGMRaM/XKVdVSuPP 0TMLXUFFEPfmMDi/q9eUahs= X-Received: by 2002:adf:e3cd:: with SMTP id k13mr310720wrm.338.1580324820489; Wed, 29 Jan 2020 11:07:00 -0800 (PST) Received: from localhost.localdomain ([2a02:2450:10d2:194d:8f9:806b:30e8:a48e]) by smtp.gmail.com with ESMTPSA id a9sm3301053wmm.15.2020.01.29.11.06.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Jan 2020 11:06:59 -0800 (PST) From: SeongJae Park To: Peter Zijlstra Cc: sjpark@amazon.com, akpm@linux-foundation.org, SeongJae Park , sj38.park@gmail.com, acme@kernel.org, amit@kernel.org, brendan.d.gregg@gmail.com, corbet@lwn.net, dwmw@amazon.com, mgorman@suse.de, rostedt@goodmis.org, kirill@shutemov.name, brendanhiggins@google.com, colin.king@canonical.com, minchan@kernel.org, vdavydov.dev@gmail.com, vdavydov@parallels.com, linux-mm@kvack.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim Subject: Re: Re: Re: Re: [PATCH v2 0/9] Introduce Data Access MONitor (DAMON) Date: Wed, 29 Jan 2020 20:06:45 +0100 Message-Id: <20200129190645.2137-1-sj38.park@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200129180709.GS14879@hirez.programming.kicks-ass.net> (raw) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 29 Jan 2020 19:07:09 +0100 Peter Zijlstra wrote: > On Wed, Jan 29, 2020 at 03:37:58PM +0100, sjpark@amazon.com wrote: > > On Wed, 29 Jan 2020 13:56:15 +0100 Peter Zijlstra wrote: > > > > > On Tue, Jan 28, 2020 at 01:00:33PM +0100, sjpark@amazon.com wrote: > > > > > > > I worried whether it could be a bother to send the mail to everyone in the > > > > section, but seems it was an unnecessary worry. Adding those to recipients. > > > > You can get the original thread of this patchset from > > > > https://lore.kernel.org/linux-mm/20200128085742.14566-1-sjpark@amazon.com/ > > > > > > I read first patch (the document) and still have no friggin clue. > > > > Do you mean the document has insufficient description only? If so, could you > > please point me me which information do you want to be added? > > There was a lot of words; but I'm still not sure what it actually does. Sorry for my bad writing skill. Will restructure and wordsmith it for next spin. > > I've read some of the code that followed; is it simply sampling the > page-table access bit? It did some really weird things though, like that > whole 3 regions thing. Because simple Accessed bit sampling cannot preserve the accuracy of the monitored access patterns, we use the mechanism called 'region based sampling'. The patch introducing the mechanism would seems weird, mainly because it relies on another mechanism follows the patch. I should mentioned about it with the patch. I will add the description in next spin so people can understand that. > > Also, you wrote you wanted feedback from perf people; but it doesn't use > perf, what are you asking? DAMON aims to be another source of data that perf, other profiling tools, or even other kernel space code can use. Therefore I wanted to get some opinions about whether this data seems useful and how perf developers want the interface of DAMON to be shaped for co-operation with perf. Will make this more clear with next spin's cover letter. > > Perf can do address based sampling of memops, I suspect you can create > something using that. If you're saying implementing DAMON in 'perf mem', I think it would conflict with abovely explained DAMON's goal. Else, if you're saying it would be the right place to handle the DAMON generated data, I agree, thank you for pointing me that. Will keep it in mind while shaping the interface of DAMON. Thanks, SeongJae Park