Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6502745ybi; Sun, 21 Jul 2019 19:38:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqzNTxhu6Metkb6/z+9bm6gD5+r4Xi1qnLuRpI1HMscQHEhhQ6CctmSo/C+BWLNvAIFLwwxz X-Received: by 2002:a17:90a:30aa:: with SMTP id h39mr74811589pjb.32.1563763107595; Sun, 21 Jul 2019 19:38:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563763107; cv=none; d=google.com; s=arc-20160816; b=WwHjsIRZa/xVfxtDCN5YeImFauLfILDmkQDEwTgcmtIBIhEpWyD2bSPUbUvup5DdRM Rz8UYLhMv45B6BUK+n4KtqfucTvEl7RW8DxqlSJfOCVXld2nSI9BvwWWPIzGGi78p3DH PCIXpXQ6FPSOXEGTPLxsLLw5myCd6UNGuP0bd55nILCdGChUxXPtALjeUaSnTXNhSIwq YJQz5o4uVVGoHFDhAwPbB3xs8L8oT/c4SUrrBlaPXAVFXKYAAseDMi0JuCJnI1tDi1dm v9LTE22uOpWVWgc9bEyDCJPJIoJwsEI8XC8H9mXZcuOqH8ylUQ0YNNLKAKeZV97SpR7Z w6qQ== 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=3m2dGoHi3M1vDO3xQ6pGA27Sr9eswVkrO4mdt+cFKLY=; b=SBu3TRXHCOtZBV7fcf9N74Tx5T+HbxRVo/tyLqJmBpVx4TmDnkEDPq/KFVXqMpO8Ak 56LK9GXl/qQjM/Y2lA7ZZoq/VSymAgyjU6/U5bgBjWiauFrhE+EBikotUqrkzGSOkbqs dnJ+r5CsOz6eOPghkxsdmrb62cMC6rWGgAx6oOAXcvKmxVaTjAYFhVRmv5zyn8Jx05MW TkVZ7wkelniCBqqm50IGS/O6Ca/Sg0/9Qta8/E0T4gWVeoVLTxh8pz++Y8wImscNDERj 6U/pPAxLabrEIcLJubQZ991uxh0UGoVjPX3ApgmRH2/S1gPHFuVF9oWwm8VZCcaga3hQ 197Q== 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 i5si11999767pjk.57.2019.07.21.19.38.11; Sun, 21 Jul 2019 19:38:27 -0700 (PDT) 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 S1728720AbfGVCgv (ORCPT + 99 others); Sun, 21 Jul 2019 22:36:51 -0400 Received: from out30-54.freemail.mail.aliyun.com ([115.124.30.54]:60214 "EHLO out30-54.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728559AbfGVCgu (ORCPT ); Sun, 21 Jul 2019 22:36:50 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R101e4;CH=green;DM=||false|;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04426;MF=yun.wang@linux.alibaba.com;NM=1;PH=DS;RN=13;SR=0;TI=SMTPD_---0TXSIFIJ_1563763005; Received: from testdeMacBook-Pro.local(mailfrom:yun.wang@linux.alibaba.com fp:SMTPD_---0TXSIFIJ_1563763005) by smtp.aliyun-inc.com(127.0.0.1); Mon, 22 Jul 2019 10:36:46 +0800 Subject: Re: [PATCH v2 2/4] numa: append per-node execution time in cpu.numa_stat To: =?UTF-8?Q?Michal_Koutn=c3=bd?= Cc: hannes@cmpxchg.org, vdavydov.dev@gmail.com, Peter Zijlstra , mhocko@kernel.org, Ingo Molnar , keescook@chromium.org, mcgrof@kernel.org, linux-mm@kvack.org, Hillf Danton , cgroups@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org References: <209d247e-c1b2-3235-2722-dd7c1f896483@linux.alibaba.com> <60b59306-5e36-e587-9145-e90657daec41@linux.alibaba.com> <65c1987f-bcce-2165-8c30-cf8cf3454591@linux.alibaba.com> <6973a1bf-88f2-b54e-726d-8b7d95d80197@linux.alibaba.com> <20190719163930.GA854@blackbody.suse.cz> From: =?UTF-8?B?546L6LSH?= Message-ID: <08280b56-edc1-288a-d38d-1c8bf8b988a7@linux.alibaba.com> Date: Mon, 22 Jul 2019 10:36:45 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <20190719163930.GA854@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/7/20 上午12:39, Michal Koutný wrote: > On Tue, Jul 16, 2019 at 11:40:35AM +0800, 王贇 wrote: >> By doing 'cat /sys/fs/cgroup/cpu/CGROUP_PATH/cpu.numa_stat', we see new >> output line heading with 'exectime', like: >> >> exectime 311900 407166 > What you present are times aggregated over CPUs in the NUMA nodes, this > seems a bit lossy interface. > > Despite you the aggregated information is sufficient for your > monitoring, I think it's worth providing the information with the > original granularity. As Peter suggested previously, kernel do not report jiffies to user anymore and 'ms' could be better, I guess usually we care about how much the percentage is on a particular node? > > Note that cpuacct v1 controller used to report such percpu runtime > stats. The v2 implementation would rather build upon the rstat API. Support cgroup v2 is on the plan :-) let's mark this as todo currently, i suppose they may not share the same piece of code. Regards, Michael Wang > > Michal >