From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756639Ab1ISQ1L (ORCPT ); Mon, 19 Sep 2011 12:27:11 -0400 Received: from mx2.parallels.com ([64.131.90.16]:33405 "EHLO mx2.parallels.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756462Ab1ISQ1J (ORCPT ); Mon, 19 Sep 2011 12:27:09 -0400 Message-ID: <4E776D31.9090008@parallels.com> Date: Mon, 19 Sep 2011 13:26:25 -0300 From: Glauber Costa User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0.2) Gecko/20110906 Thunderbird/6.0.2 MIME-Version: 1.0 To: Peter Zijlstra CC: , , , , , Subject: Re: [PATCH 3/9] Include nice values in cpuacct References: <1316030695-19826-1-git-send-email-glommer@parallels.com> <1316030695-19826-4-git-send-email-glommer@parallels.com> <1316449197.6091.6.camel@twins> In-Reply-To: <1316449197.6091.6.camel@twins> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [187.106.51.14] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/19/2011 01:19 PM, Peter Zijlstra wrote: > On Wed, 2011-09-14 at 17:04 -0300, Glauber Costa wrote: >> Besides user and system. > > > Why!? Because this is the whole purpose of this series. Think that in a reasonable use case, each cgroup will be tied to a container system. Each of them wants to have its own statistics, in /proc/stat. The best way I thought of doing it was to piggyback into cpuacct, instead of coming up with a 124th accounting mechanism just for that. I also used it do demonstrate how can we easily implement a new feature found in hypervisors out of it, but this is really just the cherry on top.