Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp7855982ybc; Fri, 29 Nov 2019 02:09:01 -0800 (PST) X-Google-Smtp-Source: APXvYqyGkNo1iA33oQr8+O0yemBDE5WdOe11bQWh/7I5spVo3y672G5nhEfk9DvGAB6+UsOLFtpQ X-Received: by 2002:a05:6402:184e:: with SMTP id v14mr43825330edy.138.1575022141037; Fri, 29 Nov 2019 02:09:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575022141; cv=none; d=google.com; s=arc-20160816; b=e5Jo4UOfRFuxYjnM15Pvzj/l8hCoUp/ZwK6NExHzEtJM7s18CBPOKfQ6EGb9MfPTXS 9Z5MvDm4eiqu2ZuyALh/uSF5dE4f+46Lw2gARX33JlvcSkzt2d6FdMxzp2D8TeTgJ6/w BIwrNTFj9Jr4H9dk1Ic2fYy7jSRsuduXHGcfg2bo4l6FVe7jJ7UhBqIE5FM1swgsuRAk CGOz3My/hBU4BN+Jpll76+SYxp6Z6wHgpwipxV2zceAHcpqthb4gzJb3dr8t9E5weKdO 0gxH+4EiKjUx95NYPWwJ7VCREni6mfoTwxNJjm6JM+jJwaiD7In4JrIHp0ayCfHWZfZm g4Iw== 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=toJLZ24dY6opngwcTXy8ep5lirA4cXXDphi2+m/lc0k=; b=0Uby6GaocrTP3J4/TMkfMBUWXbzlMjytDHAmnHEOJpO0nkiWkoJRIek3AYra9ul/Y7 cBT5dixkZPg2eqea3V9S9ZGObIdr499fyjnPTBkArPcSHOX30l/IGFpvsPYcPkkyVxPJ IjL+vw5KOg5OI8fM3Qo93mr9mHGJ/NB8xWRlOa8FHgR/MI0iEzvzjChmUaUtBCwX73/e dBc46jx0aPstSQ1KBv20zhKhk+8mbVVT864VKiGSQ51KF96NNMXyR9ttHsXfSiBivGqs 3myQr9lFUCBdHHgEhB4OLcppIlHtNd273u8caZCmlC9AYurt4MCTj6mecea6mebjLC4n vA2A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q15si15076482edw.361.2019.11.29.02.08.36; Fri, 29 Nov 2019 02:09:01 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726834AbfK2KGo (ORCPT + 99 others); Fri, 29 Nov 2019 05:06:44 -0500 Received: from mx2.suse.de ([195.135.220.15]:35702 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725892AbfK2KGo (ORCPT ); Fri, 29 Nov 2019 05:06:44 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id D7179B1AD; Fri, 29 Nov 2019 10:06:41 +0000 (UTC) Date: Fri, 29 Nov 2019 11:06:39 +0100 From: Michal =?iso-8859-1?Q?Koutn=FD?= To: =?utf-8?B?546L6LSH?= Cc: Mel Gorman , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Luis Chamberlain , Kees Cook , Iurii Zaikin , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, "Paul E. McKenney" Subject: Re: [PATCH v2 1/3] sched/numa: advanced per-cgroup numa statistic Message-ID: <20191129100639.GI831@blackbody.suse.cz> References: <743eecad-9556-a241-546b-c8a66339840e@linux.alibaba.com> <207ef46c-672c-27c8-2012-735bd692a6de@linux.alibaba.com> <9354ffe8-81ba-9e76-e0b3-222bc942b3fc@linux.alibaba.com> <20191127101932.GN28938@suse.de> <3ff78d18-fa29-13f3-81e5-a05537a2e344@linux.alibaba.com> <20191128123924.GD831@blackbody.suse.cz> <20191128155818.GE831@blackbody.suse.cz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="tctmm6wHVGT/P6vA" Content-Disposition: inline In-Reply-To: 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 --tctmm6wHVGT/P6vA Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Nov 29, 2019 at 01:19:33PM +0800, =E7=8E=8B=E8=B4=87 wrote: > I did some research regarding cpuacct, and find cpuacct_charge() is a good > place to do hierarchical update, however, what we get there is the execut= ion > time delta since last update_curr(). I wouldn't extend cpuacct, I'd like to look into using the rstat mechanism for per-CPU runtime collection. (Most certainly I won't get down to this until mid December though.) > I'm afraid we can't just do local/remote accumulation since the sample pe= riod > now is changing, still have to accumulate the execution time into locality > regions. My idea was to decouple time from the locality counters completely. It'd be up to the monitoring application to normalize differences wrt sampling rate (and handle wrap arounds). Michal --tctmm6wHVGT/P6vA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEEoQaUCWq8F2Id1tNia1+riC5qSgFAl3g7aoACgkQia1+riC5 qSj6ihAAjGL+AfasV1mBclWNhpl6+ocgSIbO11onVPt4IbQHizY925prKB3WfEqc n/rv5OykoWSLCtZsSQAzqN7th9XYzqaALVJ7/CDfQP4QBIlPxBQ/nSQvE1mg5f5e Dyon80A94xAxWScMCXhpL1BgmNJH9PxgI/1rVq0RuAn2OE5XN/95xzesZh89SWLa A8iJ/4rvUwF7aQZLpG75U03Kejo16aBPcaSh8M9dqCPTa9R0/iXMc20bzVBhpqZq GvT+V5NjgOmM4mxwa1atcOXdsb5w+J3NRTxl4fl8rwr01WTwR6OiU2ZTV3+OMqwe DK0UaLdwKc9X7uzioPiVZlICOz8lBccd19ZvmMUVPgZdwIfXLT52S30dp38gq6vd RVOGf68MWI0swndpgnVcSHpSyIgMOvQBdWaA0Yv8GkfIcADwCceeFQ0joyhm+SbU wnhfEB6/gwWn5CU9bhhNJF2yILxxmQYfjE4hgkMg4fvdddisAvha7AVDYS5dXadW xSnvCXgI1gRXm4SmF8SmuLDVsLdmFJf2OIjKBbOZ2lY1yxnO66bc/cSKQZlYGyVg 7cFZDhjUCKPEys1sn7SwV4KGpa9AQVBL18D6AvAAwnWRxJxPdSJP2lKB0u4sIDJQ kqGtI30Ny4C8ClB1XqB1YAMHYjObuuGfBG0NtCLap6bOxI0hdc0= =+0n3 -----END PGP SIGNATURE----- --tctmm6wHVGT/P6vA--