[Solved] ssd: realtine, noatime ?

Kernels & Hardware, configuring network, installing services

[Solved] ssd: realtine, noatime ?

Postby linuxsat » 2018-10-22 06:23

Hello,

I'm on a Stretch 9.2 on a Dell laptop 5480 wich has a ssd (256Go).

I'm a bit puzzled by the explanations I found on the net about the safe config for a ssd (perhaps because some
are outdated?).

In particular I read that the option "realtime" is now used by default by the kernel and then
that the option "noatime" is not really necessary in /etc/fstab is that true?

In addition none of these option are in my fstab file, so should I change it?
Last edited by linuxsat on 2018-10-24 12:19, edited 1 time in total.
linuxsat
 
Posts: 25
Joined: 2017-10-20 14:28

Re: ssd: realtine, noatime ?

Postby p.H » 2018-10-22 07:20

linuxsat wrote:In particular I read that the option "realtime" is now used by default by the kernel

It is not "realtime" but "relatime" (short for "relative access time"). It means that the access time is updated (i.e.) written only once after a write or once a day, whichever happens first. Unlike noatime, it allows to know whether a file has been read after the last write, while still reducing writes. It has been the default for ages.

linuxsat wrote:and then that the option "noatime" is not really necessary in /etc/fstab is that true?

Quite, unless you really want to minimize writes. But noatime may break a few programs which rely on file access time. Modern SSDs should be able to bear the extra writes caused by relatime.

linuxsat wrote:In addition none of these option are in my fstab file, so should I change it?

relatime is the default, so if this is what you want you do not have to set it in fstab. If you want noatime, you can set it in fstab or in the filesystem default mount options (see tune2fs manpage for an ext4 filesystem).
p.H
 
Posts: 631
Joined: 2017-09-17 07:12

Re: ssd: realtine, noatime ?

Postby linuxsat » 2018-10-24 12:18

Many thanks p.H.
sorry for the misspell of "relatime", and thanks for your explanation.
I mark the subject to Solved.
linuxsat
 
Posts: 25
Joined: 2017-10-20 14:28


Return to System configuration

Who is online

Users browsing this forum: No registered users and 12 guests

fashionable