Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: Tips: Things that might improve Jaunty performance

  1. #1
    Join Date
    Aug 2008
    Location
    Brazil
    Beans
    12,497
    Distro
    Ubuntu Studio 12.04 Precise Pangolin

    Tips: Things that might improve Jaunty performance

    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:

    Code:
    gksudo gedit /etc/X11/xorg.conf
    Then add the following lines (original thread):

    Code:
    Section "DRI"
    	Mode 0666
    EndSection
    
    Section "Extensions"
    	Option "Composite" "Enable"
    EndSection
    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.

    I also included the options below into the "Device" Section (original thread):

    Code:
    	Option	       "EXAOptimizeMigration" "true"
    	Option	       "MigrationHeuristic" "greedy"
    	VideoRam       262144
    The value in red will depend on your available memory. This setting is deprecated and might not work. See discussion here.

    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:

    Code:
    gksudo gedit /etc/init.d/ondemand
    Then find echo -n ondemand > $CPUFREQ and replace it with echo -n performance > $CPUFREQ

    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

    Code:
          gksudo gedit /etc/sysctl.conf
    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:
          vm.swappiness=10
    Save the file and reboot.


    UKeywords: 649167 2009 june tutorial optimization performance
    Last edited by lovinglinux; July 6th, 2009 at 07:53 PM.

  2. #2
    Join Date
    Feb 2009
    Location
    in a bit register
    Beans
    79
    Distro
    Ubuntu Development Release

    Re: Tips: Things that might improve Jaunty performance

    Agreed about the ext3 to ext4 re-formatting - it's daunting deciding to make this change but it's brought my old samsung X25 (Intel(R) Pentium(R) M processor 1.86GHz stepping 08) with ATI (Mobility X600) back to life. Even seems quicker than my Lenovo.

  3. #3
    Join Date
    Aug 2008
    Location
    Brazil
    Beans
    12,497
    Distro
    Ubuntu Studio 12.04 Precise Pangolin

    Re: Tips: Things that might improve Jaunty performance

    Quote Originally Posted by binary10 View Post
    Agreed about the ext3 to ext4 re-formatting - it's daunting deciding to make this change but it's brought my old samsung X25 (Intel(R) Pentium(R) M processor 1.86GHz stepping 08) with ATI (Mobility X600) back to life. Even seems quicker than my Lenovo.
    I'm still trying to digest the speed of data transfer exchange. I'm asking myself if it was like this before. I just measured 15 seconds to copy a 800Mb file from one partition to another. I could be wrong, because I never bothered to measure it with ext3, but it seems much faster.

  4. #4
    Join Date
    Apr 2008
    Location
    London ON Canada
    Beans
    2
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: Tips: Things that might improve Jaunty performance

    My 1.5 gig sata hard drive is running MUCH slower since the upgrade from 8 to 9.04, doing a Save in open office takes seconds to load the dialog box, transmission dialogs grey out while waiting for the drive, brasero dialogs are slow to come up. I checked the system monitor and when idling 2 of the 4 cores are at 100% sometimes. The system is a dual xeon 3.2 ghz with 4 gig ram, nvidia 8800. Appz run fine until they have to read/write to the disk and then they have to wait. I have a second machine with the same specs but with SCSI drives and it has no problem - no change in speed and the older single cpu box with only a 160 gig sata runs fast on 8.

    Frustrating, but i am sure it will get fixed when the patches start arriving...I might try the python suggestion.

  5. #5
    Join Date
    Aug 2008
    Location
    Brazil
    Beans
    12,497
    Distro
    Ubuntu Studio 12.04 Precise Pangolin

    Re: Tips: Things that might improve Jaunty performance

    Quote Originally Posted by gnickers View Post
    My 1.5 gig sata hard drive is running MUCH slower since the upgrade from 8 to 9.04, doing a Save in open office takes seconds to load the dialog box, transmission dialogs grey out while waiting for the drive, brasero dialogs are slow to come up. I checked the system monitor and when idling 2 of the 4 cores are at 100% sometimes. The system is a dual xeon 3.2 ghz with 4 gig ram, nvidia 8800. Appz run fine until they have to read/write to the disk and then they have to wait. I have a second machine with the same specs but with SCSI drives and it has no problem - no change in speed and the older single cpu box with only a 160 gig sata runs fast on 8.

    Frustrating, but i am sure it will get fixed when the patches start arriving...I might try the python suggestion.
    Are you still using ext3 or did you formatted the drives with ext4?

  6. #6
    Join Date
    Aug 2008
    Location
    Brazil
    Beans
    12,497
    Distro
    Ubuntu Studio 12.04 Precise Pangolin

    Re: Tips: Things that might improve Jaunty performance

    Another thing that helped was including this in /etc/X11/xorg.conf

    Code:
    Section "DRI"
    	Mode 0666
    EndSection
    
    Section "Extensions"
    	Option "Composite" "Enable"
    EndSection
    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.

  7. #7
    Join Date
    Jun 2009
    Beans
    1

    Smile Re: Tips: Things that might improve Jaunty performance

    I added the changes to xorg.conf on my Jaunty system and it made a HUGE difference for me. I also did this separately:

    http://allredb.wordpress.com/2009/05...tu-jaunty-904/

    essentially changing
    echo -n ondemand > $CPUFREQ
    to
    echo -n performance > $CPUREQ
    in
    /etc/init.d/ondemand

    both of them seemed to improve my performance greatly. Reading more about it here and elsewhere it seems like there are other issues at play since some people didn't experience the difference I did, but i thought i should post that my results were awesome - i can listen to blip.fm again!

  8. #8
    Join Date
    Aug 2008
    Location
    Brazil
    Beans
    12,497
    Distro
    Ubuntu Studio 12.04 Precise Pangolin

    Re: Tips: Things that might improve Jaunty performance

    Quote Originally Posted by slipperypig View Post
    I added the changes to xorg.conf on my Jaunty system and it made a HUGE difference for me. I also did this separately:

    http://allredb.wordpress.com/2009/05...tu-jaunty-904/

    essentially changing
    echo -n ondemand > $CPUFREQ
    to
    echo -n performance > $CPUREQ
    in
    /etc/init.d/ondemand

    both of them seemed to improve my performance greatly. Reading more about it here and elsewhere it seems like there are other issues at play since some people didn't experience the difference I did, but i thought i should post that my results were awesome - i can listen to blip.fm again!
    Thanks for the tip. I'm worried about doing the CPUREQ change because the CPU Frequency monitor in the panel doesn't work for me. It says my system is misconfigured or doesn't support CPU Frequency scaling. I will research about this a little bit more.

  9. #9
    Join Date
    Mar 2008
    Location
    Hawaii
    Beans
    806
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Tips: Things that might improve Jaunty performance

    There is no need to worry about having two partitions with different file-systems.

    It is common place to do this. Some even sugjest to use the best file-system for each directory.

    Like using reiserfs for /var. Reiserfs is vary fast with a bunch of small files. And, using XFS for your /home partition which is vary good for large files like your videos in your /home directory. And, using ext3 for your / partition because ext3 is rock sold and you need your / partition to be rock sold.
    Thinkpad W510, i7-720QM, Nvidia Quadro FX 880m (nouveau), Intel X25-M G2 80GB (OCZ are better), 1080p Wacom Multi-Touch Screen, Intel Centrino Advanced-N + WiMAX 6250, Yubikey OTP

  10. #10
    Join Date
    May 2008
    Location
    Netherlands
    Beans
    505
    Distro
    Xubuntu 9.04 Jaunty Jackalope

    Re: Tips: Things that might improve Jaunty performance

    Changing the ondemand script, to make ondemand become performance is a bit strange. I personally added the following line /etc/rc.local

    echo -n ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

    I'm using a laptop, so ondemand has my preference.

    You could change this to performance if you want your cpu always running top speed. If you have multiple cpu's you'll need lines for all the cpu's, at least I'd think so. Check /sys/devices/system/cpu to be sure.

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •