From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Layton Subject: Re: TRIM support in drivers and dm/md? Date: Thu, 04 Nov 2010 10:46:45 -0400 Message-ID: <4CD2C755.3000908@att.net> References: <4CD2B2EF.4050005@att.net> <20101104134014.GB21931@parisc-linux.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: linux-fsdevel@vger.kernel.org To: Matthew Wilcox Return-path: Received: from nm7.bullet.mail.ac4.yahoo.com ([98.139.52.204]:30085 "HELO nm7.bullet.mail.ac4.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1751291Ab0KDOrC (ORCPT ); Thu, 4 Nov 2010 10:47:02 -0400 In-Reply-To: <20101104134014.GB21931@parisc-linux.org> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On 11/04/2010 09:40 AM, Matthew Wilcox wrote: > On Thu, Nov 04, 2010 at 09:19:43AM -0400, Jeff Layton wrote: >> Do many of the SATA controllers support TRIM? (i.e. pass >> the TRIM command to the SSD). Does anyone know >> anything about dm/md supporting TRIM? (I'm thinking LVM >> and software RAID tools). > As far as I know, there's nothing to be done in any SATA controller > driver to support TRIM. It's just up to the drive whether it understands > the command. That's the rub. I've heard that many drivers don't understand the command. So I'm curious what drivers do and any experience anyone might have. Thanks!