Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp407390ybz; Fri, 17 Apr 2020 03:24:36 -0700 (PDT) X-Google-Smtp-Source: APiQypJ131I7HHOU4YzzT+ATOwn6yNyGTWqHNZsggqBuaMPKIbUhwIDi4E0bS8p5qWlT6XQvzMB8 X-Received: by 2002:a50:874b:: with SMTP id 11mr2143233edv.384.1587119076088; Fri, 17 Apr 2020 03:24:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587119076; cv=none; d=google.com; s=arc-20160816; b=gVfv4tQhOj4z644aKbkq2PAxUdUkSjD4VRVM3lKd+R1Yrti0KNSVpazG2cppbbZQua Uxfkfbft3GWt+FOO9FW3A/qpm2wXUQmu/PY5/suK+uqDMxv5+RGuYcLRb+LePrFj+ZLE Ys4H0yNxrJoG4i6ualoRhZdgHC/ZRTHNAEV6J4udeTsi6kX39mDkg3qnGwDKJBG3M3IN f2PeR2q0czuYjrTHQU20jJ7bSNMXLIYCVe3cGca35FIfA49xyFmF609x4lpRQvbf3h6W f+meuGXlv/d2c+HD3cFw0Z3E/BRm+48MHfGP/x45yA9pJ/UGpvhbvXIDhDyPd1Tynz6I UURA== 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=aTIAcIO1w9LM8vub4lfbLCo4YRtnh5tcxb1BzUTDdWA=; b=t0u1XnuMkihJHCQI60IdXpVYHOPbKYj+QMyz35CjIcaN7wTdAfj8lSILxB7m4+6yj+ 0CsSVuCBHK1ioP/ZBzIrGjX9y3z2uLw7n/LNGBsY6Eij0+3KNBNhZK5rCmWONyCSZNvW rbelYVKduKyCpsg+X3wn1yZA4Y7DFA6eebNHi4z59FGWN6CJyYzI7GIBWLjZRpHxzwel 3V7MBTx+8WZ42S5QqjHZFtoHpX6DvFUn+Pr0NsOXiVTlWBCLqHfjvjVqrTDacldMY71i Pcrx0qWM1sXwnd+rhQL22WaSzDW2DoxXNzRxiKQW7uyu44ca5pU7WsQ8xyEtqjXQuu/U qz6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=a43uLLps; 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 a16si4310877ejt.100.2020.04.17.03.24.12; Fri, 17 Apr 2020 03:24:36 -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=a43uLLps; 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 S1729179AbgDQKWb (ORCPT + 99 others); Fri, 17 Apr 2020 06:22:31 -0400 Received: from smtp-fw-33001.amazon.com ([207.171.190.10]:21543 "EHLO smtp-fw-33001.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728627AbgDQKW2 (ORCPT ); Fri, 17 Apr 2020 06:22:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1587118948; x=1618654948; h=from:to:cc:subject:date:message-id:in-reply-to: mime-version; bh=aTIAcIO1w9LM8vub4lfbLCo4YRtnh5tcxb1BzUTDdWA=; b=a43uLLpsp0+LAEhQj8nOnm11polWtIvrr+Mj9k2CusYcc+Yc1RSRqjzr 3ztiIB4+63tVRpMg+Ooa8k2LdY9v5CZ80AaAPF5ZYi2m8RI5y5xVdkXQ5 mDkhZQM5vHNzsMHIA370QmjePFV3/GqHi8u5EPBJp7yJbunEDAQMMXZ8E k=; IronPort-SDR: sRUR1BUkilGuYpEQveKHjmldW3NGM6g3Plm1lo8Ns/aiG5KUs82OpuBznAV6Mr/Z4aM3pS+sZ1 yJJ/GLXrNzWQ== X-IronPort-AV: E=Sophos;i="5.72,394,1580774400"; d="scan'208";a="39069940" Received: from sea32-co-svc-lb4-vlan3.sea.corp.amazon.com (HELO email-inbound-relay-2a-1c1b5cdd.us-west-2.amazon.com) ([10.47.23.38]) by smtp-border-fw-out-33001.sea14.amazon.com with ESMTP; 17 Apr 2020 10:22:26 +0000 Received: from EX13MTAUEA002.ant.amazon.com (pdx4-ws-svc-p6-lb7-vlan2.pdx.amazon.com [10.170.41.162]) by email-inbound-relay-2a-1c1b5cdd.us-west-2.amazon.com (Postfix) with ESMTPS id 6C6C6A07B2; Fri, 17 Apr 2020 10:22:25 +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.1497.2; Fri, 17 Apr 2020 10:22:25 +0000 Received: from u886c93fd17d25d.ant.amazon.com (10.43.162.238) by EX13D31EUA001.ant.amazon.com (10.43.165.15) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 17 Apr 2020 10:22:17 +0000 From: SeongJae Park To: Peter Zijlstra CC: SeongJae Park , "Huang, Ying" , Mel Gorman , , , Ingo Molnar , Mel Gorman , Rik van Riel , Daniel Jordan , Tejun Heo , Dave Hansen , Tim Chen , Aubrey Li Subject: Re: Re: Re: [RFC] autonuma: Support to scan page table asynchronously Date: Fri, 17 Apr 2020 12:21:29 +0200 Message-ID: <20200417102129.23399-1-sjpark@amazon.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200417100417.GT20730@hirez.programming.kicks-ass.net> (raw) MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.43.162.238] X-ClientProxiedBy: EX13D24UWB001.ant.amazon.com (10.43.161.93) 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 Fri, 17 Apr 2020 12:04:17 +0200 Peter Zijlstra wrote: > On Fri, Apr 17, 2020 at 09:05:08AM +0200, SeongJae Park wrote: > > I think the main idea of DAMON[1] might be able to applied here. Have you > > considered it? > > > > [1] https://lore.kernel.org/linux-mm/20200406130938.14066-1-sjpark@amazon.com/ > > I've ignored that entire thing after you said the information it > provides was already available through the PMU. Sorry if my answer made you confused. What I wanted to say was that the fundamental access checking mechanism that DAMON depends on is PTE Accessed bit for now, but it could be modified to use PMU or other features instead. In other words, PMU on some architectures could provide the fundamental, low level information for DAMON, as PTE Accessed bit does. What DAMON does are efficient control of the fundamental access checking features and making of elaborated final informations, which PMU itself doesn't provide. Thanks, SeongJae Park