11

A lot of tutorials says to use noatime on fstab when you have an SSD, but for me seems the relatime will works nicely.

Some quotes:

Add the "noatime" (or "relatime") mount option in /etc/fstab, to disable (or significantly reduce) disk writes whenever a file is read. Please note that since Linux kernel 2.6.30, "relatime" is the default. This improves filesystem read performance for both SSDs and HDDs.

source: Debian SSD Optimization

The other option, noatime, tells the filesystem to not keep track of last accessed times – just last modified times. This can reduce wear and tear on your SSD, because there are many files that you access while you use your computer but there are far fewer files that you’ll end up modifying.

source: http://www.makeuseof.com/tag/optimize-linux-ssds

Will it work fine? Will it be better? I'll have any problem with this setting?

2 Answers2

7

noatime will cause even less disk writes than relatime but whether that causes a problem depends on if one of your applications relies on those access times.

See also https://unix.stackexchange.com/questions/371812/difference-between-nointegrity-noatime-relatime.

1

In most cases the atime will be in the same disk block as the ctime and mtime. So noatime will not save any disk writes compared to relatime.

In Unix-like file systems, inodes (where the various time values are stored) are a fixed size. In any reasonable file system of that type they will be designed so they fit evenly into disk blocks.

But there is no guarantee that ALL file systems are designed that way. NTFS stores the file time as part of a variable length directory entry, so it's possible that an entry can straddle block boundaries and the time values (NTFS stores EIGHT) could be divided.