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


Groups > linux.debian.user > #240610

Re: "Proper" filesystem for Debian installed on a flash drive

From Nate Bargmann <n0nb@n0nb.us>
Newsgroups linux.debian.user
Subject Re: "Proper" filesystem for Debian installed on a flash drive
Date 2021-09-30 04:00 +0200
Message-ID <D2TwB-1hX-3@gated-at.bofh.it> (permalink)
References <D2Hvs-2Gv-9@gated-at.bofh.it> <D2J4d-3t3-1@gated-at.bofh.it>
Organization Amateur Radio!

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

* On 2021 29 Sep 09:47 -0500, Reco wrote:
> 	Hi.
> 
> On Wed, Sep 29, 2021 at 07:59:50AM -0500, Nate Bargmann wrote:
> > A test run with KDE Plasma shows that performance is acceptable even
> > with EXT4 as the file system.  I now have some SanDisk Ultra Fit flash
> > drives arriving in 128GB capacity (overkill, oh well).  I am now
> > considering what file system would be proper to use in this case.
> 
> A plain ext4 with the 'discard' mount option will do just fine.

From the ext4(5) man page:

       discard/nodiscard
              Controls whether ext4 should issue discard/TRIM commands to  the
              underlying  block  device when blocks are freed.  This is useful
              for SSD devices and sparse/thinly‐provisioned LUNs,  but  it  is
              off by default until sufficient testing has been done.

LUN?  That's new to me.  Let's see[1]:

"In computer storage, a logical unit number, or LUN, is a number used to
identify a logical unit, which is a device addressed by the SCSI
protocol or by Storage Area Network protocols that encapsulate SCSI,
such as Fibre Channel or iSCSI."

On this desktop I run a cron job twice a month that runs fstrim(8) that
its man page states:

       Running fstrim frequently, or even using mount -o discard, might  nega‐
       tively affect the lifetime of poor‐quality SSD devices.  For most desk‐
       top and server systems a sufficient trimming frequency is once a  week.
       Note  that  not all devices support a queued trim, so each trim command
       incurs a performance penalty on whatever else might be  trying  to  use
       the disk at the time.

That leads me to think that discard could be problematic on some
devices.  Does a USB flash drive fall into that category?  I've no
problem using anacron to run an fstrim(8) job every so often if discard
is thought to be too aggressive.

> > I understand that the journal can be disabled when using EXT4 to save
> > writes which is probably fine (this system will be non-critical).
> 
> It's possible to do, but it is not needed that much.
> If you're trying to conserve drive's resources - just write less on it.
> I.e. redirecting .xsession-errors to /dev/null, removing that annoying
> /var/log/journal directory, adding a good set of filters to rsyslog,
> etc.
> 
> For instance, this low-cost SSD that I use in my laptop endured about
> 1.8 Tb writes over 3.5 year usage, and shows no signs of degradation.

Presumably there is a difference between an SSD which expects a lot of
writes and a USB flash drive that expects relatively few by comparison
used in the role of an SSD/HDD, not?

- Nate

[1] https://en.wikipedia.org/wiki/Logical_unit_number
-- 
"The optimist proclaims that we live in the best of all
possible worlds.  The pessimist fears this is true."
Web: https://www.n0nb.us
Projects: https://github.com/N0NB
GPG fingerprint: 82D6 4F6B 0E67 CD41 F689 BBA6 FB2C 5130 D55A 8819

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


Thread

"Proper" filesystem for Debian installed on a flash drive Nate Bargmann <n0nb@n0nb.us> - 2021-09-29 15:10 +0200
  Re: "Proper" filesystem for Debian installed on a flash drive Reco <recoverym4n@enotuniq.net> - 2021-09-29 16:50 +0200
    Re: "Proper" filesystem for Debian installed on a flash drive Nate Bargmann <n0nb@n0nb.us> - 2021-09-29 18:40 +0200
      Re: "Proper" filesystem for Debian installed on a flash drive Brian <ad44@cityscape.co.uk> - 2021-09-29 19:50 +0200
        Re: "Proper" filesystem for Debian installed on a flash drive Nate Bargmann <n0nb@n0nb.us> - 2021-09-30 02:00 +0200
    Re: "Proper" filesystem for Debian installed on a flash drive Nate Bargmann <n0nb@n0nb.us> - 2021-09-30 04:00 +0200
      Re: "Proper" filesystem for Debian installed on a flash drive Reco <recoverym4n@enotuniq.net> - 2021-09-30 09:10 +0200
      Re: "Proper" filesystem for Debian installed on a flash drive Anssi Saari <as@sci.fi> - 2021-10-01 08:10 +0200
  Re: "Proper" filesystem for Debian installed on a flash drive David Christensen <dpchrist@holgerdanske.com> - 2021-09-29 23:40 +0200
    Re: "Proper" filesystem for Debian installed on a flash drive Nate Bargmann <n0nb@n0nb.us> - 2021-09-30 02:10 +0200
  Re: "Proper" filesystem for Debian installed on a flash drive Marco Möller <talby@debianlists.mobilxpress.net> - 2021-09-30 22:20 +0200
    Re: "Proper" filesystem for Debian installed on a flash drive Nate Bargmann <n0nb@n0nb.us> - 2021-10-01 03:10 +0200
      Re: "Proper" filesystem for Debian installed on a flash drive "Rick Thomas" <rick.thomas@pobox.com> - 2021-10-01 04:00 +0200
        Re: "Proper" filesystem for Debian installed on a flash drive Marco Möller <talby@debianlists.mobilxpress.net> - 2021-10-01 18:20 +0200
    USB memory stick quality [was: "Proper" filesystem for Debian  installed on a flash drive] <tomas@tuxteam.de> - 2021-10-01 08:50 +0200
      Re: USB memory stick quality [was: "Proper" filesystem for Debian  installed on a flash drive] Cindy Sue Causey <butterflybytes@gmail.com> - 2021-10-01 12:00 +0200
        Re: USB memory stick quality [was: "Proper" filesystem for Debian  installed on a flash drive] Jude DaShiell <jdashiel@panix.com> - 2021-10-01 13:30 +0200
          Re: USB memory stick quality [was: "Proper" filesystem for Debian  installed on a flash drive] <tomas@tuxteam.de> - 2021-10-01 13:50 +0200

csiph-web