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 143BFD7832 for ; Wed, 24 Aug 2005 16:51:42 -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 75508-09 for ; Wed, 24 Aug 2005 19:51:40 +0000 (GMT) Received: from mx2.surnet.cl (mx2.surnet.cl [216.155.73.181]) by svr1.postgresql.org (Postfix) with ESMTP id C71C9D77E5 for ; Wed, 24 Aug 2005 16:51:37 -0300 (ADT) Received: from unknown (HELO cluster.surnet.cl) (216.155.73.164) by mx2.surnet.cl with ESMTP; 24 Aug 2005 16:51:16 -0400 X-IronPort-AV: i="3.96,138,1122868800"; d="scan'208"; a="2531923:sNHT94544510" Received: from alvh.no-ip.org (216.155.78.140) by cluster.surnet.cl (7.0.043) (authenticated as alvherre@surnet.cl) id 42B3EF600094A550; Wed, 24 Aug 2005 15:51:38 -0400 Received: by alvh.no-ip.org (Postfix, from userid 1000) id 2E120C2DC2A; Wed, 24 Aug 2005 15:51:43 -0400 (CLT) Date: Wed, 24 Aug 2005 15:51:43 -0400 From: Alvaro Herrera To: Chris Hoover Cc: pgsql-performance@postgresql.org Subject: Re: Some ideas for comment Message-ID: <20050824195143.GE17609@surnet.cl> Mail-Followup-To: Chris Hoover , pgsql-performance@postgresql.org References: <1d219a6f05082409563775a8a7@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1d219a6f05082409563775a8a7@mail.gmail.com> User-Agent: Mutt/1.5.10i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=2.069 required=5 tests=[AWL=-0.707, DNS_FROM_RFC_ABUSE=0.374, DNS_FROM_RFC_POST=1.376, RCVD_IN_NJABL_PROXY=1.026] X-Spam-Level: ** X-Archive-Number: 200508/398 X-Sequence-Number: 14145 On Wed, Aug 24, 2005 at 12:56:54PM -0400, Chris Hoover wrote: > I don't have real numbers to give you, but we know that our systems > are hurting i/o wise and we are growing by about 2GB+ per week (net). > We actually grow by about 5GB/week/server. However, when I run my > weekly maintenance of vacuum full, reindex, and the vacuum analyze, we > end up getting about 3GB back. Unfortunately, I do not have the i/o > bandwidth to vacuum during the day as it causes major slowdowns on our > system. Each night, I do run a vacuum analyze across all db's to try > and help. I also have my fsm parameters set high (8000000 fsm pages, > and 5000 fsm relations) to try and compensate. [...] > Right now, we are still on 7.3.4. However, these ideas would be > implemented as part of an upgrade to 8.x (plus, we'll initialize the > new clusters with a C locale). If you were on a newer version, I'd suggest that you use the cost-based vacuum delay, and vacuum at least some of the tables more often. This way you can reduce the continual growth of the data files without affecting day-to-day performance, because you allow the VACUUM-inflicted I/O to be interleaved by normal query execution. Sadly (for you), I think the cost-based vacuum delay feature was only introduced in 8.0. -- Alvaro Herrera () Officer Krupke, what are we to do? Gee, officer Krupke, Krup you! (West Side Story, "Gee, Officer Krupke")