I have been reading lots of threads about improved performance in Jaunty, but unfortunately my system was running slower just after a clean install. For example, I barely could watch a flash video on YouTube without practically freezing Firefox and the CPU usage was considerably higher than Hardy Heron.
After reading a lot of threads about different solutions for different problems, I did some tweaks that increased my system performance and improved Firefox benchmarks considerably. For additional Firefox tweaks visit http://ubuntuforums.org/showthread.php?t=1193567
Remove pulseaudio and install esound: this can improve performance considerably and solve issues of audio out-of-sync.
How-To
Warning: when you remove pulseaudio or install esound, the package manager also removes the metapackage ubuntu-desktop. Don't worry, this file is used only for upgrades between Ubuntu releases. Just make sure you install it before upgrading. If you do clean installs between releases, then you don't need to worry about it.
Disable Remote Desktop: it seems that there is a bug in the Remote Desktop server that makes it use 100% of the CPU, even not showing on top. Go to "System >> Preferences >> Startup applications", disable the Remote Desktop option and reboot.
Remove Python 2.5 (Jaunty only): this version of Python is definitely not playing well on Jaunty. If you have Python 2.6 installed you can remove the 2.5 version.
Warning: check first if there isn't any important package (gnome stuff) dependent on Python 2.5, otherwise you might brake your system.This might also remove non-essential applications that strictly depend on the 2.5 version. For example I had ontv, mimms and guake that depends on it, but I can live without them (tilda is better than guake).
Xorg tweaks: some modifications to the xorg.conf file might improve overall performance, including Firefox and Flash. Some of this might not apply to your graphics card. Intel graphic cards users check the Jaunty Intel Graphics Performance Guide.
First make sure you have the proprietary graphics card driver installed. Go to "System >> Administration >> Hardware Drivers" and enable the corresponding driver.
To edit the xorg file run this:
Then add the following lines (original thread):Code:gksudo gedit /etc/X11/xorg.conf
These will enable direct rendering and compositing. I don't know exactly what they do, but I had a huge flash performance boost after this, Firefox is much more responsive and fast and the system is more responsive too. See discussion here.Code:Section "DRI" Mode 0666 EndSection Section "Extensions" Option "Composite" "Enable" EndSection
I also included the options below into the "Device" Section (original thread):
The value in red will depend on your available memory. This setting is deprecated and might not work. See discussion here.Code:Option "EXAOptimizeMigration" "true" Option "MigrationHeuristic" "greedy" VideoRam 262144
Warning: In some cases this will lead to the graphical environment not starting at all or becoming entirely unusable. In that case, start into rescue mode or press Ctrl+Alt+F2 and log into the text console, and use sudo nano /etc/X11/xorg.conf to revert these option.
CPUFREQ tweak: this helps to get more juice from your processor (original thread).
Run this command:
Then find echo -n ondemand > $CPUFREQ and replace it with echo -n performance > $CPUFREQCode:gksudo gedit /etc/init.d/ondemand
Performance tuning with ''swappiness'': https://help.ubuntu.com/community/SwapFaq
The swappiness parameter controls the tendency of the kernel to move processes out of physical memory and onto the swap disk. Because disks are much slower than RAM, this can lead to slower response times for system and applications if processes are too aggressively moved out of memory.
* swappiness can have a value of between 0 and 100
* swappiness=0 tells the kernel to avoid swapping processes out of physical memory for as long as possible
* swappiness=100 tells the kernel to aggressively swap processes out of physical memory and move them to swap cache
* Ubuntu uses a default setting of swappiness=60
Reducing the default value of swappiness will probably improve overall performance for a typical Ubuntu desktop installation. A value of swappiness=10 is recommended, but feel free to experiment. Note: Ubuntu server installations have different performance requirements to desktop systems, and the default value of 60 is likely more suitable.
How to change the swappiness value
Search for vm.swappiness and change its value as desired. If vm.swappiness does not exist, add it to the end of the file like so:Code:gksudo gedit /etc/sysctl.conf
Save the file and reboot.Code:vm.swappiness=10
UKeywords: 649167 2009 june tutorial optimization performance
Bookmarks