Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp393683ybz; Fri, 17 Apr 2020 03:08:54 -0700 (PDT) X-Google-Smtp-Source: APiQypLyGuUvNYrz2IP2JIan0C5qE+gwGYpGOXyhZTXMYqGWpVJzj7pbl5gbFz3Q+mlRnD81OUlo X-Received: by 2002:a17:906:35d0:: with SMTP id p16mr2182643ejb.77.1587118134547; Fri, 17 Apr 2020 03:08:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587118134; cv=none; d=google.com; s=arc-20160816; b=tv8X5eL/mvoyqlkx1EJJP4AAxvqpnkxtgRy6gclOKSx6nQ3w9yKH/LwXj6d2xW7b89 RuV4z+jJI+pXXwclFTd1iDD1KF5SFAzCv+Oj5CD21+wQT5risWfqQuwVikTRsvRLxjNT /yiAL8t2/Ak7cktYCoRldTyx/m4eN1oMfAELgDxsLimnzT/5TEi5QYApjOqyJzJf6Oog PaWHnOxng59jtBU9Dc+O/QP1kMw1CBGgDVoEgnRq11uTl73H1rppztHixvSP0Yvq5Q35 vPd89xUfVFtkPzEv0TFAyGVN0k6ClsHGwO+W/KiQ/7+YbFUocTjgKqyLN5S1Zb270eiY Yobg== 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:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=cOrb9bPUWtgd6Wsapeaho8G1pU3bJiwluL4FFzGvoDY=; b=GQn0tRiFef+XnQcSq0islGKd7Mu6j3ZPypqGzTM7ZaeUC5N7iWcfEV8TW0o8ZD3cFc vOolMrA5JGCZHlDBbWyKV89bWRvO7lUt7wjp5W03F9v/rJZWILEErnAZSli7VCsIp16f ZX+gqR6LoL2JF35+5IYXSxNCxvs1iCgt4NWBMBOQTonL4A7Jo6pp3XNkyimF7BVUy9CQ CIw/lwj8YNoRQja1OuPCmApurXz/HbQ1TuKVCSAKmVZjUx6fX7BlYDxtAjbjBPk5Ruyl Cv0KpfdOrPh1lIJsGJEBXeklXekUDZH2qpTqFch381OPSPwui/I5vU2y7X0mtuzQWeQ8 midg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=mDpYd1gB; 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 18si13645899ejy.287.2020.04.17.03.08.30; Fri, 17 Apr 2020 03:08:54 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=mDpYd1gB; 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 S1728758AbgDQKGo (ORCPT + 99 others); Fri, 17 Apr 2020 06:06:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725830AbgDQKGo (ORCPT ); Fri, 17 Apr 2020 06:06:44 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 590F5C061A0C for ; Fri, 17 Apr 2020 03:06:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=cOrb9bPUWtgd6Wsapeaho8G1pU3bJiwluL4FFzGvoDY=; b=mDpYd1gB+bi0K4T4b1v2Ciw4pB UIpwkgnCLwn7EJ8E43eLTiXToKyD7vCnn5f/+RDLTb4wEVE1AKWZq5y27rYTaouKNUL1doADfsHBS g4e49uwqq6dw+4sABzWQLf8R2J28Yvu3fUzjDSl4LOmfp/ca3DIMYuBG9MO87/vb46UgyltIgcBVe tqZe/VN94XQXkHZlFN0VhQmTAXOc/o3gZl80CZTsTawZ+vKl7Xe97Uvk/63Y39/t72JrDcykvywjV SSK5qmyEXIntmLYozQxcBrrceaBJ2zPOWWiOs0I/U6YOuLuuvq1nQt951OIlVEsHRlXz/yBwA0OZc WD2KJbWQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jPNtL-0000Hp-Tm; Fri, 17 Apr 2020 10:06:36 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 03B773006E0; Fri, 17 Apr 2020 12:06:33 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id B68282B1213AC; Fri, 17 Apr 2020 12:06:33 +0200 (CEST) Date: Fri, 17 Apr 2020 12:06:33 +0200 From: Peter Zijlstra To: "Huang, Ying" Cc: Mel Gorman , 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: [RFC] autonuma: Support to scan page table asynchronously Message-ID: <20200417100633.GU20730@hirez.programming.kicks-ass.net> References: <20200414081951.297676-1-ying.huang@intel.com> <20200414120646.GN3818@techsingularity.net> <20200415113226.GE20730@hirez.programming.kicks-ass.net> <87o8rsxlws.fsf@yhuang-dev.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87o8rsxlws.fsf@yhuang-dev.intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 16, 2020 at 09:24:35AM +0800, Huang, Ying wrote: > Peter Zijlstra writes: > > > On Tue, Apr 14, 2020 at 01:06:46PM +0100, Mel Gorman wrote: > >> While it's just an opinion, my preference would be to focus on reducing > >> the cost and amount of scanning done -- particularly for threads. > > > > This; I really don't believe in those back-charging things, esp. since > > not having cgroups or having multiple applications in a single cgroup is > > a valid setup. > > Technically, it appears possible to back-charge the CPU time to the > process/thread directly (not the cgroup). I've yet to see a sane proposal there. What we're not going to do is make regular task accounting more expensive than it already is.