Re: [RFC] libcg: design and plans

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Xpl++
Date: Tuesday, March 4, 2008 - 10:15 am

Hi,

I was wonder if creating such library makes any sense at all, 
considering the nature of cgroups, the way they work and their possible 
application?
It seems to me that any attempt to create a 'simple' API would actualy 
result in something that will be much harder to use that just making raw 
mkdir/open/read/write/close operations. Another thing is suggested 
config for this lib would be more appropriate for a daemon rather than a 
library.
In general - cgroup is a very flexible subsystem that can be used in a 
wide variety of ways and modes and trying to create a universal simple 
API would more likely result in something hard to manage and work with.
The idea of having multiple container managers (applications that use 
libcg) creates a lots of questions and possible issues. Containers are 
supposed provide a flexible resource management and task grouping 
ability, which somewhat implies that there cannot be two different 
resource managers per node without one knowing well the 
desires/goals/methods of the other and vice versa. And should there be 
only one manager per node - probably it will be easier for it to use 
cgroup subsystem directly rather than using a wrapper library?

Regards,
Peter Litov.

Dhaval Giani ??????:
--
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)