Re: [RFC] libcg: design and plans

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Balbir Singh
Date: Wednesday, March 5, 2008 - 7:24 am

Paul Menage wrote:

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
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC] libcg: design and plans, Dhaval Giani, (Tue Mar 4, 8:23 am)
Re: [RFC] libcg: design and plans, Xpl++, (Tue Mar 4, 10:15 am)
Re: [RFC] libcg: design and plans, Dave Hansen, (Tue Mar 4, 11:05 am)
Re: [RFC] libcg: design and plans, Balbir Singh, (Tue Mar 4, 9:48 pm)
Re: [RFC] libcg: design and plans, Dhaval Giani, (Tue Mar 4, 10:26 pm)
Re: [RFC] libcg: design and plans, Paul Menage, (Tue Mar 4, 11:15 pm)
Re: [Devel] Re: [RFC] libcg: design and plans, Denis V. Lunev, (Wed Mar 5, 12:17 am)
Re: [RFC] libcg: design and plans, Dhaval Giani, (Wed Mar 5, 3:33 am)
Re: [RFC] libcg: design and plans, Paul Menage, (Wed Mar 5, 3:41 am)
Re: [RFC] libcg: design and plans, Dhaval Giani, (Wed Mar 5, 4:07 am)
Re: [Devel] Re: [RFC] libcg: design and plans, Balbir Singh, (Wed Mar 5, 4:48 am)
Re: [RFC] libcg: design and plans, Paul Menage, (Wed Mar 5, 4:51 am)
Re: [RFC] libcg: design and plans, Xpl++, (Wed Mar 5, 4:56 am)
Re: [RFC] libcg: design and plans, Balbir Singh, (Wed Mar 5, 7:24 am)
Re: [RFC] libcg: design and plans, Dhaval Giani, (Wed Mar 5, 8:53 am)
Re: [RFC] libcg: design and plans, Paul Menage, (Wed Mar 5, 11:55 am)
Re: [RFC] libcg: design and plans, Xpl++, (Wed Mar 5, 12:36 pm)
Re: [RFC] libcg: design and plans, Rik van Riel, (Thu Mar 20, 3:04 pm)