View Single Post
  #18  
Old 20th November 2010, 12:10 AM
schurke Offline
Registered User
 
Join Date: Jul 2007
Location: ::1
Posts: 7
Re: Easy alternative to the new 200 line kernel patch

@simpleblue -you've got Ubuntu's paths there, try fixing it for Fedora:

as root
Code:
service cgconfig start
and
Code:
chkconfig --level 2345 cgconfig on
in /etc/rc.local
Code:
mkdir -m 0777 /cgroup/cpu/user
echo "/usr/local/sbin/cgroup_clean" > /cgroup/cpu/release_agent
then in /usr/local/sbin/cgroup_clean
Code:
#!/bin/sh
rmdir /cgroup/cpu/user/$*
and make it exec with
Code:
chmod +x /usr/local/sbin/cgroup_clean
in user's ~/.bashrc
Code:
if [ "$PS1" ] ; then
mkdir -m 0700 /cgroup/cpu/user/$$
echo $$ > /cgroup/cpu/user/$$/tasks
echo "1" > /cgroup/cpu/user/$$/notify_on_release
fi
finally, a
Code:
sudo sh /etc/rc.local
should do...

Last edited by schurke; 20th November 2010 at 12:14 AM.
Reply With Quote