You are not logged in.

#1 2012-03-03 18:22:00

konni
Member
From: berlin
Registered: 2008-09-25
Posts: 99

cgroup question

hey everybody!

i just recently rediscovered archlinux as my distribution of choice and so far everything is pretty smooth.
except when doing something like compiling which takes a lot of cpu, which seems to slow down everything more than usual.

i figured that the cgroup stuff i had in my zshrc for quite some time does not work as expected.

if [ -d /dev/cgroup/cpu/user ]
then
  if [ "$PS1" ] 
    then
      mkdir -m 0700 /dev/cgroup/cpu/user/$$
      echo $$ > /dev/cgroup/cpu/user/$$/tasks
  fi
fi

the directory /dev/cgroup does not even exist.
is there anything i have to do to activate it? or is it deprecated in archlinux anyway?
maybe somebody could shed some light on this wink

thanks!

Offline

#2 2012-03-03 18:24:15

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: cgroup question

I don't know a thing about cgroups, but maybe you can figure it out with the help of our wiki: https://wiki.archlinux.org/index.php/Cgroups

Offline

#3 2012-03-03 18:26:51

konni
Member
From: berlin
Registered: 2008-09-25
Posts: 99

Re: cgroup question

i did read that article, but it looks like something way more complicated.
before it just magically grouped processes with a lot of threads into one and therefore not let them slow down other tasks as much.

but maybe i missunderstand the whole process and this is just what i'm looking for. mhhm... still hoping for a cgroup expert wink

Last edited by konni (2012-03-03 18:28:46)

Offline

#4 2012-03-03 18:32:00

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: cgroup question

Prior to systemd, they were generally mounted directly in root, in /cgroups (sounds like /dev/cgroup was used occasionally). Since 2.6.33-ish (might be slightly off here), the mount location has been standardized and moved to /sys/fs/cgroup.

Relevant: https://lkml.org/lkml/2010/7/22/381 (some posts are missing, but you'll get the gist of it)

Offline

Board footer

Powered by FluxBB