X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 1B9D411F6252 for ; Fri, 7 Apr 2006 20:05:44 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 94100-04 for ; Fri, 7 Apr 2006 20:05:39 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id A6F9811F6AFF for ; Fri, 7 Apr 2006 20:05:41 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id k37N5c7H017614; Fri, 7 Apr 2006 19:05:38 -0400 (EDT) To: "Luke Lonergan" cc: "Gavin Hamill" , pgsql-performance@postgresql.org Subject: Re: pg 8.1.3, AIX, huge box, painfully slow. In-reply-to: References: Comments: In-reply-to "Luke Lonergan" message dated "Fri, 07 Apr 2006 15:56:52 -0700" Date: Fri, 07 Apr 2006 19:05:38 -0400 Message-ID: <17613.1144451138@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.129 required=5 tests=[AWL=0.129] X-Spam-Score: 0.129 X-Spam-Level: X-Archive-Number: 200604/167 X-Sequence-Number: 18251 "Luke Lonergan" writes: > On 4/7/06 3:27 PM, "Gavin Hamill" wrote: >> 278774: __semop(15728650, 0x0FFFFFFFFFFF7E80, 1) = 0 >> 155712: __semop(15728650, 0x0FFFFFFFFFFF5920, 1) = 0 >> 278774: __semop(15728649, 0x0FFFFFFFFFFF6F10, 1) > Seems like you're hitting a very small target in RAM with these semop calls. IIRC the address passed to semop() in our code is always a local struct on the stack, so that's a bit of a red herring --- there won't be cross-processor contention for that. It's plausible though that we are seeing contention across members of the LWLock array, with the semop storm just being a higher-level symptom of the real hardware-level problem. You might try increasing LWLOCK_PADDED_SIZE to 64 or even 128, see src/backend/storage/lmgr/lwlock.c (this is something that does exist in 8.1, so it'd be easy to try). regards, tom lane