Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp507662ybz; Fri, 17 Apr 2020 05:18:34 -0700 (PDT) X-Google-Smtp-Source: APiQypLqIgIukuRLdIwlcD7AvElXwN/ccSv63fF1qcnLsNuChKFIc6pdvvLsIKhEvBMWb3xTUwLH X-Received: by 2002:a50:f617:: with SMTP id c23mr2580875edn.60.1587125914332; Fri, 17 Apr 2020 05:18:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587125914; cv=none; d=google.com; s=arc-20160816; b=dCq2vjAqtHcfCwCORoDbqOYIw1pSIWa2h8/hDSgMxQ3SB/+SHKWuHiXv0pdE+IXepD Qy2hf9x4dhKu4vJlrTAoo1agRbFYbaHqR1HKoTNi6m3S/9mTPDXGMf4GJw3Q1X0ioQ8B G2YbZvHr1kkJ2cjyKNEgJgcy9rzWSemsuP58BaUo3eoFoTsjueYUAF2xHnC6VgzCSfBQ EoFtbwF3txdcoHhcljmjoEE2ge1BQy5PkmUqpef635xASuinoWLPyaagnJZXFK0zkbnr wGLazFWkoqOCZasgeCASr5pXTJl1UsRuYoSoiN/lYELDJiCBKk3h+BrCAw0zRtX7jCwm lCkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=H6slRS6h0+b2gUoSgFm/GKbvSl9RA9JsewKwopClJDU=; b=v/DWCV8UnTqrOkeESJ6U8bG5KFUAfcwi04UuKRqjb4Cl4oJLgvPZiC4Il3Ax63xTCQ 5tMuV+j51v0MdqhVSroxW7fvzyklPGIgxjqfVk6+EqK4/q03mUk3cMxnn5AdZkMoco13 8LEuBG/rEPxJEL4K5ciFwJmJsg/i+TRINUZWzRhy65SD/gl984VDcxfRj4eZ2xCA9WHe 8w6rEmvu70w5p2SMn6Fm247jbsICIrKpL/BigpsWBYn8HkgbapsAtPWscf5DFe/k4eXs LzzRAXTCe9jv3dv7eyEuc8+AUH7vk2KMufBblFt8LqRoDATSBYWoUdqioTCZdMc0uLl/ VVkw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cw6si9139152edb.552.2020.04.17.05.18.11; Fri, 17 Apr 2020 05:18:34 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728862AbgDQMQp (ORCPT + 99 others); Fri, 17 Apr 2020 08:16:45 -0400 Received: from outbound-smtp54.blacknight.com ([46.22.136.238]:51915 "EHLO outbound-smtp54.blacknight.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728071AbgDQMQp (ORCPT ); Fri, 17 Apr 2020 08:16:45 -0400 Received: from mail.blacknight.com (pemlinmail01.blacknight.ie [81.17.254.10]) by outbound-smtp54.blacknight.com (Postfix) with ESMTPS id 705E1FAB1D for ; Fri, 17 Apr 2020 13:16:43 +0100 (IST) Received: (qmail 20170 invoked from network); 17 Apr 2020 12:16:43 -0000 Received: from unknown (HELO techsingularity.net) (mgorman@techsingularity.net@[84.203.18.57]) by 81.17.254.9 with ESMTPSA (AES256-SHA encrypted, authenticated); 17 Apr 2020 12:16:43 -0000 Date: Fri, 17 Apr 2020 13:16:29 +0100 From: Mel Gorman To: SeongJae Park Cc: Peter Zijlstra , "Huang, Ying" , linux-mm@kvack.org, linux-kernel@vger.kernel.org, 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 Message-ID: <20200417121629.GA3758@techsingularity.net> References: <20200417100417.GT20730@hirez.programming.kicks-ass.net> <20200417102129.23399-1-sjpark@amazon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20200417102129.23399-1-sjpark@amazon.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 17, 2020 at 12:21:29PM +0200, SeongJae Park wrote: > 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. I would not be inclined to lean towards either approach for NUMA balancing. Fiddling with the accessed bit can have consequences for page aging and residency -- fine for debugging a problem, not to fine for normal usage. I would expect the PMU approach would have high overhead as well as taking over a PMU counter that userspace debugging may expect to be available. -- Mel Gorman SUSE Labs