From: Keith Mannthey Subject: Re: Quick EXT4 discard question Date: Fri, 22 Apr 2011 09:08:20 -0700 Message-ID: <1303488500.1389.139.camel@keith-laptop> References: <1303433101.1389.132.camel@keith-laptop> <4DB0E7AA.6070007@tao.ma> <1303440294.1389.136.camel@keith-laptop> <4DB0EDB1.2070506@tao.ma> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Cc: Tao Ma , linux-ext4@vger.kernel.org To: Lukas Czerner Return-path: Received: from e5.ny.us.ibm.com ([32.97.182.145]:51243 "EHLO e5.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756048Ab1DVQIW (ORCPT ); Fri, 22 Apr 2011 12:08:22 -0400 Received: from d01relay01.pok.ibm.com (d01relay01.pok.ibm.com [9.56.227.233]) by e5.ny.us.ibm.com (8.14.4/8.13.1) with ESMTP id p3MFg9fR019851 for ; Fri, 22 Apr 2011 11:42:09 -0400 Received: from d01av03.pok.ibm.com (d01av03.pok.ibm.com [9.56.224.217]) by d01relay01.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p3MG8Mf1039664 for ; Fri, 22 Apr 2011 12:08:22 -0400 Received: from d01av03.pok.ibm.com (loopback [127.0.0.1]) by d01av03.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p3MC86NE013148 for ; Fri, 22 Apr 2011 09:08:07 -0300 In-Reply-To: Sender: linux-ext4-owner@vger.kernel.org List-ID: On Fri, 2011-04-22 at 09:44 +0200, Lukas Czerner wrote: > On Fri, 22 Apr 2011, Tao Ma wrote: > > > On 04/22/2011 10:44 AM, Keith Mannthey wrote: > > > On Fri, 2011-04-22 at 10:27 +0800, Tao Ma wrote: > > >> 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. > > > > > > > > > Firmware is up to date as of a few weeks ago. It is 02M3 which still > > > looks to be the current version. > > ok... > > So please check whether your device supports discard or not. > > Intel has a tool named Intel SSD Toolbox, and it can check the status of > > your ssd, but the bad thing is that it seems to only have a windows > > version... > > Actually you can query that with hdparm -I /path/to/the/device and you > should see something like > > * Data Set Management TRIM supported > > in the output. I see * Data Set Management TRIM supported ... * Deterministic read after TRIM set on my devices. Thanks, Keith > Thanks! > -Lukas > > > > > Regards, > > Tao > > -- > > To unsubscribe from this list: send the line "unsubscribe linux-ext4" in > > the body of a message to majordomo@vger.kernel.org > > More majordomo info at http://vger.kernel.org/majordomo-info.html > >