LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-13-2004, 12:52 AM   #1
Ada
LQ Newbie
 
Registered: Aug 2003
Posts: 13

Rep: Reputation: 0
Very slow disk reads? - hdparm


Here's the abridged output of my hdparm -t. I didn't have any disk intensive processes running at the time of this test. If I am seeing correctly, does this mean my Hard Drive 1 is going bad? (Reason I ran this test in the first place was because I was experiencing very SLOW transferring on Hard Drive 1)

Hard drive 1
Code:
[root@localhost sbin]# ./hdparm -t /dev/hda2
/dev/hda2:
 Timing buffered disk reads:    4 MB in  9.38 seconds = 436.67 kB/sec
 Timing buffered disk reads:    4 MB in  9.13 seconds = 448.63 kB/sec
 Timing buffered disk reads:    4 MB in  7.43 seconds = 551.28 kB/sec
 Timing buffered disk reads:    4 MB in  6.75 seconds = 606.81 kB/sec
 Timing buffered disk reads:    4 MB in  7.90 seconds = 518.48 kB/sec
Hard drive 2
Code:
[root@localhost sbin]# ./hdparm -t /dev/hdb1

/dev/hdb1:
 Timing buffered disk reads:  168 MB in  3.02 seconds =  55.63 MB/sec
 Timing buffered disk reads:  168 MB in  3.02 seconds =  55.63 MB/sec
 Timing buffered disk reads:  166 MB in  3.00 seconds =  55.33 MB/sec
 Timing buffered disk reads:  168 MB in  3.01 seconds =  55.81 MB/sec
 Timing buffered disk reads:  166 MB in  3.00 seconds =  55.33 MB/sec
 
Old 09-13-2004, 01:35 AM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
post the output of these:

hdparm -tT /dev/hda

hdparm -tT /dev/hdb



also, what are the settings on the disks??

hdparm /dev/hda

hdparm -i /dev/hda

hdparm /dev/hdb

hdparm -i /dev/hdb
 
Old 09-13-2004, 09:31 AM   #3
Ada
LQ Newbie
 
Registered: Aug 2003
Posts: 13

Original Poster
Rep: Reputation: 0
./hdparm -tT /dev/hda
Code:
/dev/hda:
Timing buffer-cache reads:   588 MB in  2.01 seconds = 292.54 MB/sec
Timing buffered disk reads:    4 MB in  3.07 seconds =   1.30 MB/sec

Timing buffer-cache reads:   584 MB in  2.00 seconds = 292.00 MB/sec
Timing buffered disk reads:    4 MB in  3.17 seconds =   1.26 MB/sec

Timing buffer-cache reads:   584 MB in  2.00 seconds = 292.00 MB/sec
Timing buffered disk reads:   10 MB in  3.08 seconds =   3.25 MB/sec
./hdparm -tT /dev/hdb
Code:
Timing buffer-cache reads:   592 MB in  2.00 seconds = 296.00 MB/sec
Timing buffered disk reads:  162 MB in  3.01 seconds =  53.82 MB/sec

Timing buffer-cache reads:   576 MB in  2.01 seconds = 286.57 MB/sec
Timing buffered disk reads:  166 MB in  3.01 seconds =  55.15 MB/sec

Timing buffer-cache reads:   580 MB in  2.00 seconds = 290.00 MB/sec
Timing buffered disk reads:  164 MB in  3.01 seconds =  54.49 MB/sec
hdparm /dev/hda
Code:
/dev/hda:
 multcount    = 16 (on)
 IO_support   =  3 (32-bit w/sync)
 unmaskirq    =  0 (off)
 using_dma    =  1 (on)
 keepsettings =  0 (off)
 readonly     =  0 (off)
 readahead    =  8 (on)
 geometry     = 4865/255/63, sectors = 78165360, start = 0
hdparm /dev/hdb
Code:
/dev/hdb:
 multcount    = 16 (on)
 IO_support   =  3 (32-bit w/sync)
 unmaskirq    =  0 (off)
 using_dma    =  1 (on)
 keepsettings =  0 (off)
 readonly     =  0 (off)
 readahead    =  8 (on)
 geometry     = 19457/255/63, sectors = 312581808, start = 0
hdparm -i /dev/hda
Code:
/dev/hda:

 Model=WDC WD400BB-75AUA0, FwRev=18.20D18, SerialNo=WD-WMA6R1001357
 Config={ HardSect NotMFM HdSw>15uSec SpinMotCtl Fixed DTR>5Mbs FmtGapReq }
 RawCHS=16383/16/63, TrkSize=57600, SectSize=600, ECCbytes=40
 BuffType=DualPortCache, BuffSize=2048kB, MaxMultSect=16, MultSect=16
 CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=78165360
 IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
 PIO modes:  pio0 pio1 pio2 pio3 pio4
 DMA modes:  mdma0 mdma1 mdma2
 UDMA modes: udma0 udma1 udma2 udma3 udma4 *udma5
 AdvancedPM=no WriteCache=enabled
 Drive conforms to: device does not report version:
hdparm -i /dev/hdb
Code:
/dev/hdb:

 Model=ST3160023A, FwRev=3.06, SerialNo=3JS0NVS1
 Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs RotSpdTol>.5% }
 RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=4
 BuffType=unknown, BuffSize=8192kB, MaxMultSect=16, MultSect=16
 CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=268435455
 IORDY=on/off, tPIO={min:240,w/IORDY:120}, tDMA={min:120,rec:120}
 PIO modes:  pio0 pio1 pio2 pio3 pio4
 DMA modes:  mdma0 mdma1 mdma2
 UDMA modes: udma0 udma1 udma2 udma3 udma4 *udma5
 AdvancedPM=no WriteCache=enabled
 Drive conforms to: ATA/ATAPI-6 T13 1410D revision 2:

Last edited by Ada; 09-13-2004 at 11:08 AM.
 
Old 09-13-2004, 06:15 PM   #4
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
try setting the io_support to 16-bits on /dev/hda and then run the test again:

hdparm -c0 /dev/hda
 
Old 09-13-2004, 10:48 PM   #5
Ada
LQ Newbie
 
Registered: Aug 2003
Posts: 13

Original Poster
Rep: Reputation: 0
./hdparm -tT /dev/hda
Code:
/dev/hda:
 Timing buffer-cache reads:   580 MB in  2.00 seconds = 290.00 MB/sec
 Timing buffered disk reads:   36 MB in  3.06 seconds =  11.76 MB/sec

 Timing buffer-cache reads:   584 MB in  2.00 seconds = 292.00 MB/sec
 Timing buffered disk reads:   34 MB in  3.01 seconds =  11.30 MB/sec

 Timing buffer-cache reads:   584 MB in  2.00 seconds = 292.00 MB/sec
 Timing buffered disk reads:   42 MB in  3.04 seconds =  13.82 MB/sec

 Timing buffer-cache reads:   580 MB in  2.00 seconds = 290.00 MB/sec
 Timing buffered disk reads:   34 MB in  3.07 seconds =  11.07 MB/sec
That's a lot better than before -- this should work for now. Thanks a ton man.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slow ATAPI reads with 2.6.13 Skybolt Slackware 1 10-23-2005 04:56 AM
External Harddrive reads very slow RoaCh Of DisCor Slackware 20 06-29-2005 03:36 PM
CD-Rom reads/copies files slow. RoaCh Of DisCor Linux - Hardware 3 12-08-2004 11:49 AM
slow disk reads: Slackware 10 kernel 2.6.7 nirvanix Slackware 7 06-29-2004 11:26 AM
Nautilus slow-mo (Reads too much) Kujila Linux - Software 1 02-05-2004 02:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration