All of lore.kernel.org
 help / color / mirror / Atom feed
From: Balbir Singh <balbir@linux.vnet.ibm.com>
To: Paul Menage <menage@google.com>
Cc: Dhaval Giani <dhaval@linux.vnet.ibm.com>,
	lkml <linux-kernel@vger.kernel.org>,
	containers@lists.linux-foundation.org,
	Balbir Singh <balbir@in.ibm.com>,
	Peter Zijlstra <a.p.zijlstra@chello.nl>,
	Srivatsa Vaddagiri <vatsa@linux.vnet.ibm.com>,
	Sudhir Kumar <skumar@linux.vnet.ibm.com>
Subject: Re: [RFC] libcg: design and plans
Date: Wed, 05 Mar 2008 19:54:56 +0530	[thread overview]
Message-ID: <47CEAD38.3080501@linux.vnet.ibm.com> (raw)
In-Reply-To: <6599ad830803050351p91bdacahd47059e863f56817@mail.gmail.com>

Paul Menage wrote:
> On Wed, Mar 5, 2008 at 3:07 AM, Dhaval Giani <dhaval@linux.vnet.ibm.com> wrote:
>>  OK. Hmm, I've not really thought about it. At first thought, it should
>>  not be very difficult. Only thing I am not sure is the arbitrary
>>  grouping of the groups (ok, a bit confusing).
> 
> I suspect that the main form of composite grouping is going to be
> between parents and children. E.g. you might want to say things like:
> 
> create_group(A, memory=1G, cpu=100)
> create_group(B, parent=A, memory=inherit, cpu=20)
> create_group(C, parent=A, memory=inherit, cpu=30)
> 
> i.e. both B and C inherit/share their memory limit from their parent,
> but have their own CPU groups (child groups of their parent?)
>

No, we don't plan on doing that. What we plan on doing is

1. Specify the mount point for each controller
2. In the create group API, specify the name of the group and the various
parameters.

If for example CPU is mounted at /cpu and Memory at /mem

Then a specification for creation of group A would be of the form

create_group(A, cpu=100, memory=100M)

Then,

/cpu/A has shares set to 100 and /mem/A has memory.limit set to 100M

If you want to create subgroups under A, you specify

create_group(A/B, memory=200M, cpu=50)

That would create /cpu/A/B and /mem/A/B

Please note that memory and CPU hierarchy needs work in the kernel. The shares
and hierarchy support is pending. We need to make the res_counters
infrastructure aware of hierarchies.



-- 
	Warm Regards,
	Balbir Singh
	Linux Technology Center
	IBM, ISTL

  reply	other threads:[~2008-03-05 14:26 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-04 15:23 [RFC] libcg: design and plans Dhaval Giani
2008-03-04 17:15 ` Xpl++
2008-03-05  4:48   ` Balbir Singh
     [not found]   ` <47CD83C7.4020206-d4um4pvOpxY@public.gmane.org>
2008-03-05  4:48     ` Balbir Singh
2008-03-05  5:26     ` Dhaval Giani
2008-03-05  5:26   ` Dhaval Giani
     [not found]     ` <20080305052631.GA26361-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
2008-03-05 11:56       ` Xpl++
2008-03-05 11:56     ` Xpl++
     [not found]       ` <47CE8A67.3050109-d4um4pvOpxY@public.gmane.org>
2008-03-05 15:53         ` Dhaval Giani
2008-03-05 15:53       ` Dhaval Giani
     [not found]         ` <20080305155310.GA5349-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
2008-03-05 19:36           ` Xpl++
2008-03-05 19:36         ` Xpl++
     [not found] ` <20080304152341.GB5659-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
2008-03-04 17:15   ` Xpl++
2008-03-04 18:05   ` Dave Hansen
2008-03-05  6:15   ` Paul Menage
2008-03-05 12:01   ` Paul Menage
     [not found]     ` <6599ad830803050401j2dbbfaa7ycdf0bbfce59539b2-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-03-05 12:27       ` Balbir Singh
2008-03-20 22:04   ` Rik van Riel
2008-03-04 18:05 ` Dave Hansen
2008-03-05  6:15 ` Paul Menage
     [not found]   ` <6599ad830803042215n6aedb3eeub0c037e6a4e7bb34-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-03-05  7:17     ` [Devel] " Denis V. Lunev
2008-03-05 10:33     ` Dhaval Giani
2008-03-05  7:17   ` [Devel] " Denis V. Lunev
     [not found]     ` <1204701467.15157.3.camel-aPCOdVxUTlgvJsYlp49lxw@public.gmane.org>
2008-03-05 11:48       ` Balbir Singh
2008-03-05 11:48     ` Balbir Singh
2008-03-05 10:33   ` Dhaval Giani
2008-03-05 10:41     ` Paul Menage
     [not found]       ` <6599ad830803050241k590e4389ud95b9b3ef920f8b6-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-03-05 11:07         ` Dhaval Giani
2008-03-05 11:07       ` Dhaval Giani
     [not found]         ` <20080305110730.GB22217-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
2008-03-05 11:51           ` Paul Menage
2008-03-05 11:51         ` Paul Menage
2008-03-05 14:24           ` Balbir Singh [this message]
2008-03-05 18:55             ` Paul Menage
     [not found]             ` <47CEAD38.3080501-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
2008-03-05 18:55               ` Paul Menage
     [not found]           ` <6599ad830803050351p91bdacahd47059e863f56817-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-03-05 14:24             ` Balbir Singh
     [not found]     ` <20080305103343.GA22217-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
2008-03-05 10:41       ` Paul Menage
2008-03-20 22:04 ` Rik van Riel
  -- strict thread matches above, loose matches on Subject: below --
2008-03-04 15:23 Dhaval Giani

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47CEAD38.3080501@linux.vnet.ibm.com \
    --to=balbir@linux.vnet.ibm.com \
    --cc=a.p.zijlstra@chello.nl \
    --cc=balbir@in.ibm.com \
    --cc=containers@lists.linux-foundation.org \
    --cc=dhaval@linux.vnet.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=menage@google.com \
    --cc=skumar@linux.vnet.ibm.com \
    --cc=vatsa@linux.vnet.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.