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 637D311F7DA1 for ; Mon, 10 Apr 2006 06:27:04 -0300 (ADT) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Score: 0.12 X-Spam-Level: X-Spam-Status: No, score=0.12 required=5 tests=[AWL=0.120] Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id zKA9mKaoFSKc for ; Mon, 10 Apr 2006 06:26:57 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from smtp.nildram.co.uk (smtp.nildram.co.uk [195.112.4.54]) by postgresql.org (Postfix) with ESMTP id E70C011F7DAF for ; Mon, 10 Apr 2006 06:26:59 -0300 (ADT) Received: from [192.168.0.5] (unknown [84.12.155.199]) by smtp.nildram.co.uk (Postfix) with ESMTP id B019F334B4E; Mon, 10 Apr 2006 10:26:56 +0100 (BST) Subject: Re: pg 8.1.3, AIX, huge box, painfully slow. From: Simon Riggs To: Tom Lane Cc: Luke Lonergan , Gavin Hamill , pgsql-performance@postgresql.org In-Reply-To: <17613.1144451138@sss.pgh.pa.us> References: <17613.1144451138@sss.pgh.pa.us> Content-Type: text/plain Date: Mon, 10 Apr 2006 10:26:49 +0100 Message-Id: <1144661209.21409.131.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 (2.2.3-2.fc4) Content-Transfer-Encoding: 7bit X-Archive-Number: 200604/200 X-Sequence-Number: 18284 On Fri, 2006-04-07 at 19:05 -0400, Tom Lane wrote: > 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). pSeries cache lines are 128 bytes wide, so I'd go straight to 128. If you're renting all 8 CPUs, I'd drop to 4 and try that instead. With 8 CPUs the contention will vary according to what each CPU is doing at any one time - when they all hit the contention spot, things will get worse. The pSeries has good CPUs and great caching, so I'd expect contention to be somewhat more apparent as a bottleneck. Best Regards, Simon Riggs