From owner-freebsd-arch@FreeBSD.ORG Wed Dec 3 07:15:10 2014 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 25FB291E for ; Wed, 3 Dec 2014 07:15:10 +0000 (UTC) Received: from vps.rulingia.com (vps.rulingia.com [103.243.244.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "vps.rulingia.com", Issuer "CAcert Class 3 Root" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 97DF096C for ; Wed, 3 Dec 2014 07:15:09 +0000 (UTC) Received: from server.rulingia.com (c220-239-242-83.belrs5.nsw.optusnet.com.au [220.239.242.83]) by vps.rulingia.com (8.14.9/8.14.9) with ESMTP id sB37ErN4024397 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 3 Dec 2014 18:14:59 +1100 (AEDT) (envelope-from peter@rulingia.com) X-Bogosity: Ham, spamicity=0.000000 Received: from server.rulingia.com (localhost.rulingia.com [127.0.0.1]) by server.rulingia.com (8.14.9/8.14.9) with ESMTP id sB37EmJQ080128 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 3 Dec 2014 18:14:48 +1100 (EST) (envelope-from peter@server.rulingia.com) Received: (from peter@localhost) by server.rulingia.com (8.14.9/8.14.9/Submit) id sB37Eler080127; Wed, 3 Dec 2014 18:14:47 +1100 (EST) (envelope-from peter) Date: Wed, 3 Dec 2014 18:14:47 +1100 From: Peter Jeremy To: Poul-Henning Kamp Subject: Re: enable TRIM by default ? Message-ID: <20141203071447.GC13944@server.rulingia.com> References: <89094.1417506193@critter.freebsd.dk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="3MwIy2ne0vdjdPXF" Content-Disposition: inline In-Reply-To: <89094.1417506193@critter.freebsd.dk> X-PGP-Key: http://www.rulingia.com/keys/peter.pgp User-Agent: Mutt/1.5.23 (2014-03-12) Cc: arch@freebsd.org X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Dec 2014 07:15:10 -0000 --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 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--