From owner-freebsd-arch@FreeBSD.ORG Wed Dec 3 07:19:47 2014 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BFDE1A3A for ; Wed, 3 Dec 2014 07:19:47 +0000 (UTC) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id AEDED9A6 for ; Wed, 3 Dec 2014 07:19:47 +0000 (UTC) Received: from u10-2-32-011.office.norse-data.com (unknown [50.204.88.51]) by elvis.mu.org (Postfix) with ESMTPSA id 98722341F84E for ; Tue, 2 Dec 2014 23:19:46 -0800 (PST) Message-ID: <547EB991.8000303@freebsd.org> Date: Tue, 02 Dec 2014 23:19:45 -0800 From: Alfred Perlstein Organization: FreeBSD User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: freebsd-arch@freebsd.org Subject: Re: enable TRIM by default ? References: <89094.1417506193@critter.freebsd.dk> <20141203071447.GC13944@server.rulingia.com> In-Reply-To: <20141203071447.GC13944@server.rulingia.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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:19:47 -0000 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. > > 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. > Is there a hints/quirks system we can use? So: default to on, quirks/hints sets to off? -Alfred