Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 7D236B5DBE6 for ; Fri, 27 May 2011 00:32:20 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 49098-04 for ; Fri, 27 May 2011 03:32:13 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from www.postnewspapers.com.au (www.postnewspapers.com.au [173.230.139.50]) by mail.postgresql.org (Postfix) with ESMTP id 612CCB5D832 for ; Fri, 27 May 2011 00:32:13 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by www.postnewspapers.com.au (Postfix) with ESMTP id 77FD4882; Thu, 26 May 2011 23:32:12 -0400 (EDT) X-Virus-Scanned: amavisd-new at postnewspapers.com.au.com Received: from www.postnewspapers.com.au ([127.0.0.1]) by localhost (www.postnewspapers.com.au [127.0.0.1]) (amavisd-new, port 10024) with LMTP id jZSdsd7d0hvM; Thu, 26 May 2011 23:32:11 -0400 (EDT) Received: from mail.postnewspapers.com.au (ppp171-128.static.internode.on.net [150.101.171.128]) by www.postnewspapers.com.au (Postfix) with ESMTP id 688CE2D; Thu, 26 May 2011 23:32:11 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.postnewspapers.com.au (Postfix) with ESMTP id 71418AE55A; Fri, 27 May 2011 11:32:10 +0800 (WST) X-Virus-Scanned: Debian amavisd-new at postnewspapers.com.au Received: from mail.postnewspapers.com.au ([127.0.0.1]) by localhost (mail.postnewspapers.com.au [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 28OC9+UTSgH2; Fri, 27 May 2011 11:32:05 +0800 (WST) Received: from [10.1.1.3] (203-206-49-57.dyn.iinet.net.au [203.206.49.57]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client CN "Craig Ringer", Issuer "POST Certificate Authority" (verified OK)) by mail.postnewspapers.com.au (Postfix) with ESMTPSA id 16A81AE555; Fri, 27 May 2011 11:32:05 +0800 (WST) Message-ID: <4DDF1B2F.4050708@postnewspapers.com.au> Date: Fri, 27 May 2011 11:31:59 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: Junghwe Kim CC: pgsql-performance@postgresql.org Subject: Re: Is any effect other process performance after vaccumdb finished ? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201105/395 X-Sequence-Number: 43904 On 27/05/2011 9:58 AM, Junghwe Kim wrote: > Hi. > > First extremely thanks for your works about postgresql . > > I wonder that after executing 'vaccumdb -z' some other process can not > read their own msg queue during 2 ~ 3 minuts. The most likely cause is checkpoint activity. Enable checkpoint logging and examine your server logs. > vaccum executed every hour. and The processes have not any relations > between postgreql. Instead of running vacuum from cron or some other scheduler, turn on autovacuum and set it to run aggressively. You will reduce the impact of vacuum if you run it *often* (every few minutes if not more frequently) and do so using autovacuum. Best results will be had on PostgreSQL 8.4 or above. Please read this if you need to follow up, so you include enough information that a more complete answer can be given: http://wiki.postgresql.org/wiki/Guide_to_reporting_problems -- Craig Ringer Tech-related writing at http://soapyfrogs.blogspot.com/