From owner-freebsd-performance@FreeBSD.ORG Sun Dec 5 20:44:35 2004 Return-Path: Delivered-To: freebsd-performance@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 63FDC16A504 for ; Sun, 5 Dec 2004 20:44:35 +0000 (GMT) Received: from web14105.mail.yahoo.com (web14105.mail.yahoo.com [216.136.172.135]) by mx1.FreeBSD.org (Postfix) with SMTP id 1D76143D68 for ; Sun, 5 Dec 2004 20:44:35 +0000 (GMT) (envelope-from cguttesen@yahoo.dk) Received: (qmail 9343 invoked by uid 60001); 5 Dec 2004 20:44:34 -0000 Message-ID: <20041205204434.9341.qmail@web14105.mail.yahoo.com> Received: from [194.248.174.50] by web14105.mail.yahoo.com via HTTP; Sun, 05 Dec 2004 21:44:34 CET Date: Sun, 5 Dec 2004 21:44:34 +0100 (CET) From: Claus Guttesen To: Sean Chittenden In-Reply-To: <6174636A-43BC-11D9-ACAF-000A95C705DC@chittenden.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit cc: freebsd-performance@freebsd.org Subject: Re: postgresql on FreeBSD 5.3 and high load X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Dec 2004 20:44:35 -0000 > Have you looked to see if you're using spin locks or > not? Search for > "amd64 x86_64 spin lock" in PostgreSQL's archives. > I think spin locks > were disabled for amd64. When you're at a load of > 70, look in > pg_catalog.pg_locks to see if you have any ungranted > locks. Thank you for your input. Searched postgresl.org's archives, both wihtin and via google, but only found information that related primarily to Linux. > > Also, is your application primarily read? You may > want to investigate > using pgpool as a way of reducing the overhead for > connection startup. There are more reads than writes, but I haven't found the exact numbers (yet). > Another option is to use memcached and remove some > queries from the > database all together. -sc I will take a look at these utilities, but will wait until January next year, where the load have decreased. Right now I'll throw some more hardware at it, a quad-opteron which was planned (in May next year), and will go through the php-code to optimize. I increased the shared_buffers to 65536, but it did not change much. I'll decrease it to 16384. Read a thread related to 'mbwait postgresql freebsd' which I found at freebsd's site. This suggested that a (too) high value could be counterproductive. regards Claus