Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp601663ybh; Tue, 10 Mar 2020 04:58:16 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtM2ph003XAI/yJ20hclnhtkJ/y7pDfgo58Sz/LLSCc8Eg08wsqKJK7jAmoxOmasbin2XsF X-Received: by 2002:a9d:5a92:: with SMTP id w18mr16815808oth.292.1583841496130; Tue, 10 Mar 2020 04:58:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583841496; cv=none; d=google.com; s=arc-20160816; b=0AHamSRNMRYFmnsyIpwxYVFR+Lht+avj0CciekERgBsvnpc/snQBSut/QApNQAUdgi nVm/YLpPyjOTs9u15MaLBiwUSAcSGp9AHGCMUzMVqb/eM97Jz4i9iLeXCVsyGgnflraz VJ/TKIT+GKmJnNr/Zl3sKxFV4NZvlx/xW1aBZRxQWwswM7Cqq+HY8UkCYLpy7t/Pdd15 2D7EET52qmBaQFnm40S28RMCrq4TvoJ/cx6kksHeQsb7dS8U+kHRlWTPtNgO/W89Xg1r O1eCst7FaaDiwqCa28VlMis5ui832HWc3HzCu5CjmBbXsK+egSZ9Ig4CUg2/J+lpDbR8 mUWg== 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=XgE7fl2rsu1FY7ZdIVhp6neAOLJV5gIrJsW3gETU0eM=; b=sd087R9QegT4CBKh4BIaARWpojkBtDoGjTx/d371ZAiCe2uBXXlMjufd+z+u0AvD2i oFfkrTur/DcXGd8n0gLcucZx5eGlyD+xo+SZOe8mboclZZbYBgQwz96zTbVcezIgreoq yDbV37Iu6pIAkGSYDc7Ko/RKo9RII8kGAFKUjqmLeciIo06jN8uBuER4tv8NxIVhZisV OR41XCkFie5c0ysLPMyrfnfStaiIAl1VWodSZxwWnFQ4geoiEOkctGjU9co0LID4ocMn nL+uIEpRXvRCPqtMUpZBryu1jKZIC/Lg/CWZwC8JTdElwgr4O+lKhVXnTgJ2ZvhNRisM hFkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=HEVK8xf5; 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 f20si7181209otl.313.2020.03.10.04.58.04; Tue, 10 Mar 2020 04:58:16 -0700 (PDT) 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=HEVK8xf5; 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 S1726451AbgCJL4c (ORCPT + 99 others); Tue, 10 Mar 2020 07:56:32 -0400 Received: from smtp-fw-9102.amazon.com ([207.171.184.29]:36263 "EHLO smtp-fw-9102.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726252AbgCJL4c (ORCPT ); Tue, 10 Mar 2020 07:56:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1583841392; x=1615377392; h=from:to:cc:subject:date:message-id:in-reply-to: mime-version; bh=XgE7fl2rsu1FY7ZdIVhp6neAOLJV5gIrJsW3gETU0eM=; b=HEVK8xf50yNJCWCslyH5qH7VsjfplPeENWOnOla3jcP8gwZ4ZCL1l0q4 T8cocqDUSYFDBgLOxxqQCAyBbHdnkjjHszR213oeMuJ/0aJAgCHoTCE2L A1ICcn90vLlupGYRp4hlqlSVLspu6y6NhurXoEOpxld9mTEoGzdhMzLjf 8=; IronPort-SDR: 0Hzydumc9Ij+7hDen+sL7JUWLL5Ret2Tmu1RWo6Sr1AL94jtdCPeH/n9LuHToof97fSrrZZupW HxW5PLblkjgg== X-IronPort-AV: E=Sophos;i="5.70,536,1574121600"; d="scan'208";a="30315489" Received: from sea32-co-svc-lb4-vlan3.sea.corp.amazon.com (HELO email-inbound-relay-1a-807d4a99.us-east-1.amazon.com) ([10.47.23.38]) by smtp-border-fw-out-9102.sea19.amazon.com with ESMTP; 10 Mar 2020 11:56:28 +0000 Received: from EX13MTAUEA002.ant.amazon.com (iad55-ws-svc-p15-lb9-vlan2.iad.amazon.com [10.40.159.162]) by email-inbound-relay-1a-807d4a99.us-east-1.amazon.com (Postfix) with ESMTPS id A4F76A0687; Tue, 10 Mar 2020 11:56:17 +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; Tue, 10 Mar 2020 11:56:16 +0000 Received: from u886c93fd17d25d.ant.amazon.com (10.43.162.67) by EX13D31EUA001.ant.amazon.com (10.43.165.15) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 10 Mar 2020 11:56:04 +0000 From: SeongJae Park To: Jonathan Cameron CC: SeongJae Park , , "SeongJae Park" , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Subject: Re: Re: [PATCH v6 06/14] mm/damon: Implement access pattern recording Date: Tue, 10 Mar 2020 12:55:49 +0100 Message-ID: <20200310115550.24668-1-sjpark@amazon.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200310090134.000052fb@Huawei.com> (raw) MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.43.162.67] X-ClientProxiedBy: EX13D16UWB004.ant.amazon.com (10.43.161.170) 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 On Tue, 10 Mar 2020 09:01:34 +0000 Jonathan Cameron wrote: > On Mon, 24 Feb 2020 13:30:39 +0100 > SeongJae Park wrote: > > > From: SeongJae Park > > > > This commit implements the recording feature of DAMON. If this feature > > is enabled, DAMON writes the monitored access patterns in its binary > > format into a file which specified by the user. This is already able to > > be implemented by each user using the callbacks. However, as the > > recording is expected to be used widely, this commit implements the > > feature in the DAMON, for more convenience and efficiency. > > > > Signed-off-by: SeongJae Park > > I guess this work whilst you are still developing, but I'm not convinced > writing to a file should be a standard feature... I also not sure whether this is right feature of the kernel or not, but this would minimize many efforts in user space. I also thought that this might be not out of the intention of the 'kernel_write()'. Nonetheless, this patch could be simply removed, as DAMON supports tracepoints and the recording can be implemented on user space using it. Could I ask your other suggestions for this feature? Thanks, SeongJae Park > > > --- [...]