From owner-freebsd-arch@FreeBSD.ORG Wed Dec 3 07:46:40 2014 Return-Path: Delivered-To: freebsd-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 4034BCEE for ; Wed, 3 Dec 2014 07:46:40 +0000 (UTC) Received: from mail-pd0-f171.google.com (mail-pd0-f171.google.com [209.85.192.171]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1081CBFE for ; Wed, 3 Dec 2014 07:46:39 +0000 (UTC) Received: by mail-pd0-f171.google.com with SMTP id y13so14923681pdi.16 for ; Tue, 02 Dec 2014 23:46:33 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:mime-version:content-type:from :in-reply-to:date:cc:message-id:references:to; bh=6KowxQftyD0bMaIjbeZ6s4cs5D+k4lVMvEnruOHMGx0=; b=N0WQh1G+dGjqpyJkFnJYQoeFacL54cEOcO71Wg6NZkKqmEpmYWHWyGqT4JKU3Ww0jb NncjLvcZueERc83LRyV1h2m47H31YWm0HD3CSspZ+L7dHaTnMKP3cUljs1+tST/+hyT+ +42WbQwA2C6JfueuzJ/CuHpSgbYfohdyEa/ShDIHOvYPvMeOXE8ABZhaVYHbTbzXK5SS w4d+pMFMaN/3LM8mFY3y6Em1OI1Q2lTb6EWBWUFMAxcIRf2mNEVn2wn2SkONHGWKHP7P DlMOwBj5G7i3+G8am+iddRhxtqXD6cLnNp8oWgaLMp/6JNsiisDVuwi9WsvJmHB4dlaA ii7A== X-Gm-Message-State: ALoCoQmlSdOt4GPRg6G1bNUWr5Tm44c/OouX05IoSK0+JqEYKgX0WfZccu6R0M8c93fWszawkTR9 X-Received: by 10.68.138.229 with SMTP id qt5mr4033805pbb.62.1417592793802; Tue, 02 Dec 2014 23:46:33 -0800 (PST) Received: from [10.64.24.134] ([69.53.236.236]) by mx.google.com with ESMTPSA id c9sm22253939pdn.81.2014.12.02.23.46.32 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 02 Dec 2014 23:46:33 -0800 (PST) Sender: Warner Losh Subject: Re: enable TRIM by default ? Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) Content-Type: multipart/signed; boundary="Apple-Mail=_89494CF8-4B09-4B80-8F22-5E51BF5BCBA0"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Pgp-Agent: GPGMail 2.5b3 From: Warner Losh In-Reply-To: <547EB991.8000303@freebsd.org> Date: Wed, 3 Dec 2014 00:46:32 -0700 Message-Id: <9C982798-2DD9-407C-9231-2C5F2926301D@bsdimp.com> References: <89094.1417506193@critter.freebsd.dk> <20141203071447.GC13944@server.rulingia.com> <547EB991.8000303@freebsd.org> To: Alfred Perlstein X-Mailer: Apple Mail (2.1993) Cc: freebsd-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:46:40 -0000 --Apple-Mail=_89494CF8-4B09-4B80-8F22-5E51BF5BCBA0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Dec 3, 2014, at 12:19 AM, Alfred Perlstein = wrote: >=20 >=20 > On 12/2/14 11:14 PM, Peter Jeremy wrote: >> 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 = timeout - 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. >>=20 >> 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. >>=20 >> 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 > Is there a hints/quirks system we can use? >=20 > So: default to on, quirks/hints sets to off? IMO, CFA ERASE is a big clue something is amiss for anything that = isn=E2=80=99t a bona-fide CF card. Warner --Apple-Mail=_89494CF8-4B09-4B80-8F22-5E51BF5BCBA0 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJUfr/YAAoJEGwc0Sh9sBEAVT4QAJelSRPPb2c/g+Dds1rP0ht0 GcyHH3DgfRWawFsFoBy1iEW4MwIh0DbwLoIT5Xubzxfby7/KYB0nIbRH9Vxzba8m FxLo30thUqN1KaG1oiZHXjwebZoycaOJPnm198xAVs/5MXh8dqi8HwoRqv64oiy2 QdQ6Xk+n7BblE45M1DogLGnIM2o5QyrA1O9zyegXRrCDIey993O3OKEELnx1KO+k 6wUPf3FmiPFAI3gnQjw+EJfSkGzf9GFtDmPIhJ7LuS1Fo5p8AAD8HUSjRDGemI6P 5T/ZQqP4YgQIVis63bwdc8SalO3PHEEFowSw8vRyCBeC0oKzu4Uqly3ZqJlYlxRx dmXzK6SYuFwVWY9/wIw4p5wRjs4kfVQVZUchwF2pIOGSqoKooeB6a0JkSm0meedy w83L2C5BnPrmVf2mMGm/LySYUsveHO/drgqeYO/y9T6tTw0WSH5jISZmejH0kGcW 522U6UHtHCit4Id8V2q6TckoHeLflB+sHxf3ZduAvEWkcjrj5PPs0fjTsmU9G3iy zLvnkzHWZH+ANiE34h/cPZRzxG4hKj/2ytDtMKNqiabXeM2sIIfJfMyHFaiSIuC6 PVQtOzWJq5hR+/MocV8f2hvjij2GkILNwazXgO8Y65Sl0eAVYg9D0zjKGGOMkLOQ jQ+khk3hLX+IzqLaDWx0 =VtVY -----END PGP SIGNATURE----- --Apple-Mail=_89494CF8-4B09-4B80-8F22-5E51BF5BCBA0--