Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 01 Dec 2018 20:23:32 +0900 (JST)
From:      Masachika ISHIZUKA <ish@amail.plala.or.jp>
To:        freebsd-hackers@freebsd.org
Subject:   Re: How to use trim command ?,Re: How to use trim command ?
Message-ID:  <20181201.202332.546134930481017424.ish@amail.plala.or.jp>
In-Reply-To: <1c7139bd-258c-e7d2-2572-052da3803b3b@freebsd.org>
References:  <7e69211c-6ffb-6155-b17a-a845c0b3586d@grosbein.net> <20181201.093153.893601099798031027.ish@amail.plala.or.jp> <1c7139bd-258c-e7d2-2572-052da3803b3b@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
>>   I misunderstood trim was equivalent to fstrim in linux.
>>   I undotstood that the trim command is the SSD bulk erase tool.
> 
> If you want to enable TRIM on a UFS filesystem, tunefs is the command
> you are looking for.

  Thank you for mail.

  I'm using 'tunefs -t enable /dev/ada0pXX', that is equivalent
to 'discard' in fstab on linux.
  
> The equivalent to fstrim for UFS is fsck_ffs -E:

  I think 'fsck_ffs -E' is not suitable for daily midnight cron
job.
-- 
Masachika ISHIZUKA



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20181201.202332.546134930481017424.ish>