group singlecore {
perm {
admin {
# can change settings (e.g. cpumask)
# or reset statistics
uid = root;
}
task {
# can run the tasks
uid = user;
}
}
cpuset {
# limit to single CPU
cpuset.cpus = 3;
cpuset.mems = 0;
}
cpuacct {
}
}
cgexec -g cpuset:singlecore /home/user/some_script.sh