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 are still valid in the current versions of Ubuntu and that I thought it would be convenient for you to have them in Ubunlog, since I imagine that many of you will already know these tricks. If you do not know them, try them, they are worth it. Greetings.
More information - How to optimize Ram on Linux, Ubuntu-is,
Source - Ubuntu-is
Image - florisland