Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1014040ybl; Sun, 1 Dec 2019 18:13:42 -0800 (PST) X-Google-Smtp-Source: APXvYqyHWcL0P068wCDzItcvTzPIpPzdkKEzMuIambMP8sSx2syrRWyt3NzhlcmC1sf6EIzbRjEK X-Received: by 2002:a05:6402:1350:: with SMTP id y16mr12252793edw.176.1575252822350; Sun, 01 Dec 2019 18:13:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575252822; cv=none; d=google.com; s=arc-20160816; b=ZhGQXMhbrjtDtGKJ6IUTgPqET9mEWEUypBWz1XYjWv3Q8rAma9Yoc0cJKZ7CRQCVA1 ih7NfstEMfwzRnyGFi0Q9XRCD3CJABvNJytLNAXiDPb1DMsH0vvwZu2bDoMMInAxSEqA 2WrUT7Lpd4Wyv9WFWB4VEI7Rhk6+n586i6ns/Zxi9wlEo95IYwjleteRknjcJYcZnlga Zr3FlpfDHyNY7m3sQHoq39CYsIZ+Ql8KQSEdMdkmLs2sGIn3phMziAbM/JHIuBIBARPW z+QicRGYWMkTG+59fJOA4t1BlxrGcD7ZMmA+ea/TZ90ZQ6gsKCUaaa0BNt9YIIE2lViH kuiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=QJbh/a8Nezdovnj3Rcmd1nrfDBOfrU7tRtJumazE+u8=; b=aQbwQq1Tnv2BYpon9B6B+nP+dlOoOevzDNsC4nO331OJ82kowNGlrW0eJ0iPW90slS ZxnuyPKj9k+QkYjvP7WVy7yQQ1p+PotlEr5L73cXWgIewY9TmxHI4Ax5Npm/GHJtt6EJ CCvdD9gt8d1uY04LL5tBIlplD1y5QCUAXLPeA51UdG/zRpI8iRashh9yKf74VMfe51SK s2Yq5tAYJ0OdBuBlnqHnRg2v6EB/MiCZ0Tg/vg5iDGxon5ZZFxN7J7/0pfiRyiQ5oDMp Ze+V4Fm0s1Lpx5Pl7TTF7O1dQ/4liXeYYw2Dv9MYO9gUfzwfvfGEI+YgyxJzCzLYLe/9 K2vw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id qx24si3773640ejb.318.2019.12.01.18.13.19; Sun, 01 Dec 2019 18:13:42 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727450AbfLBCMN (ORCPT + 99 others); Sun, 1 Dec 2019 21:12:13 -0500 Received: from out30-133.freemail.mail.aliyun.com ([115.124.30.133]:39806 "EHLO out30-133.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727285AbfLBCMN (ORCPT ); Sun, 1 Dec 2019 21:12:13 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R141e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01f04427;MF=yun.wang@linux.alibaba.com;NM=1;PH=DS;RN=16;SR=0;TI=SMTPD_---0Tjbq8zw_1575252725; Received: from testdeMacBook-Pro.local(mailfrom:yun.wang@linux.alibaba.com fp:SMTPD_---0Tjbq8zw_1575252725) by smtp.aliyun-inc.com(127.0.0.1); Mon, 02 Dec 2019 10:12:06 +0800 Subject: Re: [PATCH v2 1/3] sched/numa: advanced per-cgroup numa statistic To: =?UTF-8?Q?Michal_Koutn=c3=bd?= 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" 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> <20191129100639.GI831@blackbody.suse.cz> From: =?UTF-8?B?546L6LSH?= Message-ID: <89d49efa-23a5-4bed-cd81-0de05500c518@linux.alibaba.com> Date: Mon, 2 Dec 2019 10:11:14 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191129100639.GI831@blackbody.suse.cz> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/11/29 下午6:06, Michal Koutný wrote: > On Fri, Nov 29, 2019 at 01:19:33PM +0800, 王贇 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 execution >> 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 period >> now is changing, still have to accumulate the execution time into locality >> regions.y > 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). I see, basically I understand your proposal as utilize cpuacct's runtime and only expose per-cgroup local/remote counters, I'm not sure if the locality still helpful after decouple time factor from it, both need some investigation, anyway, once I could convince myself it's working, I'll be happy to make things simple ;-) Regards, Michael Wang > > > Michal >