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 ).
|



Recent comments
1 day 5 hours ago
1 day 14 hours ago
1 day 17 hours ago
1 day 18 hours ago
1 day 19 hours ago
1 day 21 hours ago
1 day 23 hours ago
2 days 16 min ago
2 days 16 hours ago
2 days 17 hours ago