Optimize Ubuntu (more so)

Optimize Ubuntu (more so)

One of the challenges of every good lover of their operating system is to have it optimized and beautiful to the maximum extent possible. Such an obsession is reached that many have managed to make their own operating system as in the case of Gentoo or Archlinux whose philosophy is also focused on the maximum way to optimize and control the Operating System.

En Ubuntu the thing is not less but unlike the previous ones, in Ubuntu you don't have to do a computer science degree to have an acceptable optimization.

But is there anything left to optimize?

During these past days we have seen how to optimize our desktop. And today he wanted to publish a series of tricks, as old as his own Ubuntu which are based on accelerating and optimizing the Canonical.

swappiness

The file swappiness is in charge of managing our the memory swap. The problem with this file is that on some computers it is used quickly with the glitch that the file swap it is on a normal hard disk and slower than Ram memory. Many times without using all the ram memory the swap memory is activated.

By default, from branch 2.6 and onwards, the linux kernel has this value at 60%. This means that there will be a lot of use of swap memory. It is useful if we have a server with a large workload and little RAM, or if we compile frequently. However, on a desktop system, with several small applications running or having a large amount of ram memory as in modern computers, we can lower this value to 10 so that the kernel uses the RAM more often (faster) and make less use of swap memory. To do this, we open a terminal and do the following:

We check the initial value:

sudo cat / proc / sys / vm / swappiness

After entering the password, it shows us a value of 60 (if it already shows us 10, there is nothing to do. Go to another point.)

We test how the system responds when lowering the value:

sudo sysctl -w vm.swappiness = 10

We then run a couple of applications. If the result is satisfactory, we are going to modify a configuration file so that the change is permanent:

sudo nano /etc/sysctl.conf

In the last line we add:

vm.swappiness = 10

We save the changes by pressing the keys CONTROL + or and we left by pressing CONTROL + x.

Firefox

Although there are many who use other browsers, many still use Mozilla Firefox as a browser for daily use. Changes can be made to Firefox to optimize our navigation and increase the number of connections and to take advantage of other parameters.

1. We open Firefox clicking on its icon. In a window we write the address: «about: config»And press enter.

2.We change these values. To do this, we double click on the line that we want to modify and in the dialog box that appears, we write the new value:

network.dns.disableIPv6? We change the value to true (a double click is enough)
network.http.max-connections? We change the value to 128
network.http.max-connections-per-server? We change the value to 48
network.http.max-persistent-connections-per-proxy? We change the value to 24
network.http.max-persistent-connections-per-server? We change the value to 12

3. If you have a broadband connection, you can also modify the following values:

network.http.pipelining? We change the value to true (a double click is enough)
network.http.proxy.pipelining? We change the value to true (a double click is enough)
network.http.pipelining.maxrequests? We change the value to 30

LibreOffice

The trick of libreoffice relies on a trick to optimize  OpenOffice and that LibreOffice has inherited. To do it we enter the menu Tools, pulled apart Options and we mark working memory. On the right in Cache from image, we change the values ​​of Use of LibreOffice from 6 to 128 and from Memory by object from 0,5 to 20. We accept the changes. When executing LibreOffice over and over again, we will notice the difference.

These three sections are tricks that, as we have said, are very old but that are still valid in the current versions of Ubuntu and that I thought it would be advisable for you to have them in Ubunlog, since I imagine that many of you already know these tricks. If you don't know them, try them, they are worth it. Greetings.

More information - How to optimize Ram on Linux, Ubuntu-is,

Source - Ubuntu-is

Image - florisland


Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   Alejandro Diaz said

    Sorry to say but this article is completely out of date. Decreasing the performance of the swap is no longer used because today it is not even necessary, a computer with 2 gigabytes of RAM does not require swap and from then on not even talking. For these teams the swap is an accessory that will never be used.

    Modifying Firefox is silly, even more so when the current version 19 already comes from the factory, what's more, the values ​​written here are much lower than those currently observed in the browser. It is necessary to verify the information before publishing it, or else we will become copy-paste automata.

    Modifying LibreOffice is not recommended, it makes the processor sweat and it is fine if you only have it working, but it will be noticeable when you have several applications open, the kind that also consume a lot of processor.

    1.    Nasher Currao said

      But to hibernate the pc, don't you need swap? At least that's what they told me.

    2.    danielcb said

      I do not understand the distros (including Ubuntu) that are checking ALL your hardware and they detect it in the installation, they keep pulling 4GB for swap when you have that or more RAM.

    3.    trichomax said

      Well, I have had 4 GB of ram and I used swap, even now that I have 8 GB sometimes I have 50 megabytes in swap, it all depends on what you do with the computer, I do see it as excessive swapping at 60, and I think it is more advisable if it is possible to put this value to 10 if you have a lot.

  2.   crack said

    There are other ways to optimize Ubuntu a little more, one of them is to disable "applications at startup" that we do not use, for example:

    If we do not have a bluetooth device, it is silly to have said daemon activated.
    The constant search for proprietary controls.
    The constant search for system updates.
    Ubuntu One.
    Let-dup.
    Screensaver.

    They are demons that we can deactivate without fear, and thus, gain a little more speed in the operating system.

  3.   DANIELA GARCIA said

    Hello I am new to Ubuntu and I would like to know what function does the office trick meet thanks for your time =)

  4.   Javi said

    For me it has been the solution, thank you very much.