From owner-freebsd-questions@FreeBSD.ORG Sat Nov 5 22:28:22 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A54EC16A41F for ; Sat, 5 Nov 2005 22:28:22 +0000 (GMT) (envelope-from gayn.winters@bristolsystems.com) Received: from bristolsystems.com (h-68-167-239-98.lsanca54.covad.net [68.167.239.98]) by mx1.FreeBSD.org (Postfix) with ESMTP id 534E843D46 for ; Sat, 5 Nov 2005 22:28:21 +0000 (GMT) (envelope-from gayn.winters@bristolsystems.com) Received: from workdog ([192.168.1.201]) by bristolsystems.com (8.11.6/8.11.6) with ESMTP id jA5MSLn03480; Sat, 5 Nov 2005 14:28:21 -0800 From: "Gayn Winters" To: "'Peter Clutton'" , "'Steve Bertrand'" Date: Sat, 5 Nov 2005 14:28:11 -0800 Message-ID: <011e01c5e258$37f1cc80$c901a8c0@workdog> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4024 In-Reply-To: <57416b300511031430p72165a8av386da275c1db748e@mail.gmail.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Importance: Normal Cc: freebsd-questions@freebsd.org Subject: RE: gmirror on 1 or 2 IDE cables X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gayn.winters@bristolsystems.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Nov 2005 22:28:22 -0000 > -----Original Message----- > From: Peter Clutton [mailto:peterclutton@gmail.com] > Sent: Thursday, November 03, 2005 2:30 PM > To: Steve Bertrand > Cc: gayn.winters@bristolsystems.com; freebsd-questions@freebsd.org > Subject: Re: gmirror on 1 or 2 IDE cables > > > On 11/4/05, Steve Bertrand 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