* Quick EXT4 discard question
@ 2011-04-22 0:45 Keith Mannthey
2011-04-22 2:27 ` Tao Ma
2011-04-22 19:59 ` Greg Freemyer
0 siblings, 2 replies; 10+ messages in thread
From: Keith Mannthey @ 2011-04-22 0:45 UTC (permalink / raw)
To: linux-ext4
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
I am new to SSDs and discard is there something else I need to do to
make these drives work as expected?
Thanks,
Keith Mannthey
LTC Local Filesystem
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Quick EXT4 discard question
2011-04-22 0:45 Quick EXT4 discard question Keith Mannthey
@ 2011-04-22 2:27 ` Tao Ma
2011-04-22 2:44 ` Keith Mannthey
2011-04-22 19:59 ` Greg Freemyer
1 sibling, 1 reply; 10+ messages in thread
From: Tao Ma @ 2011-04-22 2:27 UTC (permalink / raw)
To: Keith Mannthey; +Cc: linux-ext4
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
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Quick EXT4 discard question
2011-04-22 2:27 ` Tao Ma
@ 2011-04-22 2:44 ` Keith Mannthey
2011-04-22 2:53 ` Tao Ma
0 siblings, 1 reply; 10+ messages in thread
From: Keith Mannthey @ 2011-04-22 2:44 UTC (permalink / raw)
To: Tao Ma; +Cc: linux-ext4
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.
Thanks,
Keith
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Quick EXT4 discard question
2011-04-22 2:44 ` Keith Mannthey
@ 2011-04-22 2:53 ` Tao Ma
2011-04-22 7:44 ` Lukas Czerner
0 siblings, 1 reply; 10+ messages in thread
From: Tao Ma @ 2011-04-22 2:53 UTC (permalink / raw)
To: Keith Mannthey; +Cc: linux-ext4
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...
Regards,
Tao
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Quick EXT4 discard question
2011-04-22 2:53 ` Tao Ma
@ 2011-04-22 7:44 ` Lukas Czerner
2011-04-22 8:31 ` Tao Ma
2011-04-22 16:08 ` Keith Mannthey
0 siblings, 2 replies; 10+ messages in thread
From: Lukas Czerner @ 2011-04-22 7:44 UTC (permalink / raw)
To: Tao Ma; +Cc: Keith Mannthey, linux-ext4
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.
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
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Quick EXT4 discard question
2011-04-22 7:44 ` Lukas Czerner
@ 2011-04-22 8:31 ` Tao Ma
2011-04-22 16:08 ` Keith Mannthey
1 sibling, 0 replies; 10+ messages in thread
From: Tao Ma @ 2011-04-22 8:31 UTC (permalink / raw)
To: Lukas Czerner; +Cc: Keith Mannthey, linux-ext4
On 04/22/2011 03:44 PM, 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.
oh, yes, I just tried the latest hdparm(9.37) and it does support trim
detection now! Thanks for the hint.
So I am still living in the rhel5 period. :(
Regards,
Tao
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Quick EXT4 discard question
2011-04-22 7:44 ` Lukas Czerner
2011-04-22 8:31 ` Tao Ma
@ 2011-04-22 16:08 ` Keith Mannthey
2011-04-23 14:23 ` Eric Sandeen
1 sibling, 1 reply; 10+ messages in thread
From: Keith Mannthey @ 2011-04-22 16:08 UTC (permalink / raw)
To: Lukas Czerner; +Cc: Tao Ma, linux-ext4
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
> >
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Quick EXT4 discard question
2011-04-22 16:08 ` Keith Mannthey
@ 2011-04-23 14:23 ` Eric Sandeen
0 siblings, 0 replies; 10+ messages in thread
From: Eric Sandeen @ 2011-04-23 14:23 UTC (permalink / raw)
To: Keith Mannthey; +Cc: Lukas Czerner, Tao Ma, linux-ext4
On 4/22/11 11:08 AM, Keith Mannthey wrote:
> On Fri, 2011-04-22 at 09:44 +0200, Lukas Czerner wrote:
...
>> 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
So the way you get your message is:
ret = ext4_issue_discard(sb, entry->group,
entry->start_blk, entry->count);
if (unlikely(ret == -EOPNOTSUPP)) {
ext4_warning(sb, "discard not supported, "
"disabling");
clear_opt(sb, DISCARD);
}
which returns the error message from the calls below it:
ext4_issue_discard
sb_issue_discard
blkdev_issue_discard
and EOPNOTSUPP is pretty clear... I wonder if it could be that a discard request
on a particular boundary is causing it to be rejected?
-Eric
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Quick EXT4 discard question
2011-04-22 0:45 Quick EXT4 discard question Keith Mannthey
2011-04-22 2:27 ` Tao Ma
@ 2011-04-22 19:59 ` Greg Freemyer
1 sibling, 0 replies; 10+ messages in thread
From: Greg Freemyer @ 2011-04-22 19:59 UTC (permalink / raw)
To: Keith Mannthey; +Cc: linux-ext4
On Thu, Apr 21, 2011 at 8:45 PM, Keith Mannthey <kmannth@us.ibm.com> wrote:
<snip>
> I am new to SSDs and discard is there something else I need to do to
> make these drives work as expected?
Keith,
If you're new to SSD trim, you might want to read this SUSE wiki page.
http://en.opensuse.org/SDB:SSD_discard_%28trim%29_support
(I wrote most of it, but I tried to keep it factual.)
For reference, it talks some about opensuse 11.2 and 11.3 but you can
just think of those as older kernels. (11.4 just came out and has a
2.6.37 kernel.)
Greg
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Quick EXT4 discard question
@ 2011-04-23 6:41 Girish Shilamkar
0 siblings, 0 replies; 10+ messages in thread
From: Girish Shilamkar @ 2011-04-23 6:41 UTC (permalink / raw)
To: greg.freemyer, linux-ext4
----- greg.freemyer@gmail.com wrote:
> On Thu, Apr 21, 2011 at 8:45 PM, Keith Mannthey <kmannth@us.ibm.com>
> wrote:
> <snip>
> > I am new to SSDs and discard is there something else I need to do
> to
> > make these drives work as expected?
>
> Keith,
>
> If you're new to SSD trim, you might want to read this SUSE wiki
> page.
>
> http://en.opensuse.org/SDB:SSD_discard_%28trim%29_support
>
> (I wrote most of it, but I tried to keep it factual.)
>
> For reference, it talks some about opensuse 11.2 and 11.3 but you can
> just think of those as older kernels. (11.4 just came out and has a
> 2.6.37 kernel.)
>
> Greg
> --
> 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
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2011-04-23 14:23 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-22 0:45 Quick EXT4 discard question Keith Mannthey
2011-04-22 2:27 ` Tao Ma
2011-04-22 2:44 ` Keith Mannthey
2011-04-22 2:53 ` Tao Ma
2011-04-22 7:44 ` Lukas Czerner
2011-04-22 8:31 ` Tao Ma
2011-04-22 16:08 ` Keith Mannthey
2011-04-23 14:23 ` Eric Sandeen
2011-04-22 19:59 ` Greg Freemyer
-- strict thread matches above, loose matches on Subject: below --
2011-04-23 6:41 Girish Shilamkar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).