This article will walk you through on How to Improve Linux Speed.  If you are reading this post, you must have been feeling really low and are fed up from slow performance of your personal computer or laptop. Furthermore, you might also be thinking of re-installing a fresh copy of linux which will speed up your system but how many times you will be doing this again and again. It’s high time that you should have a step by step list of things which you can follow through to Optimise and Improve Linux Speed without any re-installation or hardware changes. So that is what I will guide you through and this will help you instantly to Improve Linux Speed.

I personally have been using Linux from past 4-5 years and It has great advantages over other Operating Systems like Microsoft Windows. But over time, you eventually need some optimisation technique to Improve Linux Speed as everything we do in our computer is some how cached and Operating Systems keep saving logs, which slows down the system performance. This brings me to write this article on How to Improve Linux Speed. Let’s get started.

There are a lot of tweaks that will Improve Linux Speed. Some are safe to use and others risky. Here in this blog post, you will find all the safe one’s to use.

Improve usage of the system memory (RAM)

1.  Decrease swap use:

Computers with relatively low RAM memory (2 GB or less) will benefit by decreasing the swap usage.

a. First check your current swappiness value. Type in the terminal (use copy/paste):

      cat /proc/sys/vm/swappiness

Press Enter.

The result will probably be 60.

b. To change the swappiness into a more sensible setting, type in the terminal (use copy/paste to avoid typo’s):

      gksudo xed /etc/sysctl.conf

Press Enter.

Scroll to the bottom of the text file and add your swappiness parameter to override the default. Copy/paste the following two green lines:

      # Decrease swap usage to a more reasonable level

c. Save and close the text file. Then reboot your computer.

d. After the reboot, check the new swappiness setting:

Launch a terminal window.

Type (use copy/paste):

      cat /proc/sys/vm/swappiness

Press Enter.

Now it should be 10.

Tame the inode cache

Computers with more than 1 GB of memory (RAM), will probably benefit by shrinking the inode cache less aggressively.
a. Type in the terminal (use copy/paste):

      gksudo xed /etc/sysctl.conf

Press Enter.

Scroll to the bottom of the text file and add your swappiness and cache parameters to override the defaults, so copy/paste the following two green lines:

      # Improve cache management

d. Close the text file and reboot your computer.

Remove the indexing application apt-xapian-index

3.  The indexing application apt-xapian-index speeds up certain search operations, but it can slow down older and weaker computers a lot. You can freely remove this package, because it’s not essential. In real life you’ll hardly miss it. In lightweight Lubuntu it’s not even there by default.

Removing is easy:

Launch a terminal window.

Type (use copy/paste to prevent errors):

      sudo apt-get purge apt-xapian-index

Press Enter. When prompted, type your password. Your password will remain entirely invisible, not even dots will show, this is normal.
Press Enter again.

Reboot your computer.

Disable Java in Libre Office

4. The performance of Libre Office can be enhanced greatly, when you disable Java in it. This will disable a few features, but usually you won’t even miss those.

Toolbar Libre Office Writer -> Tools ->Options

LibreOffice -> Advanced -> Java Options:
Remove the tick for: Use a Java runtime environment

Turn off some startup applications

5. You can speed up Mint somewhat, by disabling a couple of system services that may be superfluous for you. This tweak can be compared to tweaking msconfig in Windows.

These are called startup applications, because they’re being launched at startup. Untick what you don’t need and reboot your computer (or log out and then log in again).

      Mint Xfce: type session in the search box of the menu and select:
Session and Startup

Note: only remove the ticks, do not remove the application from the list! Keep the tweak easily reversible (you never know).

Examples of system services that many people don’t need:
– Bluetooth Manager
– NVIDIA X Server Settings

optimizing linux system

Turn off visual effects in Mate

6. Disabling visual effects in Mate is easy:

a. Menu button – Preferences – Windows
Tab General: deselect: Enable software compositing window manager

b. Remove Compiz:

Launch a terminal window.

Type (use copy/paste to prevent errors):

      sudo apt-get remove compiz-core

Press Enter. When prompted, type your password. Your password will remain entirely invisible, not even dots will show, this is normal.
Press Enter again.

Add-ons and extensions: don’t turn your web browser into a Christmas tree

7. You can install a lot of add-ons / extensions in the web browsers Firefox, Chrome and Chromium. Those add-ons can be very beneficial, but they have a couple of important disadvantages, because they are “applications within an application”:

– They slow your browser down, especially if there are a lot of them

– They can cause malfunctions, both in each other and in the browser itself

– There are add-ons with malicious content. Don’t trust them blindly

So don’t turn your browser into a Christmas tree: don’t fill it with lots of add-ons. Limit yourself to only a few add-ons, that are really important for you.

Lots of RAM (at least 4 GB): put /tmp on tmpfs

8. If your system has at least 4 GB of RAM memory, then you can probably speed up your system a bit by placing /tmp on a tmpfs partition. Which means that temporary files will not be placed on the hard disk anymore, but on a virtual RAM disk instead.

This is how you do it:

a. Launch a terminal window.

Copy/paste this green line into the terminal (it’s one line!):

      sudo cp -v /usr/share/systemd/tmp.mount /etc/systemd/system/

Press Enter. Type your password when prompted; your password will remain entirely invisible, not even dots will show when you type it, this is normal.

b. Then copy/paste this command into the terminal:

      sudo systemctl enable tmp.mount

Press Enter.

c. Reboot your computer.

d. After the reboot: check whether it works, with this terminal command:

      systemctl status tmp.mount

By default, a tmpfs partition has its maximum size set to half your total RAM. The actual memory consumption depends on how much you fill it up, as a tmpfs partition doesn’t consume any memory until it is actually needed.

Speed up your wireless internet

9. For some wireless chipsets, a simple tweak is sufficient for increasing the speed and the connection quality of your wireless internet. Namely disabling the power management for the wireless chipset. The price you pay is obviously an increase in power consumption, although this increase isn’t big.

You can do that as follows:

a. First find out if Ubuntu or Mint applies power management to your wireless chipset:

Launch a terminal window. Type in the terminal:
      Press Enter.

You can then not only see the name for your wireless chipset (for example: wlp2s0), but also whether Power Management is on for it. When it’s off, or when no mention is made of Power Management at all, you don’t need to do anything.

b. When Power Management is on, proceed as follows.

In order to prevent typo’s, copy/paste this line into the terminal (it’s one line!):

      gksudo xed /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf

Press Enter.

Now a text file opens. In that text file, you see the following content:

wifi.powersave = 3

Change 3 into 2.

Save the modified file and close it.

c. Reboot your computer.

d. Then check in the terminal, by the command iwconfig, whether Power Management for the wireless chipset is off now.

If so, you’re done!

Clean up your Mint

11. A clean Mint will perform better than a Mint that has become polluted too much (although pollution is much less of a problem than in Windows). Want to know more about how to clean Linux System.

Want more tips?

11. Do you want more tips and tweaks for Linux Mint? Will share further tips and tweaks in my coming articles.

Thank you for reading this article to Improve Linux Speed. I hope it will benefit you in your routine work on Linux System. Please show your support by leaving a comment below and share it, if you found this article interesting.

One response to “How To Improve Linux Speed”

Leave a Reply

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