public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] are cgroups automatic ?
@ 2011-04-11  8:01 Philip Webb
  0 siblings, 0 replies; 7+ messages in thread
From: Philip Webb @ 2011-04-11  8:01 UTC (permalink / raw
  To: Gentoo User

I have enabled cgroups in kernel 2.6.38 , but am not sure how they work.
There's nothing in the docs in  /usr/src/linux
& a search via 'make menuconfig' shows nothing suggestive.
Does the kernel automatically set them up once they're enabled
or does the user have to do something to define them ? -- anyone know ?

-- 
========================,,============================================
SUPPORT     ___________//___,   Philip Webb
ELECTRIC   /] [] [] [] [] []|   Cities Centre, University of Toronto
TRANSIT    `-O----------O---'   purslowatchassdotutorontodotca




^ permalink raw reply	[flat|nested] 7+ messages in thread

* [gentoo-user] are cgroups automatic ?
@ 2011-04-11 15:13 Philip Webb
  2011-04-11 15:27 ` Bill Longman
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Philip Webb @ 2011-04-11 15:13 UTC (permalink / raw
  To: Gentoo User

I have enabled cgroups in kernel 2.6.38 , but am not sure how they work.
There's nothing in the docs in  /usr/src/linux
& a search via 'make menuconfig' shows nothing suggestive.
Does the kernel automatically set them up once they're enabled
or does the user have to do something to define them ? -- anyone know ?

-- 
========================,,============================================
SUPPORT     ___________//___,   Philip Webb
ELECTRIC   /] [] [] [] [] []|   Cities Centre, University of Toronto
TRANSIT    `-O----------O---'   purslowatchassdotutorontodotca




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] are cgroups automatic ?
  2011-04-11 15:13 [gentoo-user] are cgroups automatic ? Philip Webb
@ 2011-04-11 15:27 ` Bill Longman
  2011-04-18  1:25   ` Philip Webb
  2011-04-11 16:01 ` Florian Philipp
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 7+ messages in thread
From: Bill Longman @ 2011-04-11 15:27 UTC (permalink / raw
  To: gentoo-user

On 04/11/2011 08:13 AM, Philip Webb wrote:
> I have enabled cgroups in kernel 2.6.38 , but am not sure how they work.
> There's nothing in the docs in  /usr/src/linux
> & a search via 'make menuconfig' shows nothing suggestive.
> Does the kernel automatically set them up once they're enabled
> or does the user have to do something to define them ? -- anyone know ?
> 

Are you sure there's no documentation?

/usr/src/linux/Documentation
$ grep -il cgroup */*.txt
accounting/cgroupstats.txt
block/cfq-iosched.txt
cgroups/blkio-controller.txt
cgroups/cgroups.txt
cgroups/cpuacct.txt
cgroups/cpusets.txt
cgroups/devices.txt
cgroups/freezer-subsystem.txt
cgroups/memcg_test.txt
cgroups/memory.txt
cgroups/resource_counter.txt
filesystems/tmpfs.txt
scheduler/sched-design-CFS.txt
scheduler/sched-rt-group.txt
sysctl/vm.txt
vm/hwpoison.txt
vm/numa_memory_policy.txt
vm/unevictable-lru.txt




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] are cgroups automatic ?
  2011-04-11 15:13 [gentoo-user] are cgroups automatic ? Philip Webb
  2011-04-11 15:27 ` Bill Longman
@ 2011-04-11 16:01 ` Florian Philipp
  2011-04-11 16:30 ` dong l
  2011-04-11 19:37 ` Paul Hartman
  3 siblings, 0 replies; 7+ messages in thread
From: Florian Philipp @ 2011-04-11 16:01 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1020 bytes --]

Am 11.04.2011 17:13, schrieb Philip Webb:
> I have enabled cgroups in kernel 2.6.38 , but am not sure how they work.
> There's nothing in the docs in  /usr/src/linux
> & a search via 'make menuconfig' shows nothing suggestive.
> Does the kernel automatically set them up once they're enabled
> or does the user have to do something to define them ? -- anyone know ?
> 

I haven't tried 2.6.38 yet but I'm one of the authors of
http://en.gentoo-wiki.com/wiki/Improve_responsiveness_with_cgroups

I guess you can follow that guide (except that step about adding lines
to ~/.bashrc which is supposedly obsolete in 2.6.38). Then you can see
for yourself how the kernel arranges your processes in cgroups.

Your cgroup mount point should contain directories (different groups)
and in each directory there is a "tasks" file containing process ids of
the associated tasks.

While you are at it, you could update the information on the wiki. Any
help there is appreciated. :)

Regards,
Florian Philipp


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] are cgroups automatic ?
  2011-04-11 15:13 [gentoo-user] are cgroups automatic ? Philip Webb
  2011-04-11 15:27 ` Bill Longman
  2011-04-11 16:01 ` Florian Philipp
@ 2011-04-11 16:30 ` dong l
  2011-04-11 19:37 ` Paul Hartman
  3 siblings, 0 replies; 7+ messages in thread
From: dong l @ 2011-04-11 16:30 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1121 bytes --]

You can dmesg|grep cgroup to see it works..
Sounds like
rquiss@Karata-Laptop ~ $ dmesg|grep cgroup
Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
allocated 41943040 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys blkio


2011/4/11 Philip Webb <purslow@ca.inter.net>

> I have enabled cgroups in kernel 2.6.38 , but am not sure how they work.
> There's nothing in the docs in  /usr/src/linux
> & a search via 'make menuconfig' shows nothing suggestive.
> Does the kernel automatically set them up once they're enabled
> or does the user have to do something to define them ? -- anyone know ?
>
> --
> ========================,,============================================
> SUPPORT     ___________//___,   Philip Webb
> ELECTRIC   /] [] [] [] [] []|   Cities Centre, University of Toronto
> TRANSIT    `-O----------O---'   purslowatchassdotutorontodotca
>
>
>

[-- Attachment #2: Type: text/html, Size: 1605 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] are cgroups automatic ?
  2011-04-11 15:13 [gentoo-user] are cgroups automatic ? Philip Webb
                   ` (2 preceding siblings ...)
  2011-04-11 16:30 ` dong l
@ 2011-04-11 19:37 ` Paul Hartman
  3 siblings, 0 replies; 7+ messages in thread
From: Paul Hartman @ 2011-04-11 19:37 UTC (permalink / raw
  To: gentoo-user

On Mon, Apr 11, 2011 at 10:13 AM, Philip Webb <purslow@ca.inter.net> wrote:
> I have enabled cgroups in kernel 2.6.38 , but am not sure how they work.
> There's nothing in the docs in  /usr/src/linux
> & a search via 'make menuconfig' shows nothing suggestive.
> Does the kernel automatically set them up once they're enabled
> or does the user have to do something to define them ? -- anyone know ?

AFAIK if you use 2.6.38 and see
/proc/sys/kernel/sched_autogroup_enabled = 1 then it should be active
and you don't need to do anything else special. But I could be wrong.



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] are cgroups automatic ?
  2011-04-11 15:27 ` Bill Longman
@ 2011-04-18  1:25   ` Philip Webb
  0 siblings, 0 replies; 7+ messages in thread
From: Philip Webb @ 2011-04-18  1:25 UTC (permalink / raw
  To: gentoo-user

110411 Bill Longman wrote:
> On 04/11/2011 08:13 AM, Philip Webb wrote:
>> I have enabled cgroups in kernel 2.6.38 , but am not sure how they work.
>> There's nothing in the docs in  /usr/src/linux
> Are you sure there's no documentation?

[long list snipped]

(red face) Yes there is.  And thanks to the others who had suggestions.
Now I can explore the topic at leisure.

-- 
========================,,============================================
SUPPORT     ___________//___,   Philip Webb
ELECTRIC   /] [] [] [] [] []|   Cities Centre, University of Toronto
TRANSIT    `-O----------O---'   purslowatchassdotutorontodotca




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-04-18  2:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-11 15:13 [gentoo-user] are cgroups automatic ? Philip Webb
2011-04-11 15:27 ` Bill Longman
2011-04-18  1:25   ` Philip Webb
2011-04-11 16:01 ` Florian Philipp
2011-04-11 16:30 ` dong l
2011-04-11 19:37 ` Paul Hartman
  -- strict thread matches above, loose matches on Subject: below --
2011-04-11  8:01 Philip Webb

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox