From owner-freebsd-fs@FreeBSD.ORG Thu Jul 28 09:09:50 2011 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AC6B5106566C for ; Thu, 28 Jul 2011 09:09:50 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 3BD0E8FC0C for ; Thu, 28 Jul 2011 09:09:50 +0000 (UTC) Received: by fxe4 with SMTP id 4so1402843fxe.13 for ; Thu, 28 Jul 2011 02:09:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=pQT8aa34JxgFKqhcpbbBYTsV/8/tXzw/cuPEX8ACQ2Y=; b=bM0pUAg6F23Le5oQu2tisbQYvcjgm61me//vv5uJ3BQ7QziDNpp8fiCdriXKo+Kx3S 839oTw63Lk2G5VYrpR7Y4qJz1/mDPQHZiW+uxXJp6TdZyTbC+GBSF19QJwcaz+BY3GOT NH4xUf0YrYPrYAEuG6VB+Yg+hp6oWAslX38Y8= Received: by 10.204.32.201 with SMTP id e9mr235937bkd.392.1311844189109; Thu, 28 Jul 2011 02:09:49 -0700 (PDT) Received: from mavbook2.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id sz1sm205187bkb.58.2011.07.28.02.09.46 (version=SSLv3 cipher=OTHER); Thu, 28 Jul 2011 02:09:47 -0700 (PDT) Sender: Alexander Motin Message-ID: <4E312747.3020009@FreeBSD.org> Date: Thu, 28 Jul 2011 12:09:27 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.23 (X11/20091212) MIME-Version: 1.0 To: Steven Hartland References: In-Reply-To: X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-fs@freebsd.org Subject: Re: Questions about erasing an ssd to restore performance under FreeBSD X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Jul 2011 09:09:50 -0000 Steven Hartland wrote: > There seems to be loads of info about this but nothing concrete so > I'm hoping someone here can answer some questions:- > > 1. Does newfs -E work on all controllers or only in combination > with ahci ada driver? In our case the drivers are off an LSI controller > using the mpt driver > > mpt0: port 0xfc00-0xfcff mem > 0xdf2ec000-0xdf2effff,0xdf2f0000-0xdf2fffff irq 16 at device 0.0 on pci2 > mpt0: [ITHREAD] > mpt0: MPI Version=1.5.18.0 > mpt0: Capabilities: ( RAID-0 RAID-1E RAID-1 ) > mpt0: 0 Active Volumes (2 Max) > mpt0: 0 Hidden Drive Members (14 Max) `newfs -E` depends on disk driver's support for BIO_DELETE request. For now, AFAIR it is supported at least by ada, mmcsd, some cases of ad and few other cases. da driver doesn't support it now. Also, except da driver, TRIM command should be supported by the controller firmware, that implements SCSI<->ATA protocol translation, and AFAIK often it isn't so. > 2. If newfs -E doesn't work, which I suspect is the case, is using > something like partedmagic boot cd and the secure erase app in that > still an option or is that again thwarted by the LSI controller? Secure erase for the whole disk can be done using special ATA commands, unrelated to TRIM, but with the same end result. I have no idea if those commands have SCSI alternatives, but if so and they are used by mentioned software, there is a chance that controller firmware support them. -- Alexander Motin