Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VrbGy-0000V8-W5 for pgsql-admin@arkaria.postgresql.org; Fri, 13 Dec 2013 22:31:53 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VrbGx-0000Xo-Rl for pgsql-admin@arkaria.postgresql.org; Fri, 13 Dec 2013 22:31:51 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VrbGv-0000Xf-M0 for pgsql-admin@postgresql.org; Fri, 13 Dec 2013 22:31:49 +0000 Received: from nm1-vm1.bullet.mail.bf1.yahoo.com ([98.139.213.163]) by makus.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VrbGs-0001Zl-BU for pgsql-admin@postgresql.org; Fri, 13 Dec 2013 22:31:48 +0000 Received: from [66.196.81.170] by nm1.bullet.mail.bf1.yahoo.com with NNFMP; 13 Dec 2013 22:31:45 -0000 Received: from [98.139.212.219] by tm16.bullet.mail.bf1.yahoo.com with NNFMP; 13 Dec 2013 22:31:44 -0000 Received: from [127.0.0.1] by omp1028.mail.bf1.yahoo.com with NNFMP; 13 Dec 2013 22:31:44 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 792595.69161.bm@omp1028.mail.bf1.yahoo.com Received: (qmail 73637 invoked by uid 60001); 13 Dec 2013 22:31:44 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ymail.com; s=s1024; t=1386973904; bh=xOMlhnztPTxN+ux+fIZV+cXJjviCVipHmj90jocSldI=; 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=A6HZHZx02JInbpco25t1fmCiEasOFlkFh5rLJVaXN1w/dklRGwTUmwVWjaJVq/BGwY6MHhMxedvqhNnkJN+kGKz6kFzWSBjdzUKUMB88dgVjMCbJo2ou13bpZMOFf+w89j2NX7qd1Bl5vrXbmG+2+zCQKFRKGU8cmeT2z009jcs= 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=UbwHNR6FQQfxepaFNUVyswwFgJ2YlrTaXSJFm1hhU26A8fgQaXhPIv45nqqGDnkpE5tb33cvlMHLhJAtpvdcH5yG6Xl59NVrLSeRYSeL77tOcQM28So4hzj9BK+sC3LHM2XqJ4ZuI+BqvOGFT1XSNVZvtrE/iewIOEIaDB66Gsc=; X-YMail-OSG: FvIFv8AVM1krzojNNFVS.ceustAqerCKl7tPesNEpoSPjNp Yi_5kxp8f_IKIbFXd_bgajmKRwhbeBucmT9eZnWo9nLgeToxNqNVe7HMI06k Y9F6CiyO2miL2semhyK9tHL9NSY.JfyGyp51OwafX0Yope3GEd8xoGB9Fi3T ycLnazX2bXvCfmKr7Emn6AnNcgO9feeM5C.49egs8evI6l5s__U5JBQ9UWaP mFhbplXWejLFNsulziWBZPcxOmCp53WO7xwlrk3m9rgZf.7N4AlfYET.2I6N kQgb4PF0Dr3kWGGg0iSMdot.m.oroI9X2ui5hZXZ4xcnkGL9VdiMBDwxFqOq Tp2oIRsqjYsXdJNbq4p22Dx.K2VA2vQG4JFnCheib6TFHjQ4EXQf59uQkchI 5WlWKJFwlNyz_TA5ST31wiiowxIMJ_PPbuHxT_Nup7.FkJsmlgkv19M2ldSS RbpXvU56KGBPgtWU2zWaoC1wmoMLUf3kTyvu4nzZOkSugTtZ_ZcH.9wAYyZ_ hfI.7do3lD1yREuhIYT7z.fByBKRUwJkFXPs8lY6zvAPFvkzaLiMPxyCxVF8 o3ySylrbCh.BsTQD6WFC77yVLOdrZ9gRnDEUjP0DRtg-- Received: from [76.255.18.237] by web162903.mail.bf1.yahoo.com via HTTP; Fri, 13 Dec 2013 14:31:44 PST X-Rocket-MIMEInfo: 002.001, SmVuaSBGaWZyaWNrIDxqZmlmcmlja0BpbmNvbW0uY29tPiB3cm90ZToKCj4gSSB0aGluaywgSSdsbCBsZXQgYXV0b3ZhY2N1bSBydW4gYW5kIGNoZWNrIGl0IHRvbW9ycm93LgoKU2VlbXMgcmVhc29uYWJsZS4KCj4gU28sIHdoYXQgeW91J3JlIHNheWluZyBpcyBpZiBJIHJ1biB0aGUgIlZBQ1VVTSBBTkFMWVpFIiB3aGlsZSB0aGUKPiBhdXRvdmFjdXVtIHN0aWxsIHJ1bm5pbmcsIHRoZSBhdXRvdmFjdXVtIHdpbGwgYmUgY2FuY2VsbGVkLCByaWdodD8KClllcy4KCj4gQW5kLCBJIG5lZWQgdG8gc2V0IHRoZSABMAEBAQE- X-Mailer: YahooMailWebService/0.8.169.609 References: <1386969850.61933.YahooMailNeo@web162903.mail.bf1.yahoo.com> Message-ID: <1386973904.10081.YahooMailNeo@web162903.mail.bf1.yahoo.com> Date: Fri, 13 Dec 2013 14:31:44 -0800 (PST) From: Kevin Grittner Reply-To: Kevin Grittner Subject: Re: AUTOVACUUM after purging a lot of records To: Jeni Fifrick , "pgsql-admin@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-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org Jeni Fifrick wrote: > I think, I'll let autovaccum run and check it tomorrow. Seems reasonable. > So, what you're saying is if I run the "VACUUM ANALYZE" while the > autovacuum still running, the autovacuum will be cancelled, right? Yes. > And, I need to set the maintenance_work_mem in the session before > executing the 'VACUUM ANALYZE transactionlog'. Is this a correct > syntax? You might want to connect with psql and issue these statements: SET maintenance_work_mem =3D '2GB'; VACUUM ANALYZE transactionlog; > Regarding the configuration, all the memory related are still > with default value. > We did change the max_connections to be 2000. BUT, so far, our > max connection is around 500. Well, work_mem is the limit on memory used by each node (processing step) of every query that is running.=A0 A good rule of thumb is to assume one such allocation per allowed connection, and keep that to 25% of machine RAM.=A0 So 64GB * 0.25 / 2000 would be 8MB.=A0 If you could drop max connections, you could boost work_mem proportionally without risking blowing out all of your OS cache (or even swapping). -- Kevin Grittner EDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company --=20 Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin