Can't make Directory in /sys/fs/cgroup as SU
Konstantin Svist
fry.kun at gmail.com
Fri Nov 19 19:27:10 UTC 2010
On 11/19/2010 09:02 AM, Jim wrote:
> Fedora 13
>
> Trying to make Directory cpu in /sys/fs/cgroup as SU as per this below
> Website states
> And it keeps saying, "No such file or directory"
>
> /sys/fs/cgroup does exist.
>
> # cd /sys/fs/cgroup/
> [root at Bigone cgroup]# ls -al
> total 0
>
> drwxr-xr-x. 2 root root 0 Nov 19 11:26 .
> drwxr-xr-x. 5 root root 0 Nov 14 12:11 ..
>
> |So the command below won't work
>
> mount -t cgroup cgroup /sys/fs/cgroup/cpu -o cpu
> mkdir -m 0777 /sys/fs/cgroup/cpu/user|
>
> http://www.webupd8.org/2010/11/alternative-to-200-lines-kernel-patch.html
Try this one, instead (mostly from http://lkml.org/lkml/2010/11/16/413)
add to .bashrc:
if [ "$PS1" ] ; then
mkdir -m 0700 -p /cgroup/cpu/user/$$
echo 1> /cgroup/cpu/user/$$/notify_on_release
echo $$> /cgroup/cpu/user/$$/tasks
fi
create /bin/rmcgroup:
#!/bin/bash
rmdir /cgroup/cpu/$1
add to /etc/rc.local:
mount -t cgroup -o cpu none /cgroup/cpu
mkdir -p -m 0777 /cgroup/cpu/user
echo "/bin/rmcgroup"> /cgroup/cpu/release_agent
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.fedoraproject.org/pipermail/users/attachments/20101119/5dbd090c/attachment.html
More information about the users
mailing list