RE: gmirror on 1 or 2 IDE cables

2005-11-05 Thread Gayn Winters
 -Original Message-
 From: Peter Clutton [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, November 03, 2005 2:30 PM
 To: Steve Bertrand
 Cc: [EMAIL PROTECTED]; freebsd-questions@freebsd.org
 Subject: Re: gmirror on 1 or 2 IDE cables
 
 
 On 11/4/05, Steve Bertrand [EMAIL PROTECTED] wrote:
 
   Using gmirror to mirror two identical drives, how much of a
   performance hit is it to have
  
   1.  Both drives on one IDE cable?
   Compared to:
   2.  One drive primary on one cable and one secondary on the
   other cable?
   Compared to:
   3.  Both drives primary but on separate IDE cables?
 
  My understanding that only a single drive on each IDE channel can be
  accessed at any one time.
 
  Thus, if you put one drive on one channel, and the other 
 drive on the
  second channel, they can be accessed simultaneously. The 
 location on the
  cable(s) does not matter,
 
 That is correct about the two channels, one should be on each. However
 it does make a difference as to primary or secondary, if you have
 other drives attached (such as cdrom). Try putting the cdrom as
 primary, then secondary, and have a watch to discover the difference.
 This might not be noticed with a normal secondary hard drive, as you
 may not write to it much. However in a mirror the second is always
 written to, and you will notice the difference if you are also using
 the cdrom
 
Apologies to everyone, but I'm still a little confused...

If the hard drive has a decent buffer, then doesn't (or at least
couldn't) a write free up the IDE channel right after the buffer fills
and before the buffer empties and the write is complete?  In which case,
can't a second write to the other drive on the channel overlap the first
disk writing out its buffer?  At the very least couldn't gmirror have
the smarts to do this by interleaving the main and mirrored writes
appropriately (given the size of the buffers)?  Of course, mirroring
should go faster if the mirror is on a different channel.

As for a write to a secondary drive being slower than the same write to
a primary drive... Why should that be?  Doesn't the write data contain
the address (0=primary or 1=secondary) on the IDE channel of the drive
to which the write is going?  If this is the case, then why should one
be slower than the other?

Thanks for the help!

-gayn

Bristol Systems Inc.
714/532-6776
www.bristolsystems.com 


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: gmirror on 1 or 2 IDE cables

2005-11-05 Thread Gayn Winters
 -Original Message-
 From: Ted Mittelstaedt [mailto:[EMAIL PROTECTED] 
 Sent: Friday, November 04, 2005 1:26 PM
 To: Steve Bertrand; [EMAIL PROTECTED]; 
 freebsd-questions@freebsd.org
 Subject: RE: gmirror on 1 or 2 IDE cables
 
 
 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] Behalf Of 
 Steve Bertrand
 Sent: Thursday, November 03, 2005 7:28 AM
 To: [EMAIL PROTECTED]; freebsd-questions@freebsd.org
 Subject: RE: gmirror on 1 or 2 IDE cables
 
 
 
  Using gmirror to mirror two identical drives, how much of a 
  performance hit is it to have
  
  1.  Both drives on one IDE cable?
  Compared to:
  2.  One drive primary on one cable and one secondary on the 
  other cable?
  Compared to:
  3.  Both drives primary but on separate IDE cables?
 
 My understanding that only a single drive on each IDE channel can be
 accessed at any one time.
 
 
 Which may or may not matter depending on what he's doing.  Are we
 talking mainly reads or writes here?
 
 Ted
 
I was mostly thinking about writes; however, now that you raise the
issue, can gmirror interleave reads from the two mirrored disks?

-gayn



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: gmirror on 1 or 2 IDE cables

2005-11-04 Thread Peter Clutton
On 11/4/05, Steve Bertrand [EMAIL PROTECTED] wrote:

  Using gmirror to mirror two identical drives, how much of a
  performance hit is it to have
 
  1.  Both drives on one IDE cable?
  Compared to:
  2.  One drive primary on one cable and one secondary on the
  other cable?
  Compared to:
  3.  Both drives primary but on separate IDE cables?

 My understanding that only a single drive on each IDE channel can be
 accessed at any one time.

 Thus, if you put one drive on one channel, and the other drive on the
 second channel, they can be accessed simultaneously. The location on the
 cable(s) does not matter,

That is correct about the two channels, one should be on each. However
it does make a difference as to primary or secondary, if you have
other drives attached (such as cdrom). Try putting the cdrom as
primary, then secondary, and have a watch to discover the difference.
This might not be noticed with a normal secondary hard drive, as you
may not write to it much. However in a mirror the second is always
written to, and you will notice the difference if you are also using
the cdrom
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: gmirror on 1 or 2 IDE cables

2005-11-04 Thread Ted Mittelstaedt


-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] Behalf Of Steve Bertrand
Sent: Thursday, November 03, 2005 7:28 AM
To: [EMAIL PROTECTED]; freebsd-questions@freebsd.org
Subject: RE: gmirror on 1 or 2 IDE cables



 Using gmirror to mirror two identical drives, how much of a 
 performance hit is it to have
 
 1.  Both drives on one IDE cable?
 Compared to:
 2.  One drive primary on one cable and one secondary on the 
 other cable?
 Compared to:
 3.  Both drives primary but on separate IDE cables?

My understanding that only a single drive on each IDE channel can be
accessed at any one time.


Which may or may not matter depending on what he's doing.  Are we
talking mainly reads or writes here?

Ted
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


gmirror on 1 or 2 IDE cables

2005-11-03 Thread Gayn Winters
Using gmirror to mirror two identical drives, how much of a performance
hit is it to have

1.  Both drives on one IDE cable?
Compared to:
2.  One drive primary on one cable and one secondary on the other cable?
Compared to:
3.  Both drives primary but on separate IDE cables?

Thanks,

-gayn

Bristol Systems Inc.
714/532-6776
www.bristolsystems.com 


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: gmirror on 1 or 2 IDE cables

2005-11-03 Thread Steve Bertrand

 Using gmirror to mirror two identical drives, how much of a 
 performance hit is it to have
 
 1.  Both drives on one IDE cable?
 Compared to:
 2.  One drive primary on one cable and one secondary on the 
 other cable?
 Compared to:
 3.  Both drives primary but on separate IDE cables?

My understanding that only a single drive on each IDE channel can be
accessed at any one time.

Thus, if you put one drive on one channel, and the other drive on the
second channel, they can be accessed simultaneously. The location on the
cable(s) does not matter, but I've always got accustomed to putting my
disk drives as primary, which FBSD would see them as ad0 and ad2
respectively.

Steve

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]