Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Dec 2014 18:14:47 +1100
From:      Peter Jeremy <peter@rulingia.com>
To:        Poul-Henning Kamp <phk@phk.freebsd.dk>
Cc:        arch@freebsd.org
Subject:   Re: enable TRIM by default ?
Message-ID:  <20141203071447.GC13944@server.rulingia.com>
In-Reply-To: <89094.1417506193@critter.freebsd.dk>
References:  <89094.1417506193@critter.freebsd.dk>

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

--3MwIy2ne0vdjdPXF
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On 2014-Dec-02 07:43:13 +0000, Poul-Henning Kamp <phk@phk.freebsd.dk> wrote:
>Isn't it time that we enable TRIM by default in newfs ?

As an alternative viewpoint, I have a SSD that got severe indigestion when
I tried to enable TRIM:
aspire kernel: ad0: TIMEOUT - CFA ERASE retrying (1 retry left)
aspire kernel: ad0: WARNING - SETFEATURES SET TRANSFER MODE taskqueue timeo=
ut - completing request directly
aspire kernel: ata1: error issuing SETFEATURES ENABLE WCACHE command
aspire kernel: ata1: error issuing SET_MULTI command
aspire kernel: ata1: error issuing WRITE_DMA command
The kernel then went to 1 core of interrupt and wedged.

I admit that it's about 3 years old but smartctl says it's still got lots of
life left in it and googling suggests they are still available.

The problem is that if a SSD doesn't support TRIM, it is likely to have all
sorts of misbehaviour if you attempt to enable TRIM.  If TRIM is enabled by
default, you need to provide a simple way to disable it if the system can't
cope.

--=20
Peter Jeremy

--3MwIy2ne0vdjdPXF
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQJ8BAEBCgBmBQJUfrhnXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRFRUIyOTg2QzMwNjcxRTc0RTY1QzIyN0Ux
NkE1OTdBMEU0QTIwQjM0AAoJEBall6Dkogs00YUP/0xB3fhjdicqdIDggPyXXYL4
e94jbw7F3oPKgW8dSHMiqE3HZoHvjkn9pN787z0cKqDLWWqCM+CyKApgE687gi5N
NSxnL6KGWq1lkCTO2CSMMm9XoYLJgBvAIB+25+YvVjlvAldZECBp2/fE+wTeSeXY
dOD6zYfjTPo580Fw1NjjJJ4Hl6wLE763UdqLMKMUk7NvGMOZk/C+BzSJtb9OYFSI
ymqfqBjvuK8zEK/WXCi8nZhAJlGTeS8I+2VtMBkiBRSCVigGA0+LtWq7toEdrgK5
zIPp87U62gOf4hDcEscndNOUVf3vT9x6ooZSBiXuD7TMmfiYMFNFbDwLT6vIxeY2
sI/XEiPl4dAAuy4ImSwRfmvm85vQPqXN9VV0iTIddbXT6tQQson7JGiDkZK1m3Kr
yMfHd4wWxmv/ud7Uoaslla7+64Vfxr7XNDsXXCgfnQmdfeLkcBTfzs8BXVBDd2ba
9V6qYe6majErd4frI/vy0VgG6A+crZQnOtqGks0tkCWXUMT5EDWAgscVmmcx09kB
OqunUJNyoVOHSkZDhmhkfoc/AEFvjjND8gUTVw7fqFfcRXGbV5ecwg9cHWzBO7m3
dShGGDQUtY0+7tMBWb/dCSjN624go9Zc8cuKXcNwRQ/p7gJQp5rhQbx+skQbYome
pzkIyeBDrezVL+64CyyD
=HxNm
-----END PGP SIGNATURE-----

--3MwIy2ne0vdjdPXF--



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