Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Feb 2015 10:28:25 +0000
From:      Steven Hartland <killing@multiplay.co.uk>
To:        freebsd-fs@freebsd.org
Subject:   Re: Creating zpool on NVMe Disks takes forever
Message-ID:  <54E70C49.80501@multiplay.co.uk>
In-Reply-To: <CAFHbX1JaicsqkADnkEOQEF6ywaeisqv1jNb5YdWdtnxxfRwvbg@mail.gmail.com>
References:  <54E5BB12.3060707@fuckner.net> <54E5CF6E.5030906@multiplay.co.uk> <54E5D574.8020406@fuckner.net> <CAFHbX1JQkgfZwY%2B2MSvQSZNyhBQQCUiwwGF50PTjfuMy_e1kHg@mail.gmail.com> <54E5F19A.3080804@kateley.com> <54E61C18.8070101@fuckner.net> <d961da9deeee016da3228b362e29454d@mailbox.ijs.si> <54E63D17.4000006@delphij.net> <CAFHbX1JaicsqkADnkEOQEF6ywaeisqv1jNb5YdWdtnxxfRwvbg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On 20/02/2015 10:20, Tom Evans wrote:
> On Thu, Feb 19, 2015 at 1:33 PM, Steven Hartland
> <killing@multiplay.co.uk> wrote:
>> Technically is not TRIM / UNMAP its BIO_DELETE which is translated by the
>> relevant device driver to the format the device understands.
>>
>> For SCSI this can be TRIM, UNMAP, WS or ZERO, for ATA this can be CFA_ERASE
>> or TRIM and for NVMe this is a Deallocate.
>>
>> One reason why it might be slow is I don't see NVMe configuring geom
>> d_delmaxsize, which if the case will force the "TRIM" to be split into
>> single sector deallocation requests.
> So "zfs_trim_on_init" doesn't require TRIM, it simply ensures it has
> wiped all data regardless of what the device supports.
No it will process deletes if the underlying device supports it, not all do.
> On Thu, Feb 19, 2015 at 7:44 PM, Xin Li <delphij@delphij.net> wrote:
>> Encrypted GEOM providers does not support TRIM (neither pass-through
>> nor random initialization) right now, so this doesn't matter, at least
>> not yet.
> Given the above, doesn't this mean that encrypted geoms will be erased
> block by block on init, regardless of whether they can TRIM or not.
>
Nope, last time I looked GELI it didn't support DELETE at all, so the 
requests would be ignored.

     Regards
     Steve



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