Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758527AbcCVIkL (ORCPT ); Tue, 22 Mar 2016 04:40:11 -0400 Received: from cn.fujitsu.com ([59.151.112.132]:21543 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1758365AbcCVIj0 (ORCPT ); Tue, 22 Mar 2016 04:39:26 -0400 X-IronPort-AV: E=Sophos;i="5.22,518,1449504000"; d="scan'208";a="4840132" From: Zhao Lei To: , Tejun Heo , Peter Zijlstra CC: Zhao Lei Subject: [PATCH v4 0/4] cpuacct: split usage into user_usage and sys_usage Date: Tue, 22 Mar 2016 16:37:04 +0800 Message-ID: X-Mailer: git-send-email 1.8.5.1 MIME-Version: 1.0 Content-Type: text/plain X-yoursite-MailScanner-ID: E5976408D260.A49C2 X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: zhaolei@cn.fujitsu.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1365 Lines: 43 Sometimes, cpuacct.usage is not detialed enough to user to see how much usage a group used. We want to know how much time it used in user mode and how much in kernel mode. This patch introduce some more files to tell user these information. # ls /sys/fs/cgroup/cpuacct/cpuacct.usage* /sys/fs/cgroup/cpuacct/cpuacct.usage /sys/fs/cgroup/cpuacct/cpuacct.usage_percpu /sys/fs/cgroup/cpuacct/cpuacct.usage_user /sys/fs/cgroup/cpuacct/cpuacct.usage_percpu_user /sys/fs/cgroup/cpuacct/cpuacct.usage_sys /sys/fs/cgroup/cpuacct/cpuacct.usage_percpu_sys Changelog v3->v4: 1: Add a patch to use for_each_possible_cpu to iterate all cpus, Suggested-by: Peter Zijlstra Changelog v2->v3: 1: Remove some unnecessary locks and so some cleanup based on suggestion from Peter Zijlstra Changelog v1->v2: 1: Rebase on top of 4.5-rc6 2: Fix little spelling typo in description. 3: Fix line over 80 characters Yang Dongsheng (2): cpuacct: rename parameter in cpuusage_write for readability cpuacct: split usage into user_usage and sys_usage. Zhao Lei (2): cpuacct: small restruct for cpuacct cpuacct: Show possible_cpu in cpuacct kernel/sched/cpuacct.c | 173 ++++++++++++++++++++++++++++++++++--------------- kernel/sched/cpuacct.h | 4 +- 2 files changed, 124 insertions(+), 53 deletions(-) -- 1.8.5.1