X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 28A8A52831 for ; Mon, 18 Jul 2005 01:11:06 -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 71230-03 for ; Mon, 18 Jul 2005 04:11:02 +0000 (GMT) Received: from rambo.iniquinet.com (rambo.iniquinet.com [69.39.89.10]) by svr1.postgresql.org (Postfix) with ESMTP id 4CD8252AB3 for ; Mon, 18 Jul 2005 01:11:01 -0300 (ADT) Received: (qmail 4967 invoked by uid 1010); 18 Jul 2005 00:11:00 -0400 Received: from Robert_Creager@LogicalChaos.org by rambo.iniquinet.com by uid 1002 with qmail-scanner-1.20 (clamscan: 0.70. spamassassin: 3.0.3. Clear:RC:0(63.147.78.131):SA:0(?/?):. Processed in 7.168994 secs); 18 Jul 2005 04:11:00 -0000 Received: from unknown (HELO thunder.logicalchaos.org) (perl?test@logicalchaos.org@63.147.78.131) by rambo.iniquinet.com with AES256-SHA encrypted SMTP; 18 Jul 2005 00:10:53 -0400 Received: from logicalchaos.org (thunder.logicalchaos.org [192.168.0.250]) by thunder.logicalchaos.org (Postfix) with ESMTP id 335AA72328; Sun, 17 Jul 2005 22:10:51 -0600 (MDT) Date: Sun, 17 Jul 2005 22:10:50 -0600 From: Robert Creager To: "Matthew T. O'Connor" Cc: PGPerformance Subject: Re: Huge performance problem between 7.4.1 and 8.0.3 - CS Message-ID: <20050717221050.7c4ac241@thunder.logicalchaos.org> In-Reply-To: <42DB2684.9020706@zeut.net> References: <20050717213416.59dcb52e@thunder.logicalchaos.org> <42DB2684.9020706@zeut.net> Organization: Starlight Vision, LLC. X-Mailer: Sylpheed-Claws 1.0.3 (GTK+ 1.2.10; i586-mandrake-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/signed; boundary=Signature_Sun__17_Jul_2005_22_10_50_-0600_f8q37Az1.H73v85v; protocol="application/pgp-signature"; micalg=pgp-sha1 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.002 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200507/242 X-Sequence-Number: 13483 --Signature_Sun__17_Jul_2005_22_10_50_-0600_f8q37Az1.H73v85v Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable I am, and it is. It's ANALYZING and VACUUM'ing tables every interval (5 mi= nutes - 8.0.3). Right now, for that last 4 hours, I'm not VACUUMing the 7.4.1 database and it's still clicking along at < .2 second queries. Last year (7.4.1), I noticed that it took about a week of heavy activity (for this DB) before I'd really need a vacuum. That's when I put in the 5 min cron. When I first switched over to 8.0.3, I was still running the cron vacuum. = I got into big trouble when I had vacuum's backed up for 6 hours. That's when I started noticing the query problem, and the CS numbers being high. 7.4.1 vacuums every 5 minutes always take < 30 seconds (when I'm watching). Cheers, Rob When grilled further on (Sun, 17 Jul 2005 23:48:20 -0400), "Matthew T. O'Connor" confessed: > Robert Creager wrote: >=20 > >For 8.03, pg_autovacuum is running. On 7.4.1, I set up a cron job to va= cuum > >analyze every 5 minutes. > > =20 > > >=20 > Are you sure that pg_autovacuum is doing it's job? Meaning are you sure= =20 > it's vacuuming as often as needed? Try to run it with -d2 or so and=20 > make sure that it is actually doing the vacuuming needed. --=20 22:04:10 up 4 days, 1:39, 8 users, load average: 0.15, 0.15, 0.12 Linux 2.6.5-02 #8 SMP Mon Jul 12 21:34:44 MDT 2004 --Signature_Sun__17_Jul_2005_22_10_50_-0600_f8q37Az1.H73v85v Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iEYEARECAAYFAkLbK8oACgkQLQ/DKuwDYzkVfwCeI8iUFCNmJVfDnsaZBFeqfeo0 qG4AnjdzMJIaPcEqnwebel07bsMSFgnd =RdSZ -----END PGP SIGNATURE----- --Signature_Sun__17_Jul_2005_22_10_50_-0600_f8q37Az1.H73v85v--