Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 03 May 2011 16:33:24 +0200
From:      Alexander Leidinger <Alexander@Leidinger.net>
To:        ticso@cicely.de, Bernd Walter <ticso@cicely7.cicely.de>
Cc:        freebsd-fs@freebsd.org, Alexander Motin <mav@freebsd.org>, Pawel Jakub Dawidek <pjd@freebsd.org>
Subject:   Re: TRIM clustering
Message-ID:  <20110503163324.11285rolq1oyrnlc@webmail.leidinger.net>
In-Reply-To: <20110503132517.GF1549@cicely7.cicely.de>
References:  <4DBBB20A.5050102@FreeBSD.org> <20110430072831.GA65598@icarus.home.lan> <20110501000656.00007ea1@unknown> <20110501133752.GC3245@garage.freebsd.pl> <20110503134826.712070yt2urhxp8g@webmail.leidinger.net> <20110503132517.GF1549@cicely7.cicely.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Quoting Bernd Walter <ticso@cicely7.cicely.de> (from Tue, 3 May 2011  
15:25:17 +0200):

> On Tue, May 03, 2011 at 01:48:26PM +0200, Alexander Leidinger wrote:
>> Quoting Pawel Jakub Dawidek <pjd@FreeBSD.org> (from Sun, 1 May 2011
>> 15:37:52 +0200):
>>
>> >On Sun, May 01, 2011 at 12:06:56AM +0200, Alexander Leidinger wrote:
>> >>On Sat, 30 Apr 2011 00:28:31 -0700 Jeremy Chadwick
>> >><freebsd@jdc.parodius.com> wrote:
>> >>
>> >>> On Sat, Apr 30, 2011 at 09:54:02AM +0300, Alexander Motin wrote:
>> >>
>> >>> Other notes: TRIM needs to be supported on swap as well, and in my
>> >>> opinion this is just as important as it being in UFS.  I'm not sure
>> >>> how one would implement that.
>> >>
>> >>This brings up the question if a ZFS cache (where the contents do not
>> >>survive a reboot) is completely TRIMmed before used (and normally
>> >>trimmed during use)...
>> >
>> >It is not trimmed at all.
>>
>> This does not sound like the optimal solution... is there a way to
>> know the first access after boot/attach to a cache device? If yes,
>> would it be possible to TRIM the complete provider (except for some
>> static data which needs to be there) from this place? This would not
>> solve the not TRIMmed during use part, put at least a reboot/reattach
>> could provide a sane state.
>
> What would be the possible benefit?
> I mean it's just until the device is filled, which won't happen that
> regular in environments where cache devices make sense.

If a cache is not full, it is not used well (or you do not access that  
much data, but in this case you do not have to worry).

The benefit of the initial TRIM should be a faster cache-fill latency  
(if it matters or not depends upon your use-case/drive-channel-usage).

Regarding the in-use-TRIMming... I agree that it is subject to  
discussion (and the use-case), but at least it looks like a more  
correct solution. If large objects are removed from the cache,  
following cache fills could have lower write latency. Again, if this  
matters or not depends upon your use-case/drive-channel-usage.

> More interesting would be to have the cached data reboot persistent
> one day instead of TRIMing it.

I assume this would be more work than to teach it to TRIM (looking for  
low haning fruits), but in general I agree.

Bye,
Alexander.

-- 
Fools rush in -- and get the best seats.

http://www.Leidinger.net    Alexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org       netchild @ FreeBSD.org  : PGP ID = 72077137



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