LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 05-18-2008, 05:19 PM   #1
newtovanilla
Member
 
Registered: Apr 2008
Posts: 267

Rep: Reputation: 30
Question 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?

Last edited by newtovanilla; 05-18-2008 at 05:23 PM.
 
Old 05-18-2008, 06:23 PM   #2
lambchops468
Member
 
Registered: Mar 2007
Location: New Jersey, USA
Distribution: Archlinux
Posts: 165

Rep: Reputation: 30
Quote:
Originally Posted by newtovanilla View Post
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 View Post
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 View Post
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.

Last edited by lambchops468; 05-18-2008 at 06:25 PM.
 
Old 05-18-2008, 06:35 PM   #3
newtovanilla
Member
 
Registered: Apr 2008
Posts: 267

Original Poster
Rep: Reputation: 30
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

Last edited by newtovanilla; 05-18-2008 at 07:13 PM.
 
Old 05-18-2008, 08:32 PM   #4
lambchops468
Member
 
Registered: Mar 2007
Location: New Jersey, USA
Distribution: Archlinux
Posts: 165

Rep: Reputation: 30
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)
 
Old 05-18-2008, 09:47 PM   #5
newtovanilla
Member
 
Registered: Apr 2008
Posts: 267

Original Poster
Rep: Reputation: 30
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.

Last edited by newtovanilla; 05-18-2008 at 10:09 PM.
 
Old 05-19-2008, 02:29 PM   #6
lambchops468
Member
 
Registered: Mar 2007
Location: New Jersey, USA
Distribution: Archlinux
Posts: 165

Rep: Reputation: 30
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?
 
Old 05-19-2008, 02:44 PM   #7
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian 4.0 Etch
Posts: 1,349

Rep: Reputation: 49
Quote:
Originally Posted by newtovanilla View Post
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.
 
  


Reply

Tags
hdparm


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
problems with ata133 controller card mindsgoneawol Linux - Hardware 1 08-21-2006 04:16 PM
Ata133 doralsoral Linux - Hardware 3 02-28-2005 08:01 PM
Maxtor HDD: ATA133 but running at 33! tek1024 Linux - Hardware 8 10-08-2004 01:04 PM
install PCI ATA133 card problem veiver Linux - Newbie 6 05-30-2003 09:58 PM
Ata133 Orion224 General 1 05-22-2002 01:59 PM


All times are GMT -5. The time now is 02:27 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration