Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 67F069FB829 for ; Wed, 30 May 2007 15:20:07 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 68709-05-3 for ; Wed, 30 May 2007 15:19:57 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.224]) by postgresql.org (Postfix) with ESMTP id 3DF409FA09C for ; Wed, 30 May 2007 15:19:59 -0300 (ADT) Received: by wx-out-0506.google.com with SMTP id s16so1464615wxc for ; Wed, 30 May 2007 11:19:57 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=PuD88wYxFNCQ0WehmYLGgrP1q6GMr5ZepxsR+6wI/8qFNrM2q2dyYEfOrJ0aTnpuRzmA/d1Dap8zm2/VJFnGLLkF6QShE31/7Rwee6uacFdJFjRewMvWvIzlhTiW/E7Xvujix2fmDLHjOYvgqR2JOvtehbu6r6EL/6xOoyQ6efA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=hlx9MDz7RuOnNDUncm6fea3IxGU0yDTM4svWc96+zoOsOYRDEH1rFbD1f46AV3lXvNJ7sK5egPNPl2/JaARRqpfCDQMChXl1uwuIyOeypPzftp/XcXP90bIl7NADyGRp67SewC5ofGBNq5eFOFo4QWMChUJw+J60O38TYRTaRk4= Received: by 10.70.87.5 with SMTP id k5mr12550813wxb.1180549196797; Wed, 30 May 2007 11:19:56 -0700 (PDT) Received: by 10.70.28.2 with HTTP; Wed, 30 May 2007 11:19:56 -0700 (PDT) Message-ID: <5482c80a0705301119x5543a151q44b029a9743c933e@mail.gmail.com> Date: Wed, 30 May 2007 20:19:56 +0200 From: Dimitri To: "Albert Cervera Areny" Subject: Re: Bad RAID1 read performance Cc: pgsql-performance@postgresql.org, "Luke Lonergan" In-Reply-To: <200705301700.26704.albert@sedifa.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <200705301700.26704.albert@sedifa.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 200705/625 X-Sequence-Number: 25015 As there is no 'continuous space' option on ext3/ext2 (or probably "-f fragment_size" may do a trick?) - I think after some filesystem activity you simply loose continuous space allocation and rather expected sequential reading may be transformed into random seeking of 'logically' sequentual blocks... Rgds, -Dimitri On 5/30/07, Albert Cervera Areny wrote: > Hardware isn't very good I believe, and it's about 2-3 years old, but the > RAID > is Linux software, and though not very good the difference between readin= g > and writing should probably be greater... (?) > > Would you set 512Kb readahead on both drives and RAID? I tried various > configurations and none seemed to make a big difference. It seemed correc= t > to > me to set 512kb per drive and 1024kb for md0. > > A Dimecres 30 Maig 2007 16:09, Luke Lonergan va escriure: > > This sounds like a bad RAID controller - are you using a built-in hardw= are > > RAID? If so, you will likely want to use Linux software RAID instead. > > > > Also - you might want to try a 512KB readahead - I've found that is > optimal > > for RAID1 on some RAID controllers. > > > > - Luke > > > > On 5/30/07 2:35 AM, "Albert Cervera Areny" wrote: > > > Hi, > > > after doing the "dd" tests for a server we have at work I obtained: > > > Read: 47.20 Mb/s > > > Write: 39.82 Mb/s > > > Some days ago read performance was around 20Mb/s due to no readahead = in > > > md0 so I modified it using hdparm. However, it seems to me that being= it > > > a RAID1 read speed could be much better. These are SATA disks with 3G= b > of > > > RAM so I did 'time bash -c "dd if=3D/dev/zero of=3Dbigfile bs=3D8k > count=3D786432 > > > && sync"'. File system is ext3 (if read many times in the list that X= FS > > > is faster), but I don't want to change the file system right now. > > > Modifing the readahead from the current 1024k to 2048k doesn't make a= ny > > > difference. Are there any other tweaks I can make? > > > > > > > > > ---------------------------(end of broadcast)------------------------= --- > > > TIP 4: Have you searched our list archives? > > > > > > http://archives.postgresql.org > > > > ---------------------------(end of broadcast)--------------------------= - > > TIP 6: explain analyze is your friend > > -- > Albert Cervera Areny > Dept. Inform=E0tica Sedifa, S.L. > > Av. Can Bordoll, 149 > 08202 - Sabadell (Barcelona) > Tel. 93 715 51 11 > Fax. 93 715 51 12 > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > ........................ AVISO LEGAL ............................ > La presente comunicaci=F3n y sus anexos tiene como destinatario la > persona a la que va dirigida, por lo que si usted lo recibe > por error debe notificarlo al remitente y eliminarlo de su > sistema, no pudiendo utilizarlo, total o parcialmente, para > ning=FAn fin. Su contenido puede tener informaci=F3n confidencial o > protegida legalmente y =FAnicamente expresa la opini=F3n del > remitente. El uso del correo electr=F3nico v=EDa Internet no > permite asegurar ni la confidencialidad de los mensajes > ni su correcta recepci=F3n. En el caso de que el > destinatario no consintiera la utilizaci=F3n del correo electr=F3nico, > deber=E1 ponerlo en nuestro conocimiento inmediatamente. > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > ........................... DISCLAIMER ............................. > This message and its attachments are intended exclusively for the > named addressee. If you receive this message in error, please > immediately delete it from your system and notify the sender. You > may not use this message or any part of it for any purpose. > The message may contain information that is confidential or > protected by law, and any opinions expressed are those of the > individual sender. Internet e-mail guarantees neither the > confidentiality nor the proper receipt of the message sent. > If the addressee of this message does not consent to the use > of internet e-mail, please inform us inmmediately. > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > > > > ---------------------------(end of broadcast)--------------------------- > TIP 1: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org so that your > message can get through to the mailing list cleanly >