Speeding up a Domino server on Linux, by changing a horrible default Linux setting...


If you are running your Domino server on Linux chances are the it runs on the ext3 file system, or even better on ext4.

For some odd reason Linux mounts file systems with a default setting called atime.


What this setting does is that for every read of a file, data get written to the disc with the last read time!
Even if the read data comes from a cache, there still will be a write to the physical disc.

That is horrible for almost 99% of all applications!!

Fortunately it is easy to fix.

You can turn this "feature" off with the noatime setting
Start by checking if your system already has this enabled by calling
Mount

/dev/sdb1 on / type ext3 (rw,noatime)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda1 on /local type ext3 (rw,noatime)
/dev/sdb2 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)


Here you can see it has already been set.


Otherwise this is what to do:

- edit /etc/fstab
- for each file system you what to enable noatime for, add the attribute like

/dev/sbdb1 / ext3 defaults,noatime 0 0


- save the file

Put it in use by

mount -o remount /

and you can check again with


Mount


to see if the noatime has been enabled


Posted on 11/02/2009 04:27:35 PM CET