2.5. File System Determinism Tips
xfs. A much earlier file system called
ext2does not use journaling. Unless your organization specifically requires journaling, consider using
ext2. In many of our best benchmark results, we utilize the
ext2file system and consider it one of the top initial tuning recommendations.
xfsrecord the time a file was last accessed (
atime). If using
ext2is not a suitable solution for your system, consider disabling
atimeincreases performance and decreases power usage by limiting the number of writes to the filesystem journal.
Procedure 2.7. Disabling
- Open the
/etc/fstabfile using your chosen text editor and locate the entry for the root mount point.
/dev/mapper/rhel-root / xfs defaults…
- Edit the options sections to include the terms
noatimeprevents access timestamps being updated when a file is read and
nodiratimewill stop directory inode access times being updated.
/dev/mapper/rhel-root / xfs noatime,nodiratime…
ImportantSome applications rely on
atimebeing updated. Therefore, this option is reasonable only on system where such applications are not used.Alternatively, you can use the
relatimemount option, which ensures that the access time is only updated if the previous access time is older than the current modify time.
For more information, or for further reading, the following man pages are related to the information given in this section.
- mount(8) - for information on