Created
April 13, 2012 11:49
-
-
Save ataliba/2376277 to your computer and use it in GitHub Desktop.
Update for my tip about the kernel otimization using cgroup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Enable creation of task groups per TTY | |
[Service] | |
Type=oneshot | |
ExecStart=/bin/mkdir -p -m 0777 /sys/fs/cgroup/cpu/user | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After you use this tip, you need to install the libcgroup package:
$ sudo yum install libcgroup -y
To use this tip, you need to put on your .bashrc this lines :
if [ "$PS1" ] ; then
mkdir -m 0700 /sys/fs/cgroup/cpu/user/$$
echo $$ > /sys/fs/cgroup/cpu/user/$$/tasks
fi
Reboot your machine or create the directory with this command :
sudo /bin/mkdir -p -m 0777 /sys/fs/cgroup/cpu/user
And enjoy your system :-)