Added on 05 Nov 2008(2966 Views)
It seems that if you go ahead and disable atime and diratime you can improve the performance of your disk by about 40%, which is quite considerable if you think about it. The simple truth of the matter is that the number of programs that use this option is quite small so it makes sense to disable it and thus end up with a faster running Linux-based operating system. Here is how atime works: for every instance that the operating system accesses a file, atime logs the time when that file was last accessed (writes this info onto the Linux ext3 partition). As you can imagine, all this writing takes its toll in terms of performance, which is a drag (no pun intended) considering that only mail-monitoring and defragmenting applications use atime to function properly.
Before we get into the step by step instructions of how to disable atime, let’s take a look at the advantages and disadvantages linked to this course of action. The advantages are that you will get a better performing hard drive and consequently a speedier OS. Another thing that I consider to be an advantage is the fact that the whole process is reversible – if you don’t like the outcome, you can always switch back. The only disadvantage is that some apps will not work properly – tmpwatch, mutt, or mail-notify to name some examples.
Here are the step by step instructions that you need to follow and disable atime:
1. Start a terminal.
2. Use the “su-” command and switch to root. The su- command will grant you super-user permissions. If that doesn’t work then try “sudo –I” (it varies from system to system).
3. Use “cp /etc/fstab /etc/fstab.old” to backup the fstab. For Ubuntu users the command is “cp /etc/fstab /etc/fstab.original”.
4. Proceed to opening /etc/fstab. You will first need to pick an editor, like gedit for example. You could also use nano or kate. To open your /etc/fstab in these editors you need to use the following commands: for gedit “gedit /etc/fstab”, for nano “nano /etc/fstab” and for kate “kate /etc/fstab”.
5. Identify the file systems that need optimizing and the partitions containing your / and /home file systems. You need to find the partition that has the main system on it, and most of the times it is identified with “ext3” as opposed to swap partitions that have “ntfs” or “swap”. Additional examples: /dev/hda3 or /dev/sda3.
6. Locate the fstab options section (it should be in the 4th section, which is to say at the end of the line, before the final two numbers) and insert “,noatime,nodiratime”. Do this for every partition that needs optimizing; insert the specified command after the already in place options of the partition.
7. Save fstab.
8. Reboot and enjoy.
If at any time you want to switch back, do so by using the fstab back-up.
Don't forget to:
RSSTags: Linux, Ubuntu
Link to this article:
Comments
barry - 08 Feb 2009 15:56
very interesting and useful
Add comment:
Software News
Chromium OS Goes Open-Source
This summer Google let the world know that it is working on a new operating system meant for the user that spends most of his time online. The operating system – aptly named Chrome OS because it is a natural extension...
20 Nov 2009
Office 2010 Beta Downloads Available to the Public
Earlier this week Redmond-based software giant Microsoft announced that Office 2010 became available for download as a Beta. The catch was that only ...
20 Nov 2009
Mozilla Releases: Firefox 3.6 Beta 3
The development process of the Firefox 3.6 browser is moving along rapidly. The first Beta version was released at the start of the month; Beta 2 was released about two weeks after Beta 1. About a week has passed since...
20 Nov 2009
New Labs Feature for Gmail: Green Robot!
The software developers at Google have announced the release of a new Gmail Labs offering called Green Robot! This new offering is meant to improve the Gmail Chat user experience by letting the ...
20 Nov 2009
Opera Mobile 10 Beta for Windows Mobile Is Out Also
Opera Software, the company that we all know for making the innovative and feature rich Opera web browser, has released Opera Mobile 10 Beta for Windows Mobile-powered devices. This release follows in the...
19 Nov 2009
Beta Testing is Over, Stable Version of Trillian for iPhone Released
The focus so far has been on desktop version of this multiprotocol instant messaging software application, Trillian Astra (version 4.1). Today is time to switch focus away from the desktop version and onto something a bit more...
19 Nov 2009
Recommended Tools
Registry Booster 2010 Enhanced, deeper and faster error scan performance. Now also in 5 languages! Free Scan
Driver Scanner 2009
Fast and easy, it boosts performance by scanning for, downloading & installing driver updates
Fast and easy, it boosts performance by scanning for, downloading & installing driver updates
SpeedUpMyPC 2009
How fast is your PC really running? Turbo-charge your Internet and PC performance here
How fast is your PC really running? Turbo-charge your Internet and PC performance here



