Zolved community solution Createarticle_iconnew articleEditarticle_iconedit article

How to tune your Ubuntu PC for faster performance.

Follow the procedure given in this article and see your Ubuntu PC running faster than ever before.

Below we give some procedures to be followed for boosting the performance of your Ubuntu PC.


Swap memory from hard disk to RAM

One bottleneck of Linux the use of swap file on the hard disk instead of RAM. Since the hard disk is 100 times slower than internal memory, this can slow things down considerably.

Swap file is controlled by a variable called “swappiness” and higher the number, greater the tendency to go to the disk.

  • Find out the system swappiness by using the command below. Go to Applications > Accessories > Terminal to execute the command.

         sudo cat /proc/sys/vm/swappiness


       
         
  • Lower that to 10 by typing this in the terminal window.

    $ sudo sysctl -w vm.swappiness=10

        
  • To make sure the system always uses a swappiness of 10 on every boot, we’ll need to edit the sysctl.conf file in the etc directory. Type this in the terminal

    $ sudo gedit /etc/sysctl.conf

         
  • In the popup window, search for text "vm.swappiness" and edit 60 to 10. Save and close the file.
          

Freeing up more memory

Free up RAM by disabling some virtual consoles that use up memory which are never used.

  • Edit the inittab file in the etc directory using the following command. Enter the password.

        sudo gedit /etc/inittab

       
  • Text editor "inittab" is loaded. Scroll down until you find the six lines that begin with: 1:2345:respawn:/sbin/getty 38400 tty1, Comment out (just add the hash or “#” symbol in front of) the last four lines as shown below. Save and close the file.

        

Concurrent Booting

Concurrent booting takes advantage of dual-core processors and CPUs that feature hyperthreading which are helping hand for fast booting.

  • Go to Applications > Add/Remove Applications

       
  • Enter text 'mousepad' in search text box. Select the checkbox Mousepad and click on OK.

            
  • Once the Mousepad is installed successfully, edit the “rc” using the below command.

        $ sudo mousepad /etc/init.d/rc

        

  • Opens an rc edit file. Find for CONCURRENCY=none and change it to CONCURRENCY=shell. Save and close the file.
        

Note: Always exercise caution when editing configuration files.



       

        



copyright © 2010, IPTouch, Inc.

 

 

Comments
  • Posted by: mrshiney_8237 at 20 Jun 18:20 permalink
    no inittab in my feisty fawn; but we do have CONCURRENCY=none

    http://mrshiney.froppy.com/blog/
    • Posted by: YouBunt at 20 Jun 20:44 permalink
      Nothing in the /etc/inittab file. help.
      • Posted by: Mark_in_Hollywood at 10 Nov 13:14 permalink
        *

        "To make sure the system always uses a swappiness of 10 on every boot, we’ll need to edit the sysctl.conf file in the etc directory. Type this in the terminal

        $ sudo gedit /etc/sysctl.conf


        The instruction to edit the file sysctl.conf

        sudo gedit /etc/sysctl.conf

        has no application in Gutsy Gibbon (Ubuntu 7.10).
        • Posted by: chinawolfs_3066 at 06 Dec 19:24 permalink
          thanks,very nice
          • Posted by: info_9043 at 25 Dec 19:30 permalink
            /etc/inittab file is empty. What do I do in this case?

            --
            http://www.firehost.com.au/ cheap australian web hosting
            • Posted by: nospam+zolved_4986 at 30 Jan 22:27 permalink
              VERY helpful. I have a 12 year old desktop that ran rather slow for linux until i ran into this. I had to add the "vm.swappiness=10" line to my sysctl.conf file myself (i'm using xubuntu 9.10). I left out the inittab step as i didn't have that. CONCURRENCY was there and easily changed. Soon as i restarted it was like a whole new thing had opened, running much smoother. Oddly memory usage dropped 25% to 50.7% idle rather then 75% before i made the changes. and the CPU idles 20% rater then 45%