Libcgroup

From CBLFS
Revision as of 23:18, 23 October 2010 by Jigslinx (talk | contribs) (Created new page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
Download Source: http://sourceforge.net/projects/libcg/files/libcgroup/v0.36.2/libcgroup-0.36.2.tar.bz2/download

Introduction to Libcgroup

Control groups, a new kernel feature in Linux 2.6.24 provides a file system interface to manipulate and control the details on task grouping including creation of new task groups (control groups), permission handling and task assignment.

Project Homepage: http://libcg.sourceforge.net/


Dependencies

Runtime

Configuration Information

Non-Multilib

Compile the package:

./configure --prefix=/usr &&
make

Install the package:

make install

Move the /usr/lib/security/* to /lib/security

mv /usr/lib/security/* /lib/security

Multilib

Please contribute for this section.

32Bit

Please contribute for this section.

N32

Please contribute for this section.

64Bit

Please contribute for this section.

Configuring

Copy the sample cgroup.conf file to /etc

cp samples/cgroup.conf /etc

Modify the /etc/cgroup.conf to have at least root group.

Add following line to /etc/pam.d/su

session                optional        pam_cgroup.so

Contents

Installed Directories: None
Installed Programs: cgconfigparser, cgclear, cgrulesengd, cgclassify, cgget, cgdelete, cgset, lscgroup, cgexec, lssubsys, cgcreate
Installed Libraries: libcgroup.so.1.0.36, pam_cgroup.so.0.0.0

Short Descriptions

cgconfigparser setup control group file system.
cgclear unload the cgroup filesystem
cgrulesengd control group rules daemon
cgclassify move running task(s) to given cgroups
cgget print parameter(s) of given group(s)
cgdelete remove control group(s)
cgset set the parameters of given cgroup(s)
lscgroup list all cgroups
cgexec run the task in given control groups
lssubsys list hierarchies containing given subsystem
cgcreate create new cgroup(s)
libcgroup.so.1.0.36
pam_cgroup.so.0.0.0 This is a PAM module for placing the processes in respective groups.