Hi all,
   Let me give you a few pointer in this area.

1) First, test your machine using   hdparm -tT /dev/hda  to see the speed of
buffered and unbuffered reads. do this with hdparm -c 0 -d 0 /dev/hda

2) Use hdparm -c 1 -d 1 /dev/hda to enable both 32-bit IO operation and DMA
operation and then retest.

3) I forget the exact parameter as I'm on a Windows box right now, but I
think hdparm -I /dev/hda will give you a list of modes that your disk drive
can operate in. There are PIO (Programmed IO, MDMA (Multi-word DMA) and UDMA
(Ultra-DMA) modes. The * tells you which one you're using, I believe. If
your drive AND drive controller supports UDMA, then turn it on using

hdparm -c 1 -d 1 -X66 /dev/hda

NOTE: - X66 is UDMA-2, X67 is UDMA-3, X68 is UDMA-4. Read man hdparm.

IMPORTANT!!! Proceed carefully. I have blown away complete disk drives by
turning on the wrong set of parameters. You can cause corruption easily if
you have an older system, so please make sure you have the right info before
you go too far!!! I take no responsibility!!! You can flame me later, but I
won't care. ;-)

   As for how much it can help, my UDMA machines speed up by about a factor
of 10-15x.


   Making the changes stick is different for different distributions, but
I've put it in something like boot.local or rc.init. (I think! Check out the
Redhat email archives, or 1394 Linux Developer's Conference for good info.
It's been posted in both over the last year.) I believe that SuSE's Yast or
Yast2 has the ability to turn it on for you also.

   Putting it in the right place SIGNIFICANTLY speeds up booting by the way.
If you place it early enough, it kicks off quickly and booting really speeds
up.

Have fun CAREFULLY!!

Mark

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Jonathan
Haase
Sent: Friday, July 06, 2001 10:54 AM
To: [EMAIL PROTECTED]
Subject: Re: [Win4Lin-users] Performance solution


On a default Redhat 7.1 install I found that adding
-m 16 to the hdparm command also provided some additional performance gains
:)

On Friday 06 July 2001  8:30 am, Murat Yildizoglu wrote:
> If you do more than one tests (3-4) you will see that the
> performance increse is quite significant. Just put the
>
> hdparm -c 3 /dev/hda
>
> command in your rc.local (see my original mail).
>
> Good luck
>
> Murat
>
> On 6 Jul 2001, at 19:24, Adalberto Manlio Donati wrote:
> > I tested it and it made the access a bit faster (was 64 Mb in 5,44s
> > =11.76 MB/sec is 64Mb in 4,89s=13,09Mb/s)
> >
> > Is it worth?
> >
> > And if it is, how can I say linux to execute hdparm at every start?
> >
> >
> > THank you,
> >
> > Adalberto
> >
> > Il 17:27, gioved� 5 luglio 2001, hai scritto:
> > > On Thursday 05 July 2001 12:45 pm, Bill Gurley may or may not have
written:
> > > > Note especially that last sentence.  Most of us are using an
> > > > EIDE interface built into the motherboard, so I don't see
> > > > how this would have any effect.  I haven't tried it;  maybe
> > > > I'm wrong?  The thing to do would be to run a benchmark
> > > > utility before and after.
> > >
> > > hdparm -t /dev/hda
> > >
> > > before and after for quick benchmarks.
> > >
> > > http://plug.twuug.org/need_speed.shtml
> > >
> > > Hoyt
> > > _______________________________________________
> > > Win4Lin-users mailing list
> > > [EMAIL PROTECTED]
> > > https://lists.netraverse.com/mailman/listinfo/win4lin-users
> >
> > _______________________________________________
> > Win4Lin-users mailing list
> > [EMAIL PROTECTED]
> > https://lists.netraverse.com/mailman/listinfo/win4lin-users

--
Jonathan L. Haase
[EMAIL PROTECTED]
Programmer/Technician
Network Operations Center
I-Land Internet Services
_______________________________________________
Win4Lin-users mailing list
[EMAIL PROTECTED]
https://lists.netraverse.com/mailman/listinfo/win4lin-users

_______________________________________________
Win4Lin-users mailing list
[EMAIL PROTECTED]
https://lists.netraverse.com/mailman/listinfo/win4lin-users

Reply via email to