Reducing Disk IO By Mounting Partitions With noatime
Reducing Disk IO By Mounting Partitions With noatimeVersion 1.0 Linux has a special mount option for file systems called noatime. If this option is set for a file system in /etc/fstab, then reading accesses will no longer cause the atime information (last access time - don't mix this up with the last modified time - if a file is changed, the modification date will still be set) that is associated with a file to be updated (in reverse this means that if noatime is not set, each read access will also result in a write operation). Therefore, using noatime can lead to significant performance gains. I do not issue any guarantee that this will work for you!
Using noatimeIn this example I want to use noatime for my root file system - /. Therefore I open /etc/fstab... vi /etc/fstab ... and add noatime to the options of the / file system, e.g. like this:
You don't have to reboot the system for the changes to take effect - the following command will do: mount -o remount / That's it. You can run mount to check if the partition really got mounted with noatime: server4:/home/admin# mount
A Quick Note For OpenVZ VMsOpenVZ containers (virtual machines) don't have an /etc/fstab file because the partitioning is controlled from the host system. To set noatime for a VM, you can run vzctl set veid --noatime yes --save on the host system and restart the VM (replace veid with the ID of the container; for example, if the container has the ID 101, run vzctl set 101 --noatime yes --save and restart the container: vzctl restart 101 ).
|
Join the discussion.
www.seamlessenterprise.com
IP Convergence
Integrate your wireless and wireline networks.
Learn how from the experts at Sprint.
www.seamlessenterprise.com
Wireless & Wireline Integration
Thoughts, strategies and solutions: join the discussion
www.seamlessenterprise.com
Unified Communications 2009
Join the Discussion. Now.
www.seamlessenterprise.com







Recent comments
6 hours 31 min ago
8 hours 13 min ago
10 hours 39 min ago
10 hours 45 min ago
15 hours 19 min ago
17 hours 20 min ago
20 hours 43 min ago
22 hours 50 min ago
23 hours 1 min ago
1 day 1 hour ago