X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id E9D14D1B563 for ; Wed, 29 Oct 2003 16:04:36 +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 47614-04 for ; Wed, 29 Oct 2003 12:04:05 -0400 (AST) Received: from dhcp-7-248.ma.lycos.com (waltham-nat.ma.lycos.com [209.202.205.1]) by svr1.postgresql.org (Postfix) with SMTP id 616E7D1B560 for ; Wed, 29 Oct 2003 12:04:04 -0400 (AST) Received: (qmail 11517 invoked from network); 29 Oct 2003 16:06:07 -0000 Received: from dhcp-7-41.ma.lycos.com (HELO squeegit) (10.124.7.41) by dhcp-7-248.ma.lycos.com with SMTP; 29 Oct 2003 16:06:07 -0000 Date: Wed, 29 Oct 2003 11:03:58 -0500 From: Jeff To: pgsql-admin@postgresql.org Subject: pg_clog & vacuum oddness Message-Id: <20031029110358.548105be.threshar@torgo.978.org> X-Mailer: Sylpheed version 0.9.7 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/350 X-Sequence-Number: 10911 I have a machine that typically runs good, but more and more recently when vacuum runs everything (not just pg) comes to a griding halt. If iostat is to be believed, there isn't too much IO going on - 300kB/sec write, 0kB read. Now before we diagnose this as "bah!" I noticed something odd - in my pg_clog directory I have [currently] 384 files. there seem to be about 3-6/day in there. They all (except for hte last) have the same size of 200someodd-kB. The DB is fairly active with around 20-100 (varies wildly) insert/update/delete a second. I had vacuum & fsm tuned so my UnUsed was rather steady. The thing that bothers me most is why all that stuff in the clog? There are entries in there that are older than the last time I spun PG. Machine is a 2xp3-800mhz, 2gb, linux 2.2.17 [old], pg 7.3.4 -- Jeff Trout http://www.jefftrout.com/ http://www.stuarthamm.net/