Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id D6AF67E4446 for ; Fri, 22 Jun 2012 16:41:48 -0300 (ADT) Received: from nm15-vm0.bullet.mail.sp2.yahoo.com ([98.139.91.208]) by magus.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1Si9jm-00035F-4K for pgsql-admin@postgresql.org; Fri, 22 Jun 2012 19:41:47 +0000 Received: from [98.139.91.68] by nm15.bullet.mail.sp2.yahoo.com with NNFMP; 22 Jun 2012 19:41:29 -0000 Received: from [98.139.91.22] by tm8.bullet.mail.sp2.yahoo.com with NNFMP; 22 Jun 2012 19:41:29 -0000 Received: from [127.0.0.1] by omp1022.mail.sp2.yahoo.com with NNFMP; 22 Jun 2012 19:41:29 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 645736.80441.bm@omp1022.mail.sp2.yahoo.com Received: (qmail 42008 invoked by uid 60001); 22 Jun 2012 19:41:29 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1340394089; bh=5kFdRDanR60mfyFfA80E5h+ESSOWmPxBAe07k5RVrZo=; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=H3een0iPq2GqCCuv++I74gLXRyTK4BrxeG0aN53dWNP9ytiYJ0ZeGw+YMSQcgsTXHHzQO+pi6X+13JtOoszhw+0NEM5l6LSOVwfSILHevixmXnvJyHcuLV+g/nz51JBGyIDloPuKyvw2CoN+VmQXmFi7Bwddew3OucOnLN++uPY= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=QTJ97hxdO6dRhugJ6tbIoIYLEV5c82WFBrUaUKHwE5BPcc4g1w9BWnFF4/RDSTJ1W11S9oVRgGLz2LT4aRiF4XEpEZwhEshrqcoh0u4x+g6yCXkgx4ER1pXqDVH9tq/sm12m5nMvITPZjvqMvq1xIulpQwrl+pDr+aE0pouNv/Y=; X-YMail-OSG: WEQ57GcVM1mHUn9CQw0AdfRZ_LLTmHdMAodtJxFJH9RJ9OO L__hrm0TyAmum9CMyc_7q7gneSNb6FIxdaaHKmc8zodH2.igytVTWqPHZayt QwXR.PXbmxvORzFP74Wv5f70OLlLmBgB0Cq2P8SlDhOiY7D1JYWzxjp6z1g3 LL768XyC0TtDiMwvFahhbQD4MJqXzDJiTr0F_89zFgEJRZYZ49NnngH4oucJ XHvbhlLgOIWdUj1x3vBDE6lgLEtqf4t5pLGJlbtVzI1ebLQTw2z4oO6FGHqf 0CKdXXuwWOA3tdnyZpCXHcLW3a7iluxOmobm8_SlB1UUba6i.X0xH3zUvTqm JSqxn42mNY2OsKaWOTnOBSODWx2E6LopWGno4A2NK.Ri_ot7TC9KQAb8y5ZB WnvJtb4jFpFxGAD7pBXmCM5edULuOiCrI9xHKnMz8fg4YZ7m2TIvHll.Gkg- - Received: from [98.210.146.78] by web46103.mail.sp1.yahoo.com via HTTP; Fri, 22 Jun 2012 12:41:29 PDT X-Mailer: YahooMailWebService/0.8.118.349524 References: <1340391499.61601.YahooMailNeo@web46101.mail.sp1.yahoo.com> <4FE47DA402000025000489E3@gw.wicourts.gov> Message-ID: <1340394089.27581.YahooMailNeo@web46103.mail.sp1.yahoo.com> Date: Fri, 22 Jun 2012 12:41:29 -0700 (PDT) From: Greg Williamson Reply-To: Greg Williamson Subject: Re: autovac hitting too many tables at once To: "pgsql-admin@postgresql.org" In-Reply-To: <4FE47DA402000025000489E3@gw.wicourts.gov> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -0.5 (/) X-Archive-Number: 201206/100 X-Sequence-Number: 39691 Kevin --=0A=0A<...>=0A=0A>> =A0 a) quickly relieve the immediate pain=0A> = =0A> Set autovacuum_cost_limit to a smaller value.=A0 (Change the=0A> postg= resql.conf file and do a reload.)=A0 I would start by cutting the=0A> curre= nt value in half.=0A> =0A=0AThanks -- would not have known how to start. Bu= t for now, in=0Aobservance of your idea on XID wraparound, I am letting=0Ae= verything run (this is actually a low point in regular traffic for this=0As= ite and I am not seeing firect proof that autovac is in fact doing=0Aanythi= ng out of the ordinary).=0A=0A>> and=0A>> =0A>> =A0 b) prevent such issue= s in the future (other than going to manual=0A>> =A0 =A0 =A0 vacuuming on a= schedule).=0A> =0A> If it is suddenly doing this on lots of big tables at = once, it seems=0A> somewhat likely that you've hit the transaction wraparou= nd=0A> protection threshold.=A0 Because the vacuum necessary for this can b= e=0A> painful, and they tend to come at the worst possible time (the more= =0A> your workload looks like a really heavy OLTP workload at any given=0A>= moment, the higher the probability that this is about to happen), I=0A> al= ways follow a bulk load (like from restoring pg_dump output) with=0A> a VAC= UUM FREEZE ANALYZE.=0A> =0A> You might also want to consider running off-ho= urs vacuums to=0A> supplement autovacuum.=A0 Upgrading to a more recent ver= sion of=0A> PostgreSQL is likely to help some, too.=0A> =0ADuly noted. =0A= =0AThanks!=0A=0AGreg=0A