Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Nov 2013 22:26:13 -0000
From:      "Steven Hartland" <killing@multiplay.co.uk>
To:        "Beeblebrox" <zaphod@berentweb.com>, <freebsd-fs@freebsd.org>
Subject:   Re: ZFS Trim
Message-ID:  <5C60466ABFE5442690405143D7AA4695@multiplay.co.uk>
References:  <1385723204127-5864731.post@n5.nabble.com> <67B55680E8B7491D9ED6F36ED9E28A49@multiplay.co.uk> <1385753577419-5864830.post@n5.nabble.com> <09C05F6302494B61A52C1C5065C719CE@multiplay.co.uk> <1385761744784-5864851.post@n5.nabble.com>

next in thread | previous in thread | raw e-mail | index | archive | help
----- Original Message ----- 
From: "Beeblebrox" <zaphod@berentweb.com>


> Code in /boot/loader.conf needs to be:
> vfs.zfs.trim.enabled = *1*
> "0" disables trim.

You don't need to enable TRIM as thats default.

> Very dumb question on my part, and windows related probably but, when
> searching the issue answers like this come up: 
> https://sort.symantec.com/public/documents/sfha/6.0.1/linux/productguides/html/virtualstore_admin/ch29s05.htm
> ZFS is probably immune to this. My question is in context of
> "trim.unsupported":
> 
> kstat.zfs.misc.zio_trim.bytes: 16388096
> kstat.zfs.misc.zio_trim.success: 1668
> kstat.zfs.misc.zio_trim.unsupported: 197
> kstat.zfs.misc.zio_trim.failed: 0

The unsupported will be due a zpool in your machine which
is likely created on a HDD hence doesn't support TRIM.

If you enable a TRIM after writing then deleting data
from the pool then you can fill the disk with random
data and then delete that data to ensure all areas
previously containing data is TRIM'ed. If this wasn't
a large amount then I wouldnt bother.

    Regards
    Steve

================================================
This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. 

In the event of misdirection, illegible or incomplete transmission please telephone +44 845 868 1337
or return the E.mail to postmaster@multiplay.co.uk.




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