DESKTOP

Speed up Linux (Part 2) - Banish unnecessary processes with the bum

6/2/2012 3:09:06 PM

Banish unnecessary processes with the bum

Just as with Windows, and probably the Mac as well, having a process running in the background that isn’t required is going to take up some precious memory and other system resources, so why bother having it? Processes like the Bluetooth daemon, or the scanner monitor are completely useless if you have neither of these attached to the system or ever plan to.

One of the best utilities to check what processes are running, and consequently shut them down if you need to is the Boot-Up Manager (from this point on, referred to as ‘the Bum’ – yes, I know). A handy application that can run on any Debian-based system, it scans the scripts located in /ect/init.d and automates the configuration and permissions relating to those scripts in order to deactivate them. In other words, it simplifies the task of shutting down unwanted process.

Description: Changing the concurrency may or may not work

Changing the concurrency may or may not work

To get a hold of the Burn (hehehe), simply type the following into a terminal window to slap te Burn onto your PC (sorry):

sudo apt-get install burn

Once the Burn is on your PC (sorry, I know it’s very childish), execute it by typing in:

sudo burn

The Burn will scan your processes, and eventually display the results in an easy-to-read UI. Have a look through the processes and be honest, if you don’t need something, then right click it and select ‘Deactivate & apply now’, from the pop-up menu.

Description: It’s not quite as scary as it looks, honest

It’s not quite as scary as it looks, honest

Obviously you don’t want to go around shutting down any old service, as you’ll most likely end up either killing your Linux installation, or stopping something vital from working. So if you’re not sure what a process does, take some time to research it and find out what can happen if you deactivate it.

For our test machine, we deactivated the Bluetooth and scanner services, which may have only saved a few megabytes (if that), but it’s memory we’d rather have available for our needs, as opposed to the OS reserving it for something we don’t have any use for. When you’ve finished going through the services, click on ‘Apply’, in the bottom left of the screen, and answer ‘Yes’ to the ‘Start or stop services now?’ question. Now, click ‘Quit’ to exit the Bum.

Description: Get a firm grip on the Bum…

Get a firm grip on the Bum…

Move the temp directory to memory

Normally, we would issue a restart before continuing, but before you do that, and since you’re still in the terminal, let’s move the/tmp (the temporary directory) to memory. The advantage of this is purely down to the fact that the RAM in your machine is many times faster than the hard drive, so anything that lies within the/tmp directory will be accessed almost instantly.

To make this change you’re going to have to alter one of the system files, it’s nothing to worry too much about, but care is definitely recommended. First, if you’re not in the terminal, then open one up. Next, type in the following and press Enter:

sudo gedit /etc/fstab

You’ll end up with an odd-looking file, called the File Systems Table, which controls the hard drive mount points on your system on boot-up. Put the cursor on a new line at the very end of the file, and enter the following:

tmpfs /tmp tmpfs defaults,noexec,nosuid 0 0

Save the file and exit from fstab. What you’ve just done is basically to tell Linux to mount the /tmp folder into memory, as opposed to having it normally accessed via the hard drive. This trick is handy for netbooks with ample RAM but very little hard drive space, such as an SSD, for instance. When you’ve checked, and double-checked that everything is entered correctly, shut down Linux and reboot your PC.

Preload your apps

Getting a quick boot time is one thing, but it’s fairly useless if the system takes an age to load up the applications. That being the case, we have a fine little program called Preload, which is an adaptive read-ahead daemon that will constantly run in the background and intelligently observe what applications are used most often, then cache them up so they load faster over time.

Although we just spent a little time removing unwanted background applications, Preload can be excused, as it will put some of the unused RAM in your system to good use. To install Preload, drop into a terminal and type:

sudo apt-get install preload

Once installed, Preload will start doing its thing without any help needed from you, the user. However, we can have a little play around with its configuration by typing in:

sudo gedit /etc/preload.conf

In this file you’ll see a number of options that can be fiddled with, along with explanations as to what they do. The default set are probably good enough for most systems, and unless you have something specific in mind, then you should leave well alone. Should you wish, though, to have a fiddle, then take a look at the memtotal, memfree and memcached values, using this formula:

(total RAM x memtotal) + (RAM available x memfree) + (cached memory x memcache)

You can fine tune the extra RAM in your system to better accommodate any applications you think will benefit from Preload. If you want to check on what files Preload is caching, you can have a look at this file by typing in:

sudo less /var/lib/preload/preload.state

Given time, it has been proved that Preload can improve the load times of the likes of Firefox, LibreOffice Writer and Evolution by up to 55%. As to how long that will take depends greatly on how much you use your Linux system.

Other  
  •  Processor Group Test (Part 6) - Intel Core i7-3930K
  •  Processor Group Test (Part 5) - Intel Core i7-2700K
  •  Corsair Vengeance range – Best Gaming Gears
  •  Zotac D2700-ITX WiFi Supreme
  •  Tools for the job (Part 4) - Anatomy of a live CD
  •  Tools for the job (Part 3) - Clonezilla, Hardinfo & Truecrypt
  •  Tools for the job (Part 2) - Boot-repair-disk, Trinity Rescue Kit & PartedMagic
  •  Tools for the job (Part 1) - File Systems, Live CD and live USB distros
  •  Processor Group Test (Part 4) - Intel Core i5-2500K
  •  Processor Group Test (Part 3) - Intel Core i3-2100
  •  Processor Group Test (Part 2) - AMD FX-8120
  •  Processor Group Test (Part 1) - AMD A8-3870K
  •  Linux – Harsh words
  •  Amiga – Amiga on the web
  •  AMD Radeon HD 7870
  •  A Complete Instruction For Your PC Kit And How To Buy (Part 5) - Overclockers UK Primo 6100i
  •  A Complete Instruction For Your PC Kit And How To Buy (Part 4) - Orange Amplification OPC
  •  A Complete Instruction For Your PC Kit And How To Buy (Part 3) - Samsung 300E5A-A01
  •  A Complete Instruction For Your PC Kit And How To Buy (Part 2) - HP Envy 14
  •  A Complete Instruction For Your PC Kit And How To Buy (Part 1) - Asus N55SF
  •  
    Top 10
    Top 10 Televisions – Jan 2013
    What New Technology Will 2013 Bring Us? (Part 2)
    What New Technology Will 2013 Bring Us? (Part 1)
    Get The Best Value Home Network (Part 2)
    Get The Best Value Home Network (Part 1)
    HCL Me Y2 - Pleasantly Surprised
    How To Find The BEST DEALS (Part 2)
    How To Find The BEST DEALS (Part 1)
    How To Make The Most Of The Second Hand Market (Part 2)
    How To Make The Most Of The Second Hand Market (Part 1)
    Most View
    Transphone – The Budget Phone And Tablet Combo
    Sharepoint 2010 : Deploying Transport-Level Security for SharePoint
    Exchange Server 2007 : Configure the Client Access Server - Enable POP3 and IMAP4
    Windows Phone 8 - A New Beginning
    My ipad : Presentations with Keynote - Organizing Slides
    iPhone 3D Programming : Adding Depth and Realism - Filling the Wireframe with Triangles
    Windows Server 2008 R2 Benefits for Administration
    sharepoint 2010 : Utilizing Security Templates to Secure a SharePoint Server
    Java EE 6 : New features introduced in Servlet 3.0 (part 1)
    Gigabyte GA-Z77X-UD3H : Everything, With Everything Else
    Microsoft Sued Comet For Making 94,000 Copies Of Counterfeit Windows
    HTC Desire C - Does It Have Anything Good?
    Android Market Under Threat From ‘RuFraud’
    Designing a Windows Server 2008 R2 Active Directory : Understanding the Single Domain Model
    Understanding the Capabilities of SharePoint 2010
    Windows 7 : Managing Other People’s User Accounts (part 1)
    ZOTAC GTX 650 TI – It’s Time To Play
    Macro Marvels (Part 1)
    Rollout Strategy in Group Policy of Windows Vista
    The Best iPhone Car Accessories