Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V7Un7-0000y7-LO for pgsql-general@arkaria.postgresql.org; Thu, 08 Aug 2013 18:18:29 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1V7Un6-0003vl-TC for pgsql-general@arkaria.postgresql.org; Thu, 08 Aug 2013 18:18:28 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V7Un5-0003vc-1o for pgsql-general@postgresql.org; Thu, 08 Aug 2013 18:18:27 +0000 Received: from nm40-vm6.bullet.mail.bf1.yahoo.com ([72.30.239.214]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V7Un1-0000Yi-Mh for pgsql-general@postgresql.org; Thu, 08 Aug 2013 18:18:26 +0000 Received: from [98.139.212.145] by nm40.bullet.mail.bf1.yahoo.com with NNFMP; 08 Aug 2013 18:18:22 -0000 Received: from [98.139.212.214] by tm2.bullet.mail.bf1.yahoo.com with NNFMP; 08 Aug 2013 18:18:22 -0000 Received: from [127.0.0.1] by omp1023.mail.bf1.yahoo.com with NNFMP; 08 Aug 2013 18:18:22 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 277181.1786.bm@omp1023.mail.bf1.yahoo.com Received: (qmail 37864 invoked by uid 60001); 8 Aug 2013 18:18:22 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ymail.com; s=s1024; t=1375985902; bh=pev8If3cy3L1mj1a3ChRr38pY7maQo4amt1PkhqRNuQ=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=ilhxSHSnVZLKo+takvHI+Q1RmLz062MOb12UZwIh+m26BGTcxnFGGjOh9IwwLY296aOvq+KG0+rn+jmTdSKIIgBM332XR4yMOBFgmtyPxStRQnJGel/BFm3JXzkmIhPNHSSxwyBcMzU9+aP0ZV+KE5rzX4xXsuA1gcwmFrur5n0= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=ymail.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=23GCBcLaxK5KO+195BT5WjotRturJ0oWqKIs/RTKCPtDx6vrt45ooPYoAIGR3RtX/K+kG42C/QmyV8EV8Iez7EiEKeSliOWHWxQey+jJ+K1z8u/JYqD7GUzEoAyxgl+3yq1KxuVgEB4zVmrmTs48VFwFLruxEr11Ls1D4PBGf9U=; X-YMail-OSG: 9rMG.k8VM1mCES3s6ZW0yA7cROe5DagaJSVXHCGDU0FKd9H tXtm4_ve8KVs9wVSRjqqbGIgatf_LCh.tvgEojrvSI9hJmjD58LmetD1VEaZ yahVpoPj_jYZTsmnrMmvqaEGZKtiafgOS1RKffW4RXM1HoFO8_F_G9g01ogT CwUR_eeYshHDeXENQ8XbRErILGrl1vE3ow_.U6NTeBxmv7MVJhszf8qdY25W IQLc039EHMqeEnzyvZr6Km744fVpxvY5T1FbRBo.Yk88iAvnHhYsvDJFYJih _TUWm42MX.pgd_68Gj.Q7yAD_zK2xHGobntQGax1RFx5GI2rNCZlwSy0xot0 p2mi6.vvea2C.NucjjkGklyRnOqVMCoTaDKTyIlwyLfQlv71NsHwpD6H_h7R j7VWY2pNal4Z5zIeeaE8xnhSS3QQTxYh6iS_9rsE_FL4JxL6KhKaoBK3sCFO m7Hvz.r5X4c._hz9wAvBzz38_hk3v0AMJWU1e1y6jaoDsLo4Ne4jA6uLP3lG dL.1N4x5B6QIYhKXJKMeolgvlIXQeFU7bz34N4Y24FxC6WC3P8oHfEXXWvCt StCmXcE4nwoXsxSz25hFfWTCt3OWrxnAWhqcYeoesqq_1yhunrnRHEWqQZi3 7.zGbnC5mBDHdMopAdai2kcIYzezg1LvCi9O5m60lgQqHBCE7iU_HBh7ZdfD GPt.u6PR0_1ci1A860_c4rQ.VpChYwEw- Received: from [76.255.18.237] by web162904.mail.bf1.yahoo.com via HTTP; Thu, 08 Aug 2013 11:18:22 PDT X-Rocket-MIMEInfo: 002.001, VmlzaGFsYWtzaGkgTmF2YW5lZXRoYWtyaXNobmFuIDxudmlzaGFsYWtzaGlAc2lyYWh1LmNvbT4gd3JvdGU6Cgo.IFdlIGhhdmUgb25lIHByb2R1Y3Rpb24gZGF0YWJhc2Ugc2VydmVyICwgaGF2aW5nIDYgREJzLCBQb3N0Z3Jlcwo.IDkuMi4xIHZlcnNpb24uCgpUaGVyZSB3ZXJlIHNvbWUgZml4ZXMgZm9yIGF1dG92YWN1dW0gcHJvYmxlbXMgaW4gOS4yLjMuwqAgU29tZSBvdGhlcgpmaXhlcyB3aWxsIGJlIGNvbWluZyB3aGVuIDkuMi41IGlzIHJlbGVhc2VkLsKgIE1hbnkgb2YgeW91ciBwcm9ibGVtcwphcmUBMAEBAQE- X-Mailer: YahooMailWebService/0.8.153.572 References: Message-ID: <1375985902.2599.YahooMailNeo@web162904.mail.bf1.yahoo.com> Date: Thu, 8 Aug 2013 11:18:22 -0700 (PDT) From: Kevin Grittner Reply-To: Kevin Grittner Subject: Re: How to avoid Force Autovacuum To: Vishalakshi Navaneethakrishnan , "pgsql-general@postgresql.org" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: 0.7 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org Vishalakshi Navaneethakrishnan wrote: > We have one production database server , having 6 DBs, Postgres > 9.2.1 version. There were some fixes for autovacuum problems in 9.2.3.=A0 Some other fixes will be coming when 9.2.5 is released.=A0 Many of your problems are likely to go away by staying up-to-date on minor releases. http://www.postgresql.org/support/versioning/ > autovacuum_vacuum_threshold =3D 50000 By setting this so high, you are increasing the amount of work autovacuum will need to do when it does work on a table.=A0 A smaller value tends to give less "bursty" performance.=A0 Also, any small, frequently-updated tables may bloat quite a bit in 50000 transactions. > maintenance_work_mem =3D 2GB Each autovacuum worker will allocate this much RAM.=A0 If all of your autovacuum workers wake up at once, would losing 2GB for each one from your cache cause a significant performance hit?=A0 (Since you didn't say how much RAM the machine has, it's impossible to tell.) > How can i avoid the autovacuum process ? Vacuuming is a necessary part of PostgreSQL operations, and autovacuum is almost always part of a good vacuum plan.=A0 The bug fixes in 9.2.3 will help avoid some of the most extreme problems, but you might also want to reduce the threshold so that it has less work to do each time it wakes up, reducing the impact. > And also autovacuum executed in the template0 database also. What does running this in psql this show?: \x on select * from pg_database where datname =3D 'template0'; select * from pg_stat_database where datname =3D 'template0'; -- Kevin Grittner EDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company --=20 Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general