From: "John A. Sullivan III" Subject: Re: Shell Scripts or Arbitrary Priority Callouts? Date: Fri, 27 Mar 2009 05:14:56 -0400 Message-ID: <1238145296.6574.77.camel@jaspav.missionsit.net.missionsit.net> References: <1237897305.6560.26.camel@jaspav.missionsit.net.missionsit.net> <20090324150104.GO5528@edu.joroinen.fi> <1237909400.6560.80.camel@jaspav.missionsit.net.missionsit.net> <20090324163603.GQ5528@edu.joroinen.fi> <1237915811.6560.135.camel@jaspav.missionsit.net.missionsit.net> <20090324181735.GR5528@edu.joroinen.fi> <1237952460.6560.204.camel@jaspav.missionsit.net.missionsit.net> <20090325155207.GE24960@edu.joroinen.fi> <1237998092.6560.233.camel@jaspav.missionsit.net.missionsit.net> <1238137415.6574.48.camel@jaspav.missionsit.net.missionsit.net> <20090327090200.GP24960@edu.joroinen.fi> Reply-To: device-mapper development Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20090327090200.GP24960@edu.joroinen.fi> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: device-mapper development Cc: "Ross S. W. Walker" List-Id: dm-devel.ids On Fri, 2009-03-27 at 11:02 +0200, Pasi K=C3=A4rkk=C3=A4inen wrote: > On Fri, Mar 27, 2009 at 03:03:35AM -0400, John A. Sullivan III wrote: > > > >=20 > > > > > The once piece which is still a mystery is why using four targe= ts on > > > > > four separate interfaces striped with dmadm RAID0 does not prod= uce an > > > > > aggregate of slightly less than four times the IOPS of a single= target > > > > > on a single interface. This would not seem to be the out of ord= er SCSI > > > > > command problem of multipath. One of life's great mysteries ye= t to be > > > > > revealed. Thanks again, all - John > > > >=20 > > > > Hmm.. maybe the out-of-order problem happens at the target? It ge= ts IO > > > > requests to nearby offsets from 4 different sessions and there's = some kind > > > > of locking or so going on?=20 > > > Ross pointed out a flaw in my test methodology. By running one I/O= at a > > > time, it was literally doing that - not one full RAID0 I/O but one = disk > > > I/O apparently. He said to truly test it, I would need to run as m= any > > > concurrent I/Os as there were disks in the array. Thanks - John > > > > > > Argh!!! This turned out to be alarmingly untrue. This time, we were > > doing some light testing on a different server with two bonded > > interfaces in a single bridge (KVM environment) going to the same SAM= we > > used in our four port test. > >=20 >=20 > Is the SAN also using bonded interfaces? No. >=20 > > For kicks and to prove to ourselves that RAID0 scaled with multiple I= /O > > as opposed to limiting the test to only single I/O, we tried some act= ual > > file transfers to the SAN mounted in sync mode. We found concurrentl= y > > transferring two identical files to the RAID0 array composed of two > > iSCSI attached drives was 57% slower than concurrently transferring t= he > > files to the drives separately. In other words, copying file1 and fil= e2 > > concurrently to RAID0 took 57% longer than concurrently copying file1= to > > disk1 and file2 to disk2. > >=20 >=20 > Hmm.. I wonder why that happens.. >=20 > > We then took a little different approach and used disktest. We ran t= wo > > concurrent sessions with -K1. In one case, we ran both sessions to t= he > > 2 disk RAID0 array. The performance was significantly less again, th= an > > running the two concurrent tests against two separate iSCSI disks. J= ust > > to be clear, these were the same disks as composed the array, just no= t > > grouped in the array. > >=20 >=20 > There has to be some logical explanation to this..=20 >=20 > > Even more alarmingly, we did the same test using multipath multibus, > > i.e., two concurrent disktest with -K1 (both reads and rights, all > > sequential with 4K block sizes). The first session completely starve= d > > the second. The first one continued at only slightly reduced speed > > while the second one (kicked off just as fast as we could hit the ent= er > > key) received only roughly 50 IOPS. Yes, that's fifty. > >=20 > > Frightening but I thought I had better pass along such extreme result= s > > to the multipath team. Thanks - John >=20 > Hmm, so you had mpath0 and mpath1, and you ran disktest against both, a= t the > same time?=20 I had /dev/mapper/isda (composed of /dev/sdc and /dev/sdd) and ran two separate but concurrent disktests against /dev/mapper/isda --=20 John A. Sullivan III Open Source Development Corporation +1 207-985-7880 jsullivan@opensourcedevel.com http://www.spiritualoutreach.com Making Christianity intelligible to secular society