* ccmail111 <[email protected]> [2010-10-15 00:15:47]:
> Hi,
>
> I am trying to use libcgroup-0.35.1 on RedHat 6.
>
Hi, ccmail111,
> I have few questions:
>
> I see the lib has C API interface and stores controller/groups config in RAM.
> How does this backend interface with kernel( aka subsystems ) work ? Does the
> lib dump or generate a conf file ?
Not sure I understand this question, the library mounts cgroup
subsystems and writes values to their control files.
> For library to interface with cgroup VFS, is there a need to run crulesengd
> or any other deamon ?
No cgrulesengd is optional
> To use library, what are the steps needed ?
We've got plenty of man pages, you might want to start there. The
first step is to see what your needs with cgroups are?
Persistent configuration
Programmatic control
Classification of tasks
> If I modify conf file (which has groups/subsystems defined) via editor
> instead of VFS cgroup files, then how does kernel get this update ?
> If a task is in multiple groups and in conflicting and overlapping rules,
> then which one(s) get applied ? Example: a task is in groupX with cpu 30%
> slot and also in another groupY with 20%. Does the task get 50% of cpu or
> average or such ?
I think spending more time with the cgroups subsystem and learning how
it works (kernel src)/Documentation/cgroups/cgroups.txt will answer these
questions.
--
Three Cheers,
Balbir
------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
Libcg-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libcg-devel