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 653B1D6E46 for ; Sun, 11 Sep 2005 09:36:30 -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 29059-07 for ; Sun, 11 Sep 2005 12:36:25 +0000 (GMT) Received: from sccmmhc92.asp.att.net (sccmmhc92.asp.att.net [204.127.203.212]) by svr1.postgresql.org (Postfix) with ESMTP id 0BF5BD6E0B for ; Sun, 11 Sep 2005 09:36:23 -0300 (ADT) Received: from juju.arbash-meinel.com ([12.214.18.81]) by sccmmhc92.asp.att.net (sccmmhc92) with ESMTP id <20050911123623m9200lajhve>; Sun, 11 Sep 2005 12:36:23 +0000 Received: by juju.arbash-meinel.com (Postfix, from userid 505) id 1D2CA55FCC; Sun, 11 Sep 2005 07:36:22 -0500 (CDT) Received: from [209.101.126.19] (unknown [209.101.126.19]) by juju.arbash-meinel.com (Postfix) with ESMTP id C312E55FA7; Sun, 11 Sep 2005 07:36:08 -0500 (CDT) Message-ID: <432424A9.4060403@arbash-meinel.com> Date: Sun, 11 Sep 2005 08:35:53 -0400 From: John A Meinel User-Agent: Mozilla Thunderbird 1.0.6 (Macintosh/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Martin Nickel Cc: pgsql-performance@postgresql.org Subject: Re: shared buffers References: <20050830015454.54152.qmail@web53204.mail.yahoo.com> <4313BF95.3030105@familyhealth.com.au> In-Reply-To: X-Enigmail-Version: 0.92.0.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig7527593C6661C605725824D1" X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.05 required=5 tests=[FORGED_RCVD_HELO=0.05] X-Spam-Level: X-Archive-Number: 200509/129 X-Sequence-Number: 14437 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig7527593C6661C605725824D1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Martin Nickel wrote: > 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. What I've read on the mailing list, is that usually the sweet spot is actually around 10k pages. 120k seems far too high. I believe that the major fixes to the buffer manager are more in 8.1 rather than 8.0, so you probably are hitting some problems. (The biggest problem was that there were places that require doing a complete scan through shared memory looking for dirty pages, or some such). > > 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. There are lots of possibilities for why these take so long, perhaps you would want to post them, and we can try to help. For instance, if you have a foreign key reference from one table to another, and don't have indexes on both sides, then deleting from the referenced table, will cause a sequential scan on the referring table for *each* deleted row. (IIRC). John =:-> > > Thanks for your (and anyone else's) help! > Martin Nickel --------------enig7527593C6661C605725824D1 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (Darwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDJCStJdeBCYSNAAMRAhSqAJ4rj5xXBOPOXHaVFoe+AqT9Cr/TIgCdFWIZ InLHDRTxNp/zVWS5NybgoV0= =I6fd -----END PGP SIGNATURE----- --------------enig7527593C6661C605725824D1--