From owner-freebsd-current@FreeBSD.ORG Mon Sep 24 16:16:43 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 797BC106564A; Mon, 24 Sep 2012 16:16:43 +0000 (UTC) (envelope-from pawel@dawidek.net) Received: from mail.dawidek.net (garage.dawidek.net [91.121.88.72]) by mx1.freebsd.org (Postfix) with ESMTP id 3A6068FC12; Mon, 24 Sep 2012 16:16:43 +0000 (UTC) Received: from localhost (89-73-195-149.dynamic.chello.pl [89.73.195.149]) by mail.dawidek.net (Postfix) with ESMTPSA id 10F47265; Mon, 24 Sep 2012 18:15:38 +0200 (CEST) Date: Mon, 24 Sep 2012 18:16:55 +0200 From: Pawel Jakub Dawidek To: Steven Hartland Message-ID: <20120924161654.GA1413@garage.freebsd.pl> References: <20120923195357.GO1454@garage.freebsd.pl> <1735E492-3C3C-491A-82E2-884E976B4BC4@gid.co.uk> <20120923222520.GS1454@garage.freebsd.pl> <20CC6F2BF08D47ED802318697542A15D@multiplay.co.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="YZ5djTAD1cGYuMQK" Content-Disposition: inline In-Reply-To: <20CC6F2BF08D47ED802318697542A15D@multiplay.co.uk> X-OS: FreeBSD 10.0-CURRENT amd64 User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-fs@freebsd.org, freebsd-current@freebsd.org Subject: Re: ZFS TRIM support committed to HEAD. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Sep 2012 16:16:43 -0000 --YZ5djTAD1cGYuMQK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 24, 2012 at 04:55:20PM +0100, Steven Hartland wrote: > ----- Original Message -----=20 > From: "Bob Bishop" > To: "Pawel Jakub Dawidek" > Cc: ; ; "Steven Hart= land" > Sent: Monday, September 24, 2012 3:17 PM > Subject: Re: ZFS TRIM support committed to HEAD. >=20 >=20 > > Hi, > >=20 > > On 23 Sep 2012, at 23:25, Pawel Jakub Dawidek wrote: > >=20 > >> I have a patch against stable/8, but not stable/9: > >>=20 > >> http://people.freebsd.org/~pjd/patches/zfstrim8.patch > >=20 > > Running with that in an otherwise 8-STABLE GENERIC amd64 kernel, I'm ge= tting: > >=20 > > kstat.zfs.misc.zio_trim.zio_trim_bytes: 0 > > kstat.zfs.misc.zio_trim.zio_trim_success: 0 > > kstat.zfs.misc.zio_trim.zio_trim_unsupported: 0 > > kstat.zfs.misc.zio_trim.zio_trim_failed: 2742 > >=20 > > which doesn't look like it's working. The SSDs are: > >=20 > > ad4: 114473MB at ata2-master UDMA100 SATA = 3Gb/s > > ad6: 114473MB at ata3-master UDMA100 SATA = 3Gb/s > >=20 > > Any suggestions? Thanks >=20 > Don't think ad supports TRIM, switch to ada (ahci) and you should be good. >=20 > Although I'm surprised your seeing that many reported failures as it shou= ld > have disabled it on a pool level after the first few failures. >=20 > Is it still increasing? Note that 'failed' count is increasing, not the 'unsupported' count. We disable TRIM automatically if we get EOPNOTSUPP and ATA is returning some other error(s). --=20 Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http://www.FreeBSD.org Am I Evil? Yes, I Am! http://tupytaj.pl --YZ5djTAD1cGYuMQK Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlBgh3YACgkQForvXbEpPzS7qgCg0x79vuGo2JZOIJbhCoZWaOyl vj8AnijIdfW+bQjm9+99NUvNCVMmUWnQ =1+ig -----END PGP SIGNATURE----- --YZ5djTAD1cGYuMQK--