enabling TRIM on an existing UFS file system ?

Mike Tancsa mike at sentex.net
Fri May 8 18:50:00 UTC 2015

On 5/8/2015 2:39 PM, Warren Block wrote:
>> But once I boot up, it seems to be disabled again ?
> Right.  Don't 'exit' there after changing a setting.  Instead, 'shutdown
> -r now' and check it again.  Once the setting has been changed, it will
> stick.  (Something about the filesystem details not being reread, but I
> forget the exact details.)

Ha, That did it!

0(mdt)# tunefs -p /dev/ada0p2
tunefs: POSIX.1e ACLs: (-a)                                disabled
tunefs: NFSv4 ACLs: (-N)                                   disabled
tunefs: MAC multilabel: (-l)                               disabled
tunefs: soft updates: (-n)                                 enabled
tunefs: soft update journaling: (-j)                       enabled
tunefs: gjournal: (-J)                                     disabled
tunefs: trim: (-t)                                         enabled
tunefs: maximum blocks per file in a cylinder group: (-e)  4096
tunefs: average file size: (-f)                            16384
tunefs: average number of files in a directory: (-s)       64
tunefs: minimum percentage of free space: (-m)             8%
tunefs: space to hold for metadata blocks: (-k)            6408
tunefs: optimization preference: (-o)                      time
tunefs: volume label: (-L)

After I posted, I really did think to myself, "I bet wblock will know" ;-)


Mike Tancsa, tel +1 519 651 3400
Sentex Communications, mike at sentex.net
Providing Internet services since 1994 www.sentex.net
Cambridge, Ontario Canada   http://www.tancsa.com/

More information about the freebsd-questions mailing list