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


Groups > linux.debian.user > #180883

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 17:10 +0200
Message-ID <tFeVX-3qX-1@gated-at.bofh.it> (permalink)
References <tFdwS-2iO-15@gated-at.bofh.it> <tFeVX-3qX-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, May 09, 2017 at 11:02:46AM -0400, Dan Ritter wrote:
> On Tue, May 09, 2017 at 03:35:04PM +0200, David Guyot wrote:
> > Hello, there.
> > 
> > I recently loaned a server with NVMe SSD and saw, during my research on
> > the relevance of the discard mount option for them, that its use is
> > discouraged for NVMe SSDs. Why? Does NVMe SSDs not need trimming? Is it
> > integrated in the NVMe driver for Linux?
> 
> Intel, among other NVMe SSD manufacturers, recommends using
> fstrim periodically rather than enabling continuous trimming
> with the discard option.
> 
> They don't specifically state why, but I will hazard a guess
> that performance is impacted during a trim, and doing so for
> a short period once a day or once a week is more useful than
> decreasing performance all the time.

Evidence from Ted Ts'o:

https://forums.freebsd.org/threads/56951/#post-328912

which boils down to:

A) yes, there's a performance impact
B) the systems which listen to TRIM commands do better on large
   allocations than on small, so batching them up with fstrim
   called by cron is preferred.

-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