Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 9D6381337B84 for ; Thu, 28 Oct 2010 09:33:22 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 06520-09 for ; Thu, 28 Oct 2010 12:33:15 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from zimbra01a.gobox.com.br (gobox.com.br [189.26.115.162]) by mail.postgresql.org (Postfix) with ESMTP id 3223D1336DB6 for ; Thu, 28 Oct 2010 09:33:14 -0300 (ADT) Received: from localhost (localhost.localdomain [127.0.0.1]) by zimbra01a.gobox.com.br (Postfix) with ESMTP id 073B214273774; Thu, 28 Oct 2010 10:33:10 -0200 (BRST) X-Virus-Scanned: amavisd-new at gobox.com.br Received: from zimbra01a.gobox.com.br ([127.0.0.1]) by localhost (zimbra01a.gobox.com.br [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oLWeJd6p2Sre; Thu, 28 Oct 2010 10:33:08 -0200 (BRST) Received: from zimbra01a.gobox.com.br (zimbra01a.gobox.com.br [172.16.10.22]) by zimbra01a.gobox.com.br (Postfix) with ESMTP id 067F214273766; Thu, 28 Oct 2010 10:33:08 -0200 (BRST) Date: Thu, 28 Oct 2010 10:33:07 -0200 (BRST) From: =?utf-8?Q?Andr=C3=A9_Volpato?= To: Greg Smith Cc: Brad Nicholson , pgsql-performance@postgresql.org Message-ID: <647835811.10922.1288269187954.JavaMail.root@zimbra01a> In-Reply-To: <4CC87C69.5070301@2ndquadrant.com> Subject: Re: AIX slow buffer reads MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [172.16.10.1] X-Mailer: Zimbra 6.0.8_GA_2661 (ZimbraWebClient - FF3.0 (Win)/6.0.8_GA_2661) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201010/533 X-Sequence-Number: 40951 ----- Mensagem original ----- | Andr=C3=A9 Volpato wrote: | > | | > | If it is being spent in the bitmap index scan, try setting | > | effective_io_concurrency to 0 for Linux, and see what effect that | > | has. | > | > I disabled effective_io_concurrency at AIX but it made no changes on | > bitmap index times. | > |=20 | Brad's point is that it probably doesn't do anything at all on AIX, | and | is already disabled accordingly. But on Linux, it is doing something, | and that might be contributing to why it's executing so much better on | that platform. If you disable that parameter on your Debian box, that | should give you an idea whether that particular speed-up is a major | component to the difference you're seeing or not. Here=C2=B4s new explains based on Debian box: (1) effective_io_concurrency =3D 5 # /etc/init.d/postgresql stop # echo 3 > /proc/sys/vm/drop_caches # /etc/init.d/postgresql start http://explain.depesz.com/s/br (2) effective_io_concurrency =3D 0 # /etc/init.d/postgresql stop # echo 3 > /proc/sys/vm/drop_caches # /etc/init.d/postgresql start http://explain.depesz.com/s/3A0 BitmapAnd really gets improved a little bit in (1), but Bitmap index scans = got a lot worse. | -- | Greg Smith 2ndQuadrant US greg@2ndQuadrant.com Baltimore, MD | PostgreSQL Training, Services and Support www.2ndQuadrant.us | "PostgreSQL 9.0 High Performance": http://www.2ndQuadrant.com/books []=C2=B4s, Andre Volpato