X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 87346D79E7 for ; Sun, 4 Sep 2005 23:51:39 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 11958-03 for ; Mon, 5 Sep 2005 02:51:35 +0000 (GMT) Received: from floppy.pyrenet.fr (news.pyrenet.fr [194.116.145.2]) by svr1.postgresql.org (Postfix) with ESMTP id 086D4D6E06 for ; Sun, 4 Sep 2005 23:51:33 -0300 (ADT) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id 9179331F59; Mon, 5 Sep 2005 04:51:38 +0200 (MET DST) From: Martin Nickel X-Newsgroups: pgsql.performance Subject: Re: shared buffers Date: Sun, 04 Sep 2005 21:56:01 -0500 Organization: Hub.Org Networking Services Lines: 32 Message-ID: References: <20050830015454.54152.qmail@web53204.mail.yahoo.com> <4313BF95.3030105@familyhealth.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@news.hub.org User-Agent: Pan/0.14.2 (This is not a psychotic episode. It's a cleansing moment of clarity.) To: pgsql-performance@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 required=5 tests=[none] X-Spam-Level: X-Archive-Number: 200509/75 X-Sequence-Number: 14383 Chris, Would you say that 30000 pages is a good maximum for a Postgres install? We're running 8.0.3 on 64-bit SUSE on a dual Opteron box with 4G and have shared_buffers set at 120000. I've moved it up and down (it was 160000 when I got here) without any measurable performance difference. The reason I ask is because I occasionally see large-ish queries take forever (like cancel-after-12-hours forever) and wondered if this could result from shared_buffers being too large. Thanks for your (and anyone else's) help! Martin Nickel On Tue, 30 Aug 2005 10:08:21 +0800, Christopher Kings-Lynne wrote: >> I forgot to say that itīs a 12GB database... > > That's actually not that large. > >> Ok, Iīll set shared buffers to 30.000 pages but even so "meminfo" and >> "top" shouldnīt show some shared pages? > > Yeah. The reason for not setting buffers so high is because PostgreSQL > cannot efficiently manage huge shared buffers, so you're better off > giving the RAM to Linux's disk cache. > > Chris > > > ---------------------------(end of broadcast)--------------------------- > TIP 2: Don't 'kill -9' the postmaster