2008-01-04 02:37:13

by Robert Hancock

[permalink] [raw]
Subject: Re: SATA kernel-buffered read VERY slow (not raid, Promise TX300 card); 2.6.23.1(vanilla)

Linda Walsh wrote:
> Robert Hancock wrote:
>> Linda Walsh wrote:
>>> Alan Cox wrote:
>>>>> rate began falling; at 128k block-reads-at-a-time or larger, it
>>>>> drops below
>>>>> 20MB/s (only on buffered SATA).
>>>> Try disabling NCQ - see if you've got a drive with the 'NCQ = no
>>>> readahead' flaw.
>> http://linux-ata.org/faq.html#ncq
> ---
> When drive initializes, dmesg says it has NCQ (depth 0/32)
> Reading the queue_depth under /sys, shows a queuedepth of "1".

Looks like your controller (or at least the Linux driver) doesn't
actually support NCQ.

>>> 2) Drive Advanced Power Management setting("-B") (write-only):
>>> "HDIO_DRIVE_CMD failed: Input/output error"
>>> 3) Drive Acoustic ("-M"), read = " acoustic = not supported",
>>> write = " HDIO_DRIVE_CMD:ACOUSTIC failed: Input/output error"
>>
>> Not sure about these ones.. Does anything show up in dmesg when you do
>> this?
> ---
> Yes:
> (for "-B", power-management)
> ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
> ata1.00: port_status 0x20200000
> ata1.00: cmd ef/05:fe:00:00:00/00:00:00:00:00/40 tag 0 cdb 0x0 data 0
> res 51/04:fe:00:00:00/00:00:00:00:00/40 Emask 0x1 (device error)
> ata1.00: configured for UDMA/133
> ata1: EH complete
> sd 1:0:0:0: [sdb] 1465149168 512-byte hardware sectors (750156 MB)
> sd 1:0:0:0: [sdb] Write Protect is off
> sd 1:0:0:0: [sdb] Mode Sense: 00 3a 00 00
> sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't
> support DPO or FUA
> ----
> (for "-M" acoustic management):
> ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
> ata1.00: port_status 0x20200000
> ata1.00: cmd ef/42:fe:00:00:00/00:00:00:00:00/40 tag 0 cdb 0x0 data 0
> res 51/04:fe:00:00:00/00:00:00:00:00/40 Emask 0x1 (device error)
> ata1.00: configured for UDMA/133
> ata1: EH complete
> sd 1:0:0:0: [sdb] 1465149168 512-byte hardware sectors (750156 MB)
> sd 1:0:0:0: [sdb] Write Protect is off
> sd 1:0:0:0: [sdb] Mode Sense: 00 3a 00 00
> sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't
> support DPO or FUA

Looks like the drive reports ERR/ABRT (command aborted), meaning it
likely doesn't support those commands.

--
Robert Hancock Saskatoon, SK, Canada
To email, remove "nospam" from [email protected]
Home Page: http://www.roberthancock.com/


2008-01-04 02:43:50

by L A Walsh

[permalink] [raw]
Subject: Re: SATA kernel-buffered read VERY slow (not raid, Promise TX300 card); 2.6.23.1(vanilla)

Robert Hancock wrote:
>
> Looks like the drive reports ERR/ABRT (command aborted), meaning it
> likely doesn't support those commands.
>
---
Except the PATA version of the drive does (same capacity, & other
specs). Seagate would
disable "advanced" features for SATA but leave them for the older
technology? Possible,
but doesn't seem likely.

2008-01-04 02:57:35

by Robert Hancock

[permalink] [raw]
Subject: Re: SATA kernel-buffered read VERY slow (not raid, Promise TX300 card); 2.6.23.1(vanilla)

Linda Walsh wrote:
> Robert Hancock wrote:
>>
>> Looks like the drive reports ERR/ABRT (command aborted), meaning it
>> likely doesn't support those commands.
>>
> ---
> Except the PATA version of the drive does (same capacity, & other
> specs). Seagate would
> disable "advanced" features for SATA but leave them for the older
> technology? Possible,
> but doesn't seem likely.

If this is a Seagate, I believe that they don't have AAM enabled on any
of their newer drives (something about a lawsuit for patent infringement
on that feature, or something). Quite likely they don't support that
power management command, either.

2008-01-06 20:25:27

by L A Walsh

[permalink] [raw]
Subject: Re: SATA kernel-buffered read VERY slow (not raid, Promise TX300 card); 2.6.23.1(vanilla)

Robert Hancock wrote:
>
> If this is a Seagate, I believe that they don't have AAM enabled on
> any of their newer drives (something about a lawsuit for patent
> infringement on that feature, or something). Quite likely they don't
> support that power management command, either.
--
Do you have a source for this -- haven't heard of such a conflict --
besides, doesn't
ATA-7 require some of those functions? Given the trend toward
power-saving and
quieter (also usually less vibration) hard disks, I strongly disbelieve
Seagate would
remove those features -- especially since they are mentioned on
Seagate's drive
information page as being supported features.


2008-01-06 21:31:22

by Mehmet Kemal EROL

[permalink] [raw]
Subject: Re: SATA kernel-buffered read VERY slow (not raid, Promise TX300 card); 2.6.23.1(vanilla)

Linda Walsh:

>
> Seagate would
> remove those features -- especially since they are mentioned on
> Seagate's drive
> information page as being supported features.
>

Since you're there ... you might want to download `Seagate's SeaTools'
and (if) give the hdd's controller a try ... ;)

--
Esenlikle <~> Mehmet Kemal

_/_/ IBM Pollyanna Principle:
_/ Machines should work,
_/ People should think...

2008-01-06 22:47:50

by Alan

[permalink] [raw]
Subject: Re: SATA kernel-buffered read VERY slow (not raid, Promise TX300 card); 2.6.23.1(vanilla)

On Sun, 06 Jan 2008 12:25:10 -0800
Linda Walsh <[email protected]> wrote:

> Robert Hancock wrote:
> >
> > If this is a Seagate, I believe that they don't have AAM enabled on
> > any of their newer drives (something about a lawsuit for patent
> > infringement on that feature, or something). Quite likely they don't
> > support that power management command, either.
> --
> Do you have a source for this -- haven't heard of such a conflict --

There were patent questions around AAM. There are some discussions on the
t13 archive then it goes silent and nothing is ever said again, which I
imagine is when it got lawyered.

> besides, doesn't
> ATA-7 require some of those functions?

No.

Alan