[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Do I need to do fstrim on Jessie?



On Wed, Nov 25, 2015 at 10:29:26AM +0200, David Baron wrote:
> > > Either you add "discard" as a mount option to your fstab or you crate a
> > > cronjob to run "fstrim -a -v".
> > 
> 
> fstab created by the installer (normal SATA HDs) only has "defaults." Is this 
> implicit here?

You don't need "discard" for normal SATA HDDs, since they don't have a
wear-levelling layer which would manage free space below the filesystem.

>From the mount(8) manpage:

  The discard function issues frequent commands to let the block device
  reclaim space freed by the filesystem. This is useful for SSD devices,
  thinly provisioned LUNs and virtual machine images, but may have a sig‐
  nificant performance impact.

Regards,
Mirko


Reply to: