From owner-freebsd-arch@FreeBSD.ORG Wed Dec 3 08:37:27 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 C19126BA for ; Wed, 3 Dec 2014 08:37:27 +0000 (UTC) Received: from mail-pa0-f51.google.com (mail-pa0-f51.google.com [209.85.220.51]) (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 905A7FF for ; Wed, 3 Dec 2014 08:37:27 +0000 (UTC) Received: by mail-pa0-f51.google.com with SMTP id ey11so15427980pad.38 for ; Wed, 03 Dec 2014 00:37:21 -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=NYE6UlYeQ3aZSR+9Xcav5h3E2+cpqIXwy9Bfr8kRlqM=; b=Q+AHELzjrgxrl+M85D7NS5K+YZpIOIIpoSnsUrrrMsgOm08LSGqoegxSDBZNs1fhwH PpiVDafYzbjtg/8gCdO+o8rXyI9kIcL5WHOYrEKj0km78WHC/5ho6EqFVAc4An35JTLC 9K8x3npgLTlDqPZEE/gMkD9RKPB5ftUc8y2d1NUFhUGT9ETo6AiW1ZSkBQDey7K0bd3I J9A7MFrnfHNiVioT/ZhKTZwLc7V37Fcec+KVq/h30QSUeexu9hA2yVEKo7+UuV5Bu08T 9veBUQ7czXsUGWQZcyaVUYPcvak/6dXV+Xvnwn0LxSKOrk9d+qHcNNqPr05KdbkW9mh7 VWsg== X-Gm-Message-State: ALoCoQlCKWbVQJkhCQYCz7hLne34ktGdEJnVMwCzBPFUgY0ASaN72ZhRay8xj63jkJNpmLE1zqwZ X-Received: by 10.70.55.40 with SMTP id o8mr6209217pdp.87.1417595841066; Wed, 03 Dec 2014 00:37:21 -0800 (PST) Received: from [10.64.24.134] ([69.53.236.236]) by mx.google.com with ESMTPSA id ps2sm22421006pdb.62.2014.12.03.00.37.19 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 03 Dec 2014 00:37:20 -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=_96717203-2006-4451-9C5C-6AF62097CCE0"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Pgp-Agent: GPGMail 2.5b3 From: Warner Losh In-Reply-To: <20141203083444.GD13944@server.rulingia.com> Date: Wed, 3 Dec 2014 01:37:17 -0700 Message-Id: References: <89094.1417506193@critter.freebsd.dk> <20141203071447.GC13944@server.rulingia.com> <20141203083444.GD13944@server.rulingia.com> To: Peter Jeremy X-Mailer: Apple Mail (2.1993) Cc: arch@freebsd.org, Poul-Henning Kamp 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 08:37:27 -0000 --Apple-Mail=_96717203-2006-4451-9C5C-6AF62097CCE0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On Dec 3, 2014, at 1:34 AM, Peter Jeremy wrote: >=20 > On 2014-Dec-03 00:45:47 -0700, Warner Losh wrote: >>=20 >>> On Dec 3, 2014, at 12:14 AM, Peter Jeremy = wrote: >>>=20 >>> On 2014-Dec-02 07:43:13 +0000, Poul-Henning Kamp = wrote: >>>> Isn't it time that we enable TRIM by default in newfs ? >>>=20 >>> 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 >> Is this a SSD, or a CF card of some flavor. The CFA ERASE trim method >> pre-dates the much better and easier to use DSM (Data Set Trim) = method >> that more modern SSDs use. Perhaps we can take a cue off of that? Or >> maybe the detection for when to use CFA ERASE is busted since it was >> only ever supposed to be used with CF cards... >=20 > It's a Super Talent FEM16GF13M - which describes itself as a SSD and = has > a PATA interface. That trial was ~3 years ago and so probably on 8.x. Also just noticed this is the ad driver, not the ada driver. Is the = above dmesg from 8.x? Warner --Apple-Mail=_96717203-2006-4451-9C5C-6AF62097CCE0 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 iQIcBAEBCgAGBQJUfsu9AAoJEGwc0Sh9sBEA3YgQAJHLfKO8h7JqbKjZtZTREzss 063r07PcxTvKkQf4fhS6WcgQ+VRzmXhoG9VTRq/ppG/GFyu7kcU769+NfX5vx8KD dq7eAdnN05RreOJdJBLFFGCb0iWLdDlHTjo70zPeTCL56ecNNzi25a8+v5K46Nkn eEWmSveo/w6u5An2HNTNeTRxtPoWFvTTyY/6u7080ep2/M8WAKJ2/rBds7m2rDby EUa97SZB/tn6zbEfldYafw2pmQJq2k8TfI4Qli6jrFSWK+0ynXnMqu+zd8f/1Wq+ MTnAE+2uXMRU9vHLTSJXQ4YW62yYYTwslBYOskHFLRcIcqokt4uiLuvOzS9+cGRB Md83XXcKtyPm4aYASVe/HimK9pdTepgMvuebyjDTO5iUW/tmNLck2f0EZfAra/cu 5H/IwTkzpV8WztCHfvSO6EC+7o9B1YtJDTf23xegynVTKWmc3LoUBZW2PvUiJy+R ZCh9NvY6cgJ9CQdlqSgx/+FpouNcQt+rRGPFwY4r/oQwm88a2SsuhP6Ox8kjtcBp YZpV0dTNi0+MFTcJdNC7ZPW5as3CcQoMzHTIk8kQsmR+cyyueM7YbF2mxi3TRM+T biP17aAgsMjBAyCdwZMtdcR5Gz/Yo1N8j0oVKlEPFgB6s6pv4AaKMMOYyol6GAQP PQXb56oUUDf/22IzCxLn =tcCQ -----END PGP SIGNATURE----- --Apple-Mail=_96717203-2006-4451-9C5C-6AF62097CCE0--