Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 31CEB1337B56 for ; Mon, 25 Oct 2010 15:28:25 -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 92301-04 for ; Mon, 25 Oct 2010 18:28:18 +0000 (UTC) X-Greylist: delayed 00:06:31.419858 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 D2F121337B4E for ; Mon, 25 Oct 2010 15:28:17 -0300 (ADT) Received: from localhost (localhost.localdomain [127.0.0.1]) by zimbra01a.gobox.com.br (Postfix) with ESMTP id A89A91421898A for ; Mon, 25 Oct 2010 16:21:40 -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 Sp6R48gF78-O for ; Mon, 25 Oct 2010 16:21:34 -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 DAF6C14273778 for ; Mon, 25 Oct 2010 16:21:34 -0200 (BRST) Date: Mon, 25 Oct 2010 16:21:34 -0200 (BRST) From: =?utf-8?Q?Andr=C3=A9_Volpato?= To: PGSQL-Performance Message-ID: <1416587032.9578.1288030894805.JavaMail.root@zimbra01a> In-Reply-To: <1290167597.9546.1288029134827.JavaMail.root@zimbra01a> Subject: 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=-0.001 tagged_above=-10 required=5 tests=BAYES_20=-0.001 X-Spam-Level: X-Archive-Number: 201010/399 X-Sequence-Number: 40817 Hi all,=20 We are tuning a PostgreSQL box with AIX 5.3 and got stucked in a very odd s= ituation. When a query got ran for the second time, the system seems to deliver the r= esults to slow. Here=C2=B4s some background info: AIX Box:=20 PostgreSQL 8.4.4, AIX 5.3-9 64bits, SAN IBM DS3400, 8x450GB SAS 15K Raid-5 8GB RAM, 2.3GB Shared buffers Debian Box: PostgreSQL 8.4.4, Debian 4.3.2 64bits, SAN IBM DS3400, 5x300GB SAS 15K Raid= -0 7GB RAM, 2.1GB Shared buffers Right now, we changed lots of AIX tunables to increase disk and SO performa= nce.=20 Of course, postgres got tunned as well. I can post all changes made until n= ow if needed. To keep it simple, I will try to explain only the buffer read issue. This query [1] took like 14s to run at AIX, and almost the same time at Deb= ian. The issue is when I run it for the second time: AIX - 8s Debian - 0.3s These times keep repeating after the second run, and I can ensure AIX isn= =C2=B4t touching the disks anymore. I=C2=B4ve never seen this behaviour before. I heard about Direct I/O and I = was thinking about givng it a shot. Any ideas? 1 - http://explain.depesz.com/s/5oz []=C2=B4s, Andr=C3=A9 Volpato =20