[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: hdparm / DMA problems




-----Original Message-----
From: Nyc0n [mailto:nyc0njunkmail@comcast.net] 
Sent: Sunday, August 10, 2003 11:25 AM
To: 'debian-user@lists.debian.org'
Subject: RE: hdparm / DMA problems

Well, here is my script file, the first two drives are connected to the
MB, which doesn't support DMA so I left out the -d1 parameter on those,
the other 4 are connected to my Promise UltraATA133 Tx2 card, which does
support DMA....   

hdparm -q -X34 -u1 -m16 -c1 -a16 /dev/hda
hdparm -q -X34 -u1 -m16 -c1 -a16 /dev/hdb
hdparm -q -X34 -d1 -u1 -m16 -c1 -a16 /dev/hde
hdparm -q -X34 -d1 -u1 -m16 -c1 -a16 /dev/hdf
hdparm -q -X34 -d1 -u1 -m16 -c1 -a16 /dev/hdg
hdparm -q -X34 -d1 -u1 -m16 -c1 -a16 /dev/hdh

Here are what the drives are set to once it boots and uses that script
and the info using the -I parameter....

/dev/hda:

 Model=WDC WD800BB-00CAA1, FwRev=17.07W17, SerialNo=WD-WCA8E4573186
 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=17475/15/63, CurSects=16513875, LBA=yes, LBAsects=156301488
 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 udma0 udma1 udma2 udma3 udma4 udma5
 AdvancedPM=no WriteCache=enabled
 Drive Supports : Reserved : ATA-1 ATA-2 ATA-3 ATA-4 ATA-5

/dev/hda:
 multcount    = 16 (on)
 I/O support  =  1 (32-bit)
 unmaskirq    =  1 (on)
 using_dma    =  0 (off)
 keepsettings =  0 (off)
 nowerr       =  0 (off)
 readonly     =  0 (off)
 readahead    = 16 (on)
 geometry     = 9729/255/63, sectors = 156301488, start = 0
 busstate     =  1 (on)

/dev/hdb:

 Model=WDC WD800BB-75CAA0, FwRev=16.06V16, SerialNo=WD-WMA8E5007714
 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=17475/15/63, CurSects=16513875, LBA=yes, LBAsects=156250000
 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 udma0 udma1 udma2 udma3 udma4 udma5
 AdvancedPM=no WriteCache=enabled
 Drive Supports : Reserved : ATA-1 ATA-2 ATA-3 ATA-4 ATA-5

/dev/hdb:
 multcount    = 16 (on)
 I/O support  =  1 (32-bit)
 unmaskirq    =  1 (on)
 using_dma    =  0 (off)
 keepsettings =  0 (off)
 nowerr       =  0 (off)
 readonly     =  0 (off)
 readahead    = 16 (on)
 geometry     = 10333/240/63, sectors = 156250000, start = 0
 busstate     =  1 (on)

/dev/hde:

 Model=WDC WD800BB-00BSA0, FwRev=12.08C12, SerialNo=WD-WMA6S1260918
 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=156301488
 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 udma0 udma1 udma2 udma3 udma4 udma5
 AdvancedPM=no WriteCache=enabled
 Drive Supports : Reserved : ATA-1 ATA-2 ATA-3 ATA-4 ATA-5

/dev/hde:
 multcount    = 16 (on)
 I/O support  =  1 (32-bit)
 unmaskirq    =  1 (on)
 using_dma    =  1 (on)
 keepsettings =  0 (off)
 nowerr       =  0 (off)
 readonly     =  0 (off)
 readahead    = 16 (on)
 geometry     = 155061/16/63, sectors = 156301488, start = 0
 busstate     =  1 (on)

/dev/hdf:

 Model=WDC WD800AB-60CBA0, FwRev=03.06A03, SerialNo=WD-WMAA51131390
 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=156301488
 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 udma0 udma1 udma2 udma3 udma4 udma5
 AdvancedPM=no WriteCache=enabled
 Drive Supports : Reserved : ATA-1 ATA-2 ATA-3 ATA-4 ATA-5

/dev/hdf:
 multcount    = 16 (on)
 I/O support  =  1 (32-bit)
 unmaskirq    =  1 (on)
 using_dma    =  1 (on)
 keepsettings =  0 (off)
 nowerr       =  0 (off)
 readonly     =  0 (off)
 readahead    = 16 (on)
 geometry     = 155061/16/63, sectors = 156301488, start = 0
 busstate     =  1 (on)

/dev/hdg:

 Model=WDC WD1200JB-75CRA0, FwRev=16.06V16, SerialNo=WD-WMA8C4077081
 Config={ HardSect NotMFM HdSw>15uSec SpinMotCtl Fixed DTR>5Mbs
FmtGapReq }
 RawCHS=16383/16/63, TrkSize=57600, SectSize=600, ECCbytes=40
 BuffType=DualPortCache, BuffSize=8192kB, MaxMultSect=16, MultSect=16
 CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=234375000
 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 udma0 udma1 udma2 udma3 udma4 udma5
 AdvancedPM=no WriteCache=enabled
 Drive Supports : Reserved : ATA-1 ATA-2 ATA-3 ATA-4 ATA-5

/dev/hdg:
 multcount    = 16 (on)
 I/O support  =  1 (32-bit)
 unmaskirq    =  1 (on)
 using_dma    =  1 (on)
 keepsettings =  0 (off)
 nowerr       =  0 (off)
 readonly     =  0 (off)
 readahead    = 16 (on)
 geometry     = 14589/255/63, sectors = 234375000, start = 0
 busstate     =  1 (on)

/dev/hdh:

 Model=WDC WD1200JB-75CRA0, FwRev=16.06V16, SerialNo=WD-WMA8C3737335
 Config={ HardSect NotMFM HdSw>15uSec SpinMotCtl Fixed DTR>5Mbs
FmtGapReq }
 RawCHS=16383/16/63, TrkSize=57600, SectSize=600, ECCbytes=40
 BuffType=DualPortCache, BuffSize=8192kB, MaxMultSect=16, MultSect=16
 CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=234375000
 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 udma0 udma1 udma2 udma3 udma4 udma5
 AdvancedPM=no WriteCache=enabled
 Drive Supports : Reserved : ATA-1 ATA-2 ATA-3 ATA-4 ATA-5

/dev/hdh:
 multcount    = 16 (on)
 I/O support  =  1 (32-bit)
 unmaskirq    =  1 (on)
 using_dma    =  1 (on)
 keepsettings =  0 (off)
 nowerr       =  0 (off)
 readonly     =  0 (off)
 readahead    = 16 (on)
 geometry     = 14589/255/63, sectors = 234375000, start = 0
 busstate     =  1 (on)


Here are some speed tests after it boots with the script.....

/dev/hda:
 Timing buffer-cache reads:   128 MB in  1.35 seconds = 94.81 MB/sec
 Timing buffered disk reads:  64 MB in 14.95 seconds =  4.28 MB/sec

/dev/hdb:
 Timing buffer-cache reads:   128 MB in  1.34 seconds = 95.52 MB/sec
 Timing buffered disk reads:  64 MB in 15.06 seconds =  4.25 MB/sec

/dev/hde:
 Timing buffer-cache reads:   128 MB in  1.34 seconds = 95.52 MB/sec
 Timing buffered disk reads:  64 MB in  9.19 seconds =  6.96 MB/sec

/dev/hdf:
 Timing buffer-cache reads:   128 MB in  1.34 seconds = 95.52 MB/sec
 Timing buffered disk reads:  64 MB in  8.52 seconds =  7.51 MB/sec

/dev/hdg:
 Timing buffer-cache reads:   128 MB in  1.34 seconds = 95.52 MB/sec
 Timing buffered disk reads:  64 MB in  8.55 seconds =  7.49 MB/sec

/dev/hdh:
 Timing buffer-cache reads:   128 MB in  1.34 seconds = 95.52 MB/sec
 Timing buffered disk reads:  64 MB in  8.51 seconds =  7.52 MB/sec

I tested my Compaq laptop as well just to see what it gets, it does 133
MB/sec on the first one, and 13.3 MB/sec on the second!!! My laptop HD
is faster than my desktops!!! That's ridiculous because my laptop HD is
an old 12gig from back in the day! These are brand new drives!  I hope
this info helps...thanks again





-----Original Message-----
From: news [mailto:news@sea.gmane.org] On Behalf Of Andreas Janssen
Sent: Sunday, August 10, 2003 4:27 AM
To: debian-user@lists.debian.org
Subject: Re: hdparm / DMA problems

Hello

Nyc0n (<nyc0njunkmail@comcast.net>) wrote:

> To use hdparm to boost DMA speed, does DMA have to be enabled in the
> kernel?  i have the DMA enabled in the kernel, but some of my drives
> that should use it don't, so I used hdparm to help that out, before
> hdparm I was getting 3megs a second after hdparm I was getting 30megs
> a second, I was like sweet! More than quadrupuled the speed, so I
> added the stuff to the hwtools file In my rcS.d directory (part of the
> hwtools package) and then rebooted...i got the messages durning boot
> that DMA was being turned on etc, then I did the performance test
> again hdparm -Tt /dev/hd* and my speed when down to 8megs a second!

Did you set any other parameters than DMA the first time you used
hdparm? Did you set a specific DMA mode? Which mode does the drive use
if you use hdparm with the initscript?

best regards
        Andreas Janssen

-- 
Andreas Janssen
andreas.janssen@bigfoot.com
PGP-Key-ID: 0xDC801674
Registered Linux User #267976


-- 
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact
listmaster@lists.debian.org





Reply to: