Thank you Balbir, for quick response.

a) libcgroup: frontend is conf file: cgconfig.conf, and backed (it writes) to 
VFS. 
Is this understanding right ?
If so, does libcgroup read conf file and sync conf file to VFS ? If so, do I 
need to invoke a command (which command) or API  for this to happen - 
periodically ?

Per man page:
"libcgroup can mount and create control groups and set their parameters as 
specified in a configuration file."
b) If I update conf file via editor, how does libcgroup detect it and VFS get 
updated ?I modified cgconfig.conf in samples directory but dont see VFS updated.

c) Requirement is (all of below):
Persistent configuration
Programmatic control
Classification of tasks


Thanks !

--- On Fri, 10/15/10, Balbir Singh <[email protected]> wrote:

From: Balbir Singh <[email protected]>
Subject: Re: [Libcg-devel] questions on libcgroup conf file
To:
 "ccmail111" <[email protected]>
Cc: [email protected]
Date: Friday, October 15, 2010, 3:34 AM

* 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

Reply via email to