From: Andrew Morton Subject: Re: iowait problems on 2.6, not on 2.4 Date: Fri, 28 May 2004 15:45:25 -0700 Sender: linux-scsi-owner@vger.kernel.org Message-ID: <20040528154525.6ed5f7b9.akpm@osdl.org> References: <200405261743.28111.antlarr@tedial.com> <20040526205225.7a0866aa.akpm@osdl.org> <200405281516.41901.antlarr@tedial.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from fw.osdl.org ([65.172.181.6]:9891 "EHLO mail.osdl.org") by vger.kernel.org with ESMTP id S264002AbUE1Wmz convert rfc822-to-8bit (ORCPT ); Fri, 28 May 2004 18:42:55 -0400 In-Reply-To: <200405281516.41901.antlarr@tedial.com> List-Id: linux-scsi@vger.kernel.org To: Antonio Larrosa =?ISO-8859-1?Q?Jim=E9nez?= Cc: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org Antonio Larrosa Jim=E9nez wrote: > > On Thursday 27 May 2004 05:52, you wrote: > > Antonio Larrosa Jim=E9nez wrote: > > > My next test will be to do the "dd tests" on one of the internal = hard > > > disks and use it for the data instead of the external raid. > > > > That's a logical next step. The reduced read bandwith on the raid = array > > should be fixed up before we can go any further. I don't recall an= y > > reports of qlogic fc-scsi performance regressions though. >=20 > Ok, let's analyze that first. >=20 > The dd tests gave the following results: Let me cc linux-scsi. Guys: poke. Does anyone know why this: The machine is a 4 cpu Pentium III (Cascades) system with four SCSI SEAGATE ST336704 hard disks connected to an Adaptec AIC-7899P U160/m,= and a external RAID connected to a QLA2200/QLA2xxx FC-SCSI Host Bus Adapt= er.=20 The machine has 1Gb RAM. got all slow at reads? > ext3 on the internal scsi HD: > 2.4.21: > writing : 1m14s > reading : 1m2s > reading+writing : 2m16s > 2.6.4: > writing : 1m19s > reading : 59s > reading+writing : 2m24s >=20 > reiserfs on the internal scsi HD: > 2.4.21: > writing : 1m15s > reading : 1m1s=20 > reading+writing : 2m22s > 2.6.4: > writing : 1m19s > reading : 1m=20 > reading+writing : 2m25s >=20 > ext3 on the raid using qlogic fc-scsi: > 2.4.21: > writing : 30s > reading : 51s > reading+writing : 1m29s > 2.6.4: > writing : 28s > reading : 1m26s > reading+writing : 2m19s >=20 > reiserfs on the raid using qlogic fc-scsi: > 2.4.21: > writing : 37s > reading : 52s > reading+writing : 1m37s > 2.6.4: > writing : 25s > reading : 1m27s > reading+writing : 2m3s >=20 > All the tests were made 3 times, and the average taken. In the cases = where=20 > there was too much variance, I repeated the tests some more times. >=20 > All the tests used 2Gb reads/writes (. I tried to make 8Gb reads/writ= es too,=20 > but they got up to a minute variance (maybe the HD slowed itself down= due to=20 > temperature issues sometimes? I really don't know why this happened, = but in=20 > any case, I couldn't make reliable tests with files of that size). >=20 > So basically, there's no difference between 2.4.21 and 2.6.4 when usi= ng the=20 > internal HD, but 2.6.4 is much slower when using the raid. > What I found strange is that writing to that raid is a bit faster on = 2.6.4=20 > while reading is much slower, which I suppose is what makes the diffe= rence. >=20 > So yes, I suppose there's a regression on the qlogic fc-scsi module. >=20 > Btw, the tests I timed were: >=20 > count=3D2048 > write() { dd if=3D/dev/zero of=3Dx bs=3D1M count=3D$count ; sync } > read() { dd if=3Dx of=3D/dev/null bs=3D1M count=3D$count } > readwrite() { dd if=3Dx of=3Dy bs=3D1M count=3D$count ; sync } >=20 > In the case of read, I did the sync just before and after the timing,= but=20 > didn't include the sync inside the timed test. >=20 > As I said in my other mail, I can test any patch if needed. >=20 > Greetings and thanks for any help >=20 > -- > Antonio Larrosa > Tecnologias Digitales Audiovisuales, S.L. > http://www.tedial.com > Parque Tecnologico de Andalucia . M=E1laga (Spain) > - > To unsubscribe from this list: send the line "unsubscribe linux-kerne= l" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > Please read the FAQ at http://www.tux.org/lkml/ - To unsubscribe from this list: send the line "unsubscribe linux-scsi" i= n the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html