Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 May 2013 18:20:24 -0600 (MDT)
From:      Warren Block <wblock@wonkity.com>
To:        Adam Vande More <amvandemore@gmail.com>
Cc:        Erich Dollansky <erichsfreebsdlist@alogt.com>, Polytropon <freebsd@edvax.de>, "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>, "M. V." <bored_to_death85@yahoo.com>
Subject:   Re: "swap" partition leads to instability?
Message-ID:  <alpine.BSF.2.00.1305261813040.30008@wonkity.com>
In-Reply-To: <CA%2BtpaK106Fu0dKmR-4_e3ZjnjoMb3ZrjWEscXX99v1qj4BzCJw@mail.gmail.com>
References:  <1369558712.96152.YahooMailNeo@web165006.mail.bf1.yahoo.com> <20130526160906.4e379016@X220.ovitrap.com> <20130526113235.f5dbe768.freebsd@edvax.de> <alpine.BSF.2.00.1305261724050.29348@wonkity.com> <CA%2BtpaK106Fu0dKmR-4_e3ZjnjoMb3ZrjWEscXX99v1qj4BzCJw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 26 May 2013, Adam Vande More wrote:

> On Sun, May 26, 2013 at 6:32 PM, Warren Block <wblock@wonkity.com> wrote:
>
>> Another problem with SSDs is that they can have difficulty with wear
>> leveling.  This is even worse with swap because there is no way to use TRIM
>> to tell the SSD about blocks that have been freed.
>
> Um, that is wrong.

Which part?  A FreeBSD swap partition has no way to use TRIM, so I 
suggest using a swap file on top of UFS, which does support TRIM.

> It is in fact the basically the point of TRIM.
> And SSD's typically use the best form of wear leveling and it's
> usually advisable to leave a bit of the drive unpartitioned/unused to
> ensure the wear leveling works optimally.

Using TRIM should preserve performance better than leaving unused space 
and letting the drive wear leveling algorithm move data around without 
the hint.



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