Also, in addition to the DMA setting, the -m16 option is "Get/set
sector count for multiple sector I/O on the drive.".  According to the
man page setting this can decrease overhead due to disk I/O by 30-50%.
Data throughput may also be increased by 5-50%.  A setting of 16 or 32
should be OK for modern hard drives.

Be careful with this flag when using older hard drives.  More details
can be found in the man page.

On Mon, 2005-06-27 at 16:02 -0600, Gustin Johnson wrote:
> Check to see that DMA has been enabled on the hardrive.  running
> hdparm /dev/hda should return something like:
> $ hdparm /dev/hda
> 
> /dev/hda:
>  multcount    =  0 (off)
>  IO_support   =  1 (32-bit)
>  unmaskirq    =  1 (on)
>  using_dma    =  1 (on)
>  keepsettings =  0 (off)
>  readonly     =  0 (off)
>  readahead    = 256 (on)
>  geometry     = 29651/16/63, sectors = 15303075840, start = 0
> 
> Debian has been very conservative on hard drive settings.  On relatively
> modern hardware, hdparm -d1 -c3 /dev/hda should be safe
> 
> On most of my drives I use hdparm -c3 -u1 -d1 -m16 -S36 /dev/hdx
> 
> On Mon, 2005-06-27 at 13:56 -0600, Roy Souther wrote:
> > Creating my own distribution for my own servers, based on Debian. When
> > it comes time to create the raid partions using mdadm I do so in the
> > way pointed out to me on all the web sites I have found that talk
> > about it.
> > 
> > # My install script does this
> > echo -en "y\r" | mdadm --create "/dev/md0" --level 1 --raid-devices=2
> > "/dev/hda5" "/dev/hdc5
> > watch "cat /proc/mdstat"
> > 
> > The problem is that this is very very slow. A 40GB partition has be
> > going all morning (4 hours) so far and it is only up to about 80%
> > done.
> > 
> > If I use Mandrake to do an install with the same partitions the
> > section where the installer builds the RAID only takes about 30
> > minutes to do the same job.
> > 
> > Any ideas how I could make the mdadm create new blank RAID partitions
> > faster?
> > 
> > 
> > Roy Souther
> > www.SiliconTao.com
> > Let Open Source help your business move beyond.
> > 
> > For security this message is digitally authenticated by GnuPG.
> > 
> > 
> > 
> > 
> > _______________________________________________
> > clug-talk mailing list
> > [email protected]
> > http://clug.ca/mailman/listinfo/clug-talk_clug.ca
> > Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
> > **Please remove these lines when replying
> _______________________________________________
> clug-talk mailing list
> [email protected]
> http://clug.ca/mailman/listinfo/clug-talk_clug.ca
> Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
> **Please remove these lines when replying

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
clug-talk mailing list
[email protected]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca
Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
**Please remove these lines when replying

Reply via email to