X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 1E04AD1D2DB for ; Wed, 17 Mar 2004 20:57:19 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 76161-02 for ; Wed, 17 Mar 2004 16:57:16 -0400 (AST) Received: from outbound.mailhop.org (outbound.mailhop.org [63.208.196.171]) by svr1.postgresql.org (Postfix) with ESMTP id 64990D1C4EB for ; Wed, 17 Mar 2004 16:57:14 -0400 (AST) Received: from ool-4350c7ad.dyn.optonline.net ([67.80.199.173] helo=zeut.net) by outbound.mailhop.org with asmtp (TLSv1:AES256-SHA:256) (Exim 4.20) id 1B3i6C-0000bl-17; Wed, 17 Mar 2004 15:57:12 -0500 Message-ID: <4058BBA5.4080002@zeut.net> Date: Wed, 17 Mar 2004 15:57:09 -0500 From: "Matthew T. O'Connor" User-Agent: Mozilla Thunderbird 0.5 (Windows/20040207) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Andrew Sullivan Cc: pgsql-performance Subject: Re: rapid degradation after postmaster restart References: <4052661D.5060505@joeconway.com> <20040317181115.GA7805@phlogiston.dyndns.org> In-Reply-To: <20040317181115.GA7805@phlogiston.dyndns.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Mail-Handler: MailHop Outbound by DynDNS.org X-Report-Abuse-To: abuse@dyndns.org X-MHO-User: zeut X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200403/249 X-Sequence-Number: 6105 Andrew Sullivan wrote: >The vacuum delay stuff that you're working on may help, but I can't >really believe it's your salvation if this is happening after only a >few minutes. No matter how much you're doing inside those functions, >you surely can't be causing so many dead tuples that a vacuum is >necessary that soon. Did you try not vacuuming for a little while to >see if it helps? > > Some of this thread was taken off line so I'm not sure it was mentioned on the list, but a big part of the problem was that Joe was running into the same bug that Cott Lang ran into a while ago which caused the vacuum threshold to get set far too low resulting in vacuums far too often.. This has been fixed and the patch has been committed unfortunately it didn't make it into 7.4.2, but it will be in 7.4.3 / 7.5. >I didn't see it anywhere in this thread, but are you quite sure that >you're not swapping? Note that vmstat on multiprocessor Solaris >machines is not notoriously useful. You may want to have a look at >what the example stuff in the SE Toolkit tells you, or what you get >from sar. I believe you have to use a special kernel setting on >Solaris to mark shared memory as being ineligible for swap. > > I haven't heard from Joe how things are going with the fixed pg_autovacuum but that in combination with the vacuum delay stuff should work well. Matthew