You are not logged in.
Pages: 1
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
fithe 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 ![]()
thanks!
Offline
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
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 ![]()
Last edited by konni (2012-03-03 18:28:46)
Offline
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
Pages: 1