Gentoo Archives: gentoo-user

From: Florian Philipp <lists@×××××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] are cgroups automatic ?
Date: Mon, 11 Apr 2011 16:05:32
Message-Id: 4DA325EA.3030402@binarywings.net
In Reply to: [gentoo-user] are cgroups automatic ? by Philip Webb
1 Am 11.04.2011 17:13, schrieb Philip Webb:
2 > I have enabled cgroups in kernel 2.6.38 , but am not sure how they work.
3 > There's nothing in the docs in /usr/src/linux
4 > & a search via 'make menuconfig' shows nothing suggestive.
5 > Does the kernel automatically set them up once they're enabled
6 > or does the user have to do something to define them ? -- anyone know ?
7 >
8
9 I haven't tried 2.6.38 yet but I'm one of the authors of
10 http://en.gentoo-wiki.com/wiki/Improve_responsiveness_with_cgroups
11
12 I guess you can follow that guide (except that step about adding lines
13 to ~/.bashrc which is supposedly obsolete in 2.6.38). Then you can see
14 for yourself how the kernel arranges your processes in cgroups.
15
16 Your cgroup mount point should contain directories (different groups)
17 and in each directory there is a "tasks" file containing process ids of
18 the associated tasks.
19
20 While you are at it, you could update the information on the wiki. Any
21 help there is appreciated. :)
22
23 Regards,
24 Florian Philipp

Attachments

File name MIME type
signature.asc application/pgp-signature