środa, listopada 21, 2012

Zamiennik solarisowego /etc/project w Linuksie

mkdir /cgroup
mount -t tmpfs cg /cgroup
mkdir /cgroup/cg-tibo-apps
mount -t cgroup cg-tibco-apps -o cpuset,cpu,memory,blkio /cgroup/cg-tibo-apps
mkdir /cgroup/cg-tibo-apps/bw-channel-crm
echo 0 > /cgroup/cg-tibo-apps/bw-channel-crm/cpuset.cpus
echo 0 > /cgroup/cg-tibo-apps/bw-channel-crm/cpuset.mems
echo 2000 > /cgroup/cg-tibo-apps/bw-channel-crm/cpu.shares
echo `ps -ef | grep bwengine | grep bw-channel-crm | grep -v grep | awk '{print $2}' > /cgroup/cg-tibo-apps/bw-channel-crm/tasks

0 komentarze: