From: Pasi =?iso-8859-1?Q?K=E4rkk=E4inen?= Subject: Re: Shell Scripts or Arbitrary Priority Callouts? Date: Tue, 24 Mar 2009 17:09:01 +0200 Message-ID: <20090324150901.GP5528@edu.joroinen.fi> References: <1237460677.6506.5.camel@jaspav.missionsit.net.missionsit.net> <7bc80d500903192211k6baadc81ge1b9d8b81ea6a913@mail.gmail.com> <1237543283.6572.10.camel@jaspav.missionsit.net.missionsit.net> <20090322152730.GC5528@edu.joroinen.fi> <1237801596.6577.28.camel@jaspav.missionsit.net.missionsit.net> <20090324073935.GK5528@edu.joroinen.fi> <1237892561.6560.19.camel@jaspav.missionsit.net.missionsit.net> <20090324115708.GM5528@edu.joroinen.fi> <1237897305.6560.26.camel@jaspav.missionsit.net.missionsit.net> <20090324150104.GO5528@edu.joroinen.fi> Reply-To: device-mapper development Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: <20090324150104.GO5528@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 Tue, Mar 24, 2009 at 05:01:04PM +0200, Pasi K=E4rkk=E4inen wrote: > On Tue, Mar 24, 2009 at 08:21:45AM -0400, John A. Sullivan III wrote: > > >=20 > > > Core-iscsi developer seems to be active developing at least the=20 > > > new iSCSI target (LIO target).. I think he has been testing it with > > > core-iscsi, so maybe there's newer version somewhere?=20 > > >=20 > > > > We did play with the multipath rr_min_io settings and smaller alw= ays > > > > seemed to be better until we got into very large numbers of sessi= on. We > > > > were testing on a dual quad core AMD Shanghai 2378 system with 32= GB > > > > RAM, a quad port Intel e1000 card and two on-board nvidia forcede= th > > > > ports with disktest using 4K blocks to mimic the file system usin= g > > > > sequential reads (and some sequential writes). > > > >=20 > > >=20 > > > Nice hardware. Btw are you using jumbo frames or flow control for i= SCSI > > > traffic?=20 > > >=20 >=20 > Dunno if you noticed this.. :)=20 >=20 >=20 > > > >=20 > > >=20 > > > When you used dm RAID0 you didn't have any multipath configuration,= right?=20 > > Correct although we also did test successfully with multipath in > > failover mode and RAID0. > > >=20 >=20 > OK. >=20 > > > What kind of stripe size and other settings you had for RAID0? > > Chunk size was 8KB with four disks. =20 > > >=20 >=20 > Did you try with much bigger sizes.. 128 kB ? >=20 > > > What kind of performance do you get using just a single iscsi sessi= on (and > > > thus just a single path), no multipathing, no DM RAID0 ? Just a fil= esystem > > > directly on top of the iscsi /dev/sd? device. > > Miserable - same roughly 12 MB/s. >=20 > OK, Here's your problem. Was this btw reads or writes? Did you tune > readahead-settings?=20 >=20 > Can paste your iSCSI session settings negotiated with the target?=20 >=20 > > >=20 > > > Sounds like there's some other problem if invidual throughput is ba= d? Or did > > > you mean performance with a single disktest IO thread is bad, but u= sing multiple > > > disktest threads it's good.. that would make more sense :)=20 > > Yes, the latter. Single thread (I assume mimicking a single disk > > operation, e.g., copying a large file) is miserable - much slower tha= n > > local disk despite the availability of huge bandwidth. We start > > utilizing the bandwidth when multiplying concurrent disk activity int= o > > the hundreds. > >=20 > > I am guessing the single thread performance problem is an open-iscsi > > issue but I was hoping multipath would help us work around it by > > utilizing multiple sessions per disk operation. I suppose that is wh= ere > > we run into the command ordering problem unless there is something el= se > > afoot. Thanks - John >=20 > You should be able to get many times the throughput you get now.. just = with > a single path/session. >=20 > What kind of latency do you have from the initiator to the target/stora= ge?=20 >=20 > Try with for example 4 kB ping: > ping -s 4096 >=20 > 1000ms divided by the roundtrip you get from ping should give you maxim= um > possible IOPS using a single path..=20 >=20 > 4 kB * IOPS =3D=3D max bandwidth you can achieve. >=20 Maybe I should have been more clear about that.. assuming you're measurin= g=20 4 kB IO's with disktest, and you have 1 outstanding IO at a time, then th= e above is max throughput you can get. Higher block/IO size and higher number of outstanding IOs will give you better thoughput.=20 I think CFQ disk elevator/scheduler has a bug that prevents queue depths bigger than 1 outstanding IO.. so don't use that. "noop" might be a good = idea. -- Pasi