|
发表于 2011-1-9 13:55:31
|
显示全部楼层
Post by waterloo2005;2125295
Basically, Lennart explains you have to add this to your ~/.bashrc file (important: this won't work on Ubuntu. See instructions for Ubuntu further down the post!):
if [ "$PS1" ] ; then
mkdir -m 0700 /sys/fs/cgroup/cpu/user/$$
echo $$ > /sys/fs/cgroup/cpu/user/$$/tasks
fi
And run the following commands as super user:
mount -t cgroup cgroup /sys/fs/cgroup/cpu -o cpu
mkdir -m 0777 /sys/fs/cgroup/cpu/user
有人试过吗?谢谢
出处 http://www.webupd8.org/2010/11/a ... s-kernel-patch.html 这个就是前一阵说的那个200多行补丁的替代方案,gentoo-sources-2.6.36-r2内核自动打上了补丁,你可以试一下。 |
|