DESKTOP

Speed up Linux (Part 1)

6/2/2012 3:07:50 PM

We have a look the almost impossible task of trying to speed up Linux

Linux, by its very nature, is quite a slender beast. Although there are some distros that are somewhat over-bloadted, it is by no means a resource hog. Even with only a couple of gigabytes of RAM installed in the system, you’ll never likely use more than 60% of the available system resources.

Description: Speed up Linux (Part 1)

Nevertheless, there are ways to improve on the already rapid response time of a Linux distro. As with most operating systems, there are elements and processes that could do with trimming down a little, or perhaps removing altogether. The boot times could be always have a few seconds shaved off them, and the applications could launch a little faster, plus that shutdown could be done a bit quicker as well.

A lot of people use Linux on netbooks, and after several months of good use, they tend to slow down a tad. Nowhere near as much as a Windows installation would do after the same amount of time or use, but enough to make significant difference to the day-to-day operation. After all, you most likely use a netbook for quick browsing or other such tasks. Wouldn’t it be nice to regain even a small fraction of that initial OS installation speed?

With that in mind, we decided it was time to run through a few options that will help get your Linux distro back into shape.

Back up before you go on

As with all tweaks and tinkering, it’s always best to make sure you have a working and very recent backup of your work before you go ahead and do anything. The tips and tricks in these next few pages have been selected to minimise and chance of out and out failure. We know that, because we broke our test Linux installation a few times with various tweaks. Luckily, we were using the test environment inside VirtualBox, with a couple of snapshots, so the damage was minimal. If it’s possible, you should do the same, or at the very least take a snapshot of your drive before the tinkering commences. That way you can always revert back to a working state should things go a little foul.

Let’s not dwell on such doom and gloom, though. Instead, let’s see if we can speed things up a little.

Test machine

While we can’t offer tweaks for every distro, we decided that it would be best to go with the most popular version of Linux, Ubuntu or use another Linux may complain, but you have to admit, that by at least using Ubuntu we can include Mint and a whole host of other special guest appearances.

Either way, we tested the tweaks on a dual-core AMD, with 2GB RAM and a 40GB HDD. It’s not a bad machine, so it was already pretty fit, but we wanted to see just how much quicker we could get things running.

Updates

Linux is pretty good when it comes to dishing out updates. Instead of making a bulky application even more bloated, the developer genuinely tries its best to fix any bugs and wipe out the problems that may be causing the Linux-using public a headache. So in most cases, the best way to speed things up, and make sure that your system is in tip top condition, is by making sure you have all the latest updates.

Usually this can be accomplished via the resident update manager, depending on what particular Linux distro you’re using, but generally you can check for updates and upgrades by typing the following into a the terminal:

sudo apt-get update && sudo apt get upgrade

Should Linux pick up anything new, it will ask you if you want to download/apply the update, in which case you should answer ‘Y’, for yes. While this may seem very simplistic to Linux gurus, you’d be surprised just how many people ignore the updates that pop up. For those of you that do ignore those updates, you could be missing out on some radical changes to the kernel, the very heart of the OS. These include better power management, improved resource allocation, better file access and read times, and speed increases due to enhanced handling of the core code.

Description: Running an update will yield good performance results

Running an update will yield good performance results

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
  •  
    Video
    Top 10
    Silverlight Tools: Silverlight IDEs
    Algorithms for Compiler Design: IMPLEMENTATION OF THE TRANSLATIONS SPECIFIED BY SYNTAX-DIRECTED DEFINITIONS
    Persisting Data on the Client with Silverlight 4
    Windows Server 2008 : Using Windows Server Update Services
    Algorithms for Compiler Design: PREDICTIVE PARSING ERROR RECOVERY
    iPhone 5 rumors fueled by new iPad released
    Using Non-Windows Systems to Access Exchange Server 2010 : Understanding Non-Windows–Based Mail Client Options
    Windows 7 :Navigating Your Computer with the Address Bar (part 2) - Using Selected Paths to Quickly Navigate Your Computer
    Sharepoint 2007: Create a New Document Library
    Windows Server 2008 : Installing and Configuring Websites (part 1) - Creating a Website with IIS 7.5 & Creating a Virtual Directory
    Most View
    SQL Server 2008 Command-Line Utilities : The sqldiag Command-Line Utility
    Visual Studio 2010 : Writing Custom Facebook Applications - Querying Data from Facebook
    Wireless Networking Essentials (Part 2) : Wireless Repeater, Limitation Of A Wireless Network
    Programming .NET Security : Symmetric Encryption Explained (part 2) - Cipher Modes
    Microsoft XNA Game Studio 3.0 : Displaying Images - Using Resources in a Game (part 1) - Loading XNA Textures
    How to set up your own virtual private network (Part 2)
    Expert computing advice (Part 2)
    Windows Phone 7 Development : Wiring Up Events to an Application Bar ( part 1) - Reacting to Add Button Events
    Windows Server 2008 R2 and Windows 7 : Overview of Branchcache & Planning to Deploy Branchcache
    Resolve a Hostname to an IP Address
    SQL Server 2008 : Managing Query Performance - Forcing a Specific Execution Plan
    Building LOB Applications : Implementing CRUD Operations in WCF Data Services
    SQL Server 2008 : Transact-SQL Programming - TOP Enhancements
    Migrating from Legacy SharePoint to SharePoint Server 2010 : Performing a Database Attach Upgrade
    IIS 7.0 : Enabling and Configuring FRT - Tracing a Specific Error Code
    iPhone Application Development : Working with Text, Keyboards, and Buttons (part 1) - Adding Text Fields
    Exchange Server 2010 : Backup and Disaster Recovery Planning
    Windows 9 : What to expect - 32-bit support , WinRT & XNA
    Exchanging XML Messages over HTTP
    Deploying the Client for Microsoft Exchange Server 2010 : Planning Considerations and Best Practices