On Monday 09 September 2002 11:30 am, Tom Brinkman wrote:
> On Saturday September 7 2002 08:26 pm, L.V.Gandhi wrote:
> > A few harddisk questions.
> > How to know whether enabling dma is OK for a harddisk?
> > I have two harddisks
> > one Seagate 20 gb ata 100
> > other Samsung 40 gb ata 33
> > What will the effect ata value on data transfer?
> > I have PIII 866 machine with 256 MB sdram.
>
>     Run (as root) 'hdparm -i /dev/hdx' on it (also try 'hdparm -I' to
> read the drive info directly from the drive's firmware), for example
>
> tom# hdparm -i /dev/hdb
>
> /dev/hdb:
>
>  Model=MAXTOR 6L040J2, FwRev=A93.0500, SerialNo=362206526273
>  Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs }
>  RawCHS=16383/16/63, TrkSize=32256, SectSize=21298, ECCbytes=4
>  BuffType=DualPortCache, BuffSize=1819kB, MaxMultSect=16, MultSect=16
>  CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=78177792
>  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 udma6
>
>    ^^^^   this line tells you what pio/dma modes the drive is capable
> of. Whichever mode is preceded by an asterisk is the mode the drive is
> currently set to. While my drive and 80wire cable is udma6 capable, my
> mother board controller is not. Mandrake 8.x and 9.0 recongnize this
> and set the drive to udma5 (ata/100).
>
>  AdvancedPM=no WriteCache=enabled
>  Drive conforms to: ATA/ATAPI-5 T13 1321D revision 1:  1 2 3 4 5
> ~~~~~~~~~~~
>
>    See 'info hdparm'.  If your drive wasn't automagically setup by
> Mandrake to use it's full udma potential, it could signify hardware or
> other issues. You can forcibly set the drive by usin the -d (enable
> dma) and -X switches. For the -X switch (udma mode) add the mode you
> want to try to 64.  For example (udma5, 5+64) a typical line for your
> Seagate ata/100 is      hdparm -d1 -c1 -X69 /dev/hdx
>
>  -d1 enables dma, -c1 enables 32bit, -X69 sets the drive to udma5
>
>   Use -X66, or no -X entry at all for your  Samsung ata/33   EG,
>         hdparm -d1 -c1 /dev/hdx
>
>     If this is successful, and after you've tested it for a while, you
> can make these settings permanent by adding the hdparm line(s) to the
> end of /etc/rc.d/rc.local. It will then have these settings after every
> boot.  You don't have to re-boot tho, you can just run rc.local, EG,
>     <root> # /etc/rc.d/rc.local
>
>     If all's well, your Seagate should get 36 to 40+ MB's/second from
> 'hdparm -t /dev/hdx'. Your Samsung will probly be around 10+ MB/sec.
> ata/33 to /66 is a big jump in performance (more than double), some more
> for ata/100, but little or nothin for ata/133. The increased
> performance is also just for burst speeds, and doesn't neccessarily
> reflect real world gains.  Actual tranfers will be _much_ slower and
> varied.
>
>     Also, I suspect your Samsung is 5400rpm, while your Seagate is more
> likely 7200rpm. RPM's make a big difference, real world difference. So
> does cache (buffer).  Look back to my example for "BuffSize=1819kB".
> The drive is advertised as having a 2mb buffer.  Most all HDD
> manufacturers use some of this for firmware tho (the drive's bios). So
> only 1819K is left.  Still, the more buffer the better. 2MB is fairly
> standard now.
Tom I have a Maxtor 80 gig ATA 133 and would like to set the hdparm to use the 
ATA 133.I tried your settings and set it to use ATA 100 to test it and it is 
outstanding. What setting of -X would I usefor ATA 133? This setting for ATA 
100 of -X69 makes it fly and I can't believe I have missed all this speed. 
Thank you very much.
Mike Graham 

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to