LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Very slow disk reads? - hdparm (https://www.linuxquestions.org/questions/linux-general-1/very-slow-disk-reads-hdparm-229921/)

Ada 09-13-2004 12:52 AM

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


win32sux 09-13-2004 01:35 AM

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

Ada 09-13-2004 09:31 AM

./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:


win32sux 09-13-2004 06:15 PM

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

hdparm -c0 /dev/hda

Ada 09-13-2004 10:48 PM

./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. :cool:


All times are GMT -5. The time now is 09:38 AM.