LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ATA133 hdparm errors? Is speed slow for ATA133? (https://www.linuxquestions.org/questions/linux-newbie-8/ata133-hdparm-errors-is-speed-slow-for-ata133-643112/)

newtovanilla 05-18-2008 05:19 PM

ATA133 hdparm errors? Is speed slow for ATA133?
 
ATA133 Maxtor, Linux 2.6.22

Quote:

(parted) p
Model: Maxtor 6 Y080P0 (scsi)
Disk /dev/sda: 33.8GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
I read a post that used the command "hdparm" when I was searching LQ for an answer to how to solve the 33GB limit for the 80GB Maxtor drive, http://www.linuxquestions.org/questi...apacity+maxtor

I get these errors for hdparm:

Quote:

# hdparm
hdparm - get/set hard disk parameters - version v7.7
Usage: hdparm [options] [device] ..

hdparm -t /dev/sda
/dev/sda:
Timing buffered disk reads: 70 MB in 3.06 seconds = 22.88 MB/sec

# hdparm -i /dev/sda
/dev/sda:
HDIO_GET_IDENTITY failed: Invalid argument

# hdparm -I /dev/sda
/dev/sda:
HDIO_DRIVE_CMD(identify) failed: Invalid argument

# hdparm -g /dev/sda
/dev/sda:
geometry = 4111/255/63, sectors = 66055244, start = 0

# hdparm -d1 /dev/sda
/dev/sda:
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Invalid argument
From http://tldp.org/HOWTO/SCSI-2.4-HOWTO/scsibus.html I read that ATA133 is supposed to get 133Mb/s
Quote:

"ATA 133. The ATA standards used by IDE devices have also been marching through the adjectives (e.g. fast and ultra) and the numbers (e.g. 2, 33, 66, 100 and 133). The most recent addition is ATA 133 which supports burst rates of 133 MB/sec and up to 2 devices per bus."
I do not understand why the "hdparm -t" option only gives 22MB/s when ATA133 is supposed to get 133MB/s?

lambchops468 05-18-2008 06:23 PM

Quote:

Originally Posted by newtovanilla (Post 3157348)
ATA133 Maxtor, Linux 2.6.22



I read a post that used the command "hdparm" when I was searching LQ for an answer to how to solve the 33GB limit for the 80GB Maxtor drive, http://www.linuxquestions.org/questi...apacity+maxtor

I don't think that url has what you are looking for, it seems to me that it's about speed, and its from 2000.
I think your bios has the 33GB limit.

Quote:

Originally Posted by newtovanilla (Post 3157348)
I get these errors for hdparm:

Yes, since the switch over to the libata driver for SCSI/SATA/EIDE devices, hdparm doesn't work for a lot of things (they're working on it!)

Quote:

Originally Posted by newtovanilla (Post 3157348)
From http://tldp.org/HOWTO/SCSI-2.4-HOWTO/scsibus.html I read that ATA133 is supposed to get 133Mb/s I do not understand why the "hdparm -t" option only gives 22MB/s when ATA133 is supposed to get 133MB/s?

The link between the drive is 133 MB/s. This does not mean that your drive can actually transfer at 133 MB/s from the platters to the IDE controller. If you had a drive that could do that kind of speed, you would have either an SSD or very fast server hard drive.

The link speed comes in handy when getting data from the drive's buffer which is much faster.

newtovanilla 05-18-2008 06:35 PM

Thank you for the comment. I ran two timing tests for the harddrive, right after each other. They are different. The harddrive is a Maxtor 80G ATA133. Is it really that slow, max of 22MB/s? It is not missing drivers, and that is why it is slow?

Quote:

/dev/sda:
Timing cached reads: 1150 MB in 2.00 seconds = 575.12 MB/sec
Timing buffered disk reads: 28 MB in 3.01 seconds = 9.29 MB/sec

/dev/sda:
Timing cached reads: 1018 MB in 2.00 seconds = 508.53 MB/sec
Timing buffered disk reads: 66 MB in 3.04 seconds = 21.68 MB/sec
edit: Timing O_DIRECT disk reads: 184 MB in 3.01 seconds = 61.04 MB/sec

lambchops468 05-18-2008 08:32 PM

I looked up your hard drive and it is 7200 RPM, (I think) longitude recording.

22.2 is slow.
if you are getting 61.04, that is very good.

(my old pentium III server gets 14 or so, and my laptop gets 45)

newtovanilla 05-18-2008 09:47 PM

ATA133 Timing?
 
I did not get the RPM data for the Maxtor, because the errors from hdparm! From the link in the post question on LQ, the timing test data that they typically reported was not the "Timing O_DIRECT disk" values but the "Timing buffered disk reads" values. For the Timing buffered reads I get 22MB/s. I do not know what the difference between these times are.

How can I find out if there is some setting that I need to change to get ATA133 speed? For an ATA133 drive, what value should I be getting for:
Timing buffered disk reads: 66 MB in 3.04 seconds = 21.68 MB/sec ?

Quote:

I don't think that url has what you are looking for, it seems to me that it's about speed, and its from 2000.
You are right! It came up when I searched for a solution in LQ. The Maxtor harddrive is from 2003, and that url has posts from 2006, before I posted to it!
Quote:

I looked up your hard drive and it is 7200 RPM
Where did you find it? The Maxtor web www.maxtor.com did not have a search. I tried Google, and found people who use it, but nothing from Maxtor.

lambchops468 05-19-2008 02:29 PM

Maxtor is owned by Seagate now.
(All maxtor harddrives are also made by Seagate and are rebranded).
http://www.seagate.com/ww/v/index.js...eqPage=Support

I don't know the difference.

How did you get Timing O_DIRECT disk?

IsaacKuo 05-19-2008 02:44 PM

Quote:

Originally Posted by newtovanilla (Post 3157487)
How can I find out if there is some setting that I need to change to get ATA133 speed? For an ATA133 drive, what value should I be getting for:
Timing buffered disk reads: 66 MB in 3.04 seconds = 21.68 MB/sec ?

There is nothing in particular you need to do in order to get ATA133 speed. There is no ATA133 3.5" hard drive which comes even vaguely close to the limits. (There are some really fast SCSI and SATA drives, but none of them came in ATA133 versions.)

As for what numbers you should be getting--neither 66MB and 3 seconds are really big/long enough for an accurate test. Try something more like 30 seconds for a proper sustained rate test.

That said, 22 megabytes per second does sound slow, unless your hard drive is a bit old. Speeds of 30-40 megabytes per second would be more typical for an 80gig 3.5" hard drive. One thing which can affect speed is whether or not DMA is turned on. Probably, it's turned on though; it would be turned on by default.


All times are GMT -5. The time now is 11:12 AM.