Increase Ubuntu response on heavy load: ~200 line kernel patch dramatically improves desktop performance
I want share with you some experience of making some little hacking:
Starting with this http://
we can see the different system response on heavy load, videos here:
http://
Here a different solution http://
Here the steps to try this on your Ubuntu pc:
1) From terminal we can install:
sudo apt-get update
sudo apt-get install cgroup-bin libcgroup1
2) Now we must made executable and edit the /etc/rc.local by typing:
sudo chmod +x /etc/rc.local
sudo gedit /etc/rc.local
and add the following lines above "exit 0" row:
mkdir -p /dev/cgroup/cpu
mount -t cgroup cgroup /dev/cgroup/cpu -o cpu
mkdir -m 0777 /dev/cgroup/
echo "/usr/local/
Save and exit gedit.
3) After doing this, edit the .bashrc file found in your home directory, type:
gedit $HOME/.bashrc
and, at the end of this file, add:
if [ "$PS1" ] ; then
mkdir -m 0700 /dev/cgroup/
echo $$ > /dev/cgroup/
echo "1" > /dev/cgroup/
fi
Save and exit gedit.
4) To make sure that cgroups are deleted whenever the last task leaves, run:
sudo gedit /usr/local/
And copy-paste this:
#!/bin/sh
rmdir /dev/cgroup/cpu/$*
Once again, save the file, exit gedit and make it executable:
sudo chmod +x /usr/local/
5) Then restart your computer to apply the changes.
What do you think...?
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Ubuntu linux Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask marcobra (Marco Braida) for more information if necessary.