olexandr.klymenko |
12-13-2011 10:29 AM |
cgroup
I start testing cgroup on my appliances. The point is to make cgrulesengd move processes according to /etc/cgrules.conf:
Quote:
kioskset cpu,memory PLAYBACK/
kiosk1 cpu,memory PLAYBACK/
www-data cpu,memory WEB/
root cpu,memory ROOT/
|
my /etc/cgconfig.conf:
Quote:
group PLAYBACK {
cpu {
cpu.shares = 1000;
}
memory {
memory.limit_in_bytes = 1024M;
}
}
group WEB {
cpu {
cpu.shares = 500;
}
memory {
memory.limit_in_bytes = 512M;
}
}
group ROOT {
cpu {
cpu.shares = 50;
}
memory {
memory.limit_in_bytes = 512M;
}
}
mount {
cpu = /tmp/cgroups/cpu;
cpuacct = /tmp/cgroups/cpuacct;
memory = /tmp/cgroups/memory;
}
|
For some reason cgrulesengd doesn't move processes to groups at all.
Maybe someone is experienced in this technology
|