Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #180889

Re: NVMe SSD and discard mount option

From Dan Ritter <dsr@randomstring.org>
Newsgroups linux.debian.user
Subject Re: NVMe SSD and discard mount option
Date 2017-05-09 18:00 +0200
Message-ID <tFfIo-3IS-69@gated-at.bofh.it> (permalink)
References <tFdwS-2iO-15@gated-at.bofh.it> <tFeVX-3qX-3@gated-at.bofh.it> <tFeVX-3qX-1@gated-at.bofh.it> <tFf5E-3uz-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, May 09, 2017 at 05:17:42PM +0200, David Guyot wrote:
> I also thought about that at first, but asked to my server provider, and
> they quoted Intel docs: "Be sure to turn off the discard option when
> making your Linux filesystem. You want to allow the SSD manage blocks
> and its activity between the NVM (non-volatile memory) and host with
> more advanced and consistent approaches in the SSD Controller.Core
> Filesystems:•ext4– the default extended option is not to discard blocks
> at filesystem make time, retain this, and do not add the “discard”
> extended option as some information will tell you to do"
> 
> If I understand correctly, the SSD already manages discarding the old
> blocks, probably using some NVMe magic. Is my interpretation OK?

That's not what I said, no.

NVMe is an interface, like SATA. There's nothing magic about it.

All the data quoted so far suggests that you should not add the
discard option.

Trim operations should be done via cron calling the fstrim
command.

-dsr-

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

NVMe SSD and discard mount option David Guyot <david.guyot@europecamions-interactive.com> - 2017-05-09 15:40 +0200
  Re: NVMe SSD and discard mount option Dan Ritter <dsr@randomstring.org> - 2017-05-09 17:10 +0200
    Re: NVMe SSD and discard mount option David Guyot <david.guyot@europecamions-interactive.com> - 2017-05-09 17:20 +0200
      Re: NVMe SSD and discard mount option Dan Ritter <dsr@randomstring.org> - 2017-05-09 18:00 +0200
  Re: NVMe SSD and discard mount option Dan Ritter <dsr@randomstring.org> - 2017-05-09 17:10 +0200
  Re: NVMe SSD and discard mount option Henrique de Moraes Holschuh <hmh@debian.org> - 2017-05-09 18:40 +0200

csiph-web