From: Tao Ma Subject: Re: Quick EXT4 discard question Date: Fri, 22 Apr 2011 10:27:54 +0800 Message-ID: <4DB0E7AA.6070007@tao.ma> References: <1303433101.1389.132.camel@keith-laptop> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: linux-ext4@vger.kernel.org To: Keith Mannthey Return-path: Received: from oproxy4-pub.bluehost.com ([69.89.21.11]:52545 "HELO oproxy4-pub.bluehost.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1753055Ab1DVC2Q (ORCPT ); Thu, 21 Apr 2011 22:28:16 -0400 In-Reply-To: <1303433101.1389.132.camel@keith-laptop> Sender: linux-ext4-owner@vger.kernel.org List-ID: On 04/22/2011 08:45 AM, Keith Mannthey wrote: > Hello, > I am using some Intel SSD drives with 2.6.38.2. > > > /proc/scsi/scsi identifies them as: > > " > Host: scsi4 Channel: 00 Id: 04 Lun: 00 > Vendor: ATA Model: INTEL SSDSA2M080 Rev: 02M3 > Type: Direct-Access ANSI SCSI revision: 05 > " > > Sometimes I am see the following messages that indicate discard is > disabled during runtime: > > Relevant dmesg: > > ... > EXT4-fs (sdw): mounted filesystem with ordered data mode. Opts: nobarrier,discard > EXT4...... > > .... (some time later) > > EXT4-fs warning (device sdw): release_blocks_on_commit:2672: discard not supported, disabling > EXT4-fs warning (device sds): release_blocks_on_commit:2672: discard not supported, disabling > EXT4-fs warning (device sdt): release_blocks_on_commit:2672: discard not supported, disabling > EXT4-fs warning (device sdu): release_blocks_on_commit:2672: discard not supported, disabling > EXT4-fs warning (device sdv): release_blocks_on_commit:2672: discard not supported, disabling Please check whether your ssd works with discard or whether your ssd firmware has the ability to do so. I used an SSDSA2M160(I guess you are using the same type as me except the volume size is 80g, but you have to find it out from intel side) and after I upgraded my firmware to the new version(you can download it from intel site), it supports discard now. Regards, Tao