Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Jul 2011 12:09:27 +0300
From:      Alexander Motin <mav@FreeBSD.org>
To:        Steven Hartland <killing@multiplay.co.uk>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: Questions about erasing an ssd to restore performance under FreeBSD
Message-ID:  <4E312747.3020009@FreeBSD.org>
In-Reply-To: <mailpost.1311806406.6677649.16811.mailing.freebsd.fs@FreeBSD.cs.nctu.edu.tw>
References:  <mailpost.1311806406.6677649.16811.mailing.freebsd.fs@FreeBSD.cs.nctu.edu.tw>

next in thread | previous in thread | raw e-mail | index | archive | help
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: <LSILogic SAS/SATA Adapter> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E312747.3020009>