Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V5MVc-0005or-3B for pgsql-performance@arkaria.postgresql.org; Fri, 02 Aug 2013 21:03:36 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1V5MVb-0007sR-Ht for pgsql-performance@arkaria.postgresql.org; Fri, 02 Aug 2013 21:03:35 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V5MVZ-0007qj-N6 for pgsql-performance@postgresql.org; Fri, 02 Aug 2013 21:03:34 +0000 Received: from nm15.bullet.mail.bf1.yahoo.com ([98.139.212.174]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V5MVW-0000lv-C1 for pgsql-performance@postgresql.org; Fri, 02 Aug 2013 21:03:33 +0000 Received: from [98.139.212.149] by nm15.bullet.mail.bf1.yahoo.com with NNFMP; 02 Aug 2013 21:03:28 -0000 Received: from [98.139.212.238] by tm6.bullet.mail.bf1.yahoo.com with NNFMP; 02 Aug 2013 21:03:28 -0000 Received: from [127.0.0.1] by omp1047.mail.bf1.yahoo.com with NNFMP; 02 Aug 2013 21:03:28 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 180729.28846.bm@omp1047.mail.bf1.yahoo.com Received: (qmail 40990 invoked by uid 60001); 2 Aug 2013 21:03:28 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ymail.com; s=s1024; t=1375477408; bh=Ymdl7YEyLEUEKmAEgqmFWrnEzl5Y77ZNquGjZMTie50=; 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=AABj0AwLsL+TKCNip28MV1usurK2QFhWtQFDMqfHYbngeN2mOYx+40sJzFLefYV+A0ibQm2dckbdpEZmegMafZxiqMBYAmPNcjgMtaRPZWTM6EES/BFwX85htrVoD8nFM/UxVwOskDZUNZIZj3QpB+p0JmiQ0p3YTo2H8zIzyKc= 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=LrMJ7Yr829hPww4lLsVHLY+spIq2EwAG+Svb0/hP4ZzFCHX0M5DonYhhLc9VuFuunLL2Md5/9ZrIymPizd5asaLKUc/HTnFEumZApWWFQ1G2mzY4pGDdIlsVuehscvGo0yk7rG1hCS9t+WTlMkrQf5/8VTgSHyl3j7ZVCkRnL9s=; X-YMail-OSG: vICs_u8VM1mP0qZXt.lnMbYmcQ4zskyy3DQ9L9hGYd2tLL4 rHudAXN6DSOiEyqxUL8quEue6GTf4sO_SYm71s4kkXPsPn7Uh7Hd58X8JyT2 z248QYKCOYyGVtECM.wynbaTiIZHepk6UM6kUvyvF6QXCm.KYx6Tx38SqjT3 .tutx_DA8ut1KWJ.NioCpLM_JLy9f8T78dQim26TziDty_8QQqvjvUzl3Agc g887IR40Qbj2nQmeakstxOLnEEpRMlTctPmuTGiQvDQIqlJN7oMQS9cNOcYB AHq03YUYW_82WMjxfvSqF8Kx5XVQuFDoOU.jCcwCeSyLuwELEqsJHzuuGzd2 369RvlsYu___ZnaBInnw4GXtup5qqT8eDGGh3jxZkLPLjJfj0LRMoe1SUh84 cKbO15NeqPnOHCvW7W12FHpU.mMQDPgCrBdAzNWVhNY9D9zFc09Q6.PPxC2o 9aPWafTv7YhOSWgI9grh061jMDVFGIWqvEb.uNzz0E7PLZZO5q85Q9tc37yA YLFBWlQo82Dyn5NIfDBEKl_L50XocP64Rqo2Q04OqYa4xlZH0ED1hu.sV6vr SgAm5wf_.v5MQatU6s2JL0iYp1g3DF.QOZsMEXRPgOWBKKOPeEbL06AzkIn1 WvhTO4zHoap3JC5kfqT1TrqiP54fERkU7B_GVw6LOfKHMeDpBrJIanjzrmoC 6zQ9KdiDnfxb1InFaLD.edmv1cx8cNnGboHCEZnF66IpcTcamp0MQQA-- Received: from [76.255.18.237] by web162901.mail.bf1.yahoo.com via HTTP; Fri, 02 Aug 2013 14:03:28 PDT X-Rocket-MIMEInfo: 002.001, SmVpc29uIEJlZG95YSA8amVpc29uYkBhdWRpZmFybWEuY29tLmNvPiB3cm90ZToKCj4gbWVtb3J5IHJhbTogMTI4IEdCCj4gY29yZXM6IDMyCj4KPiBtYXhfY29ubmVjdGlvbnM6IDkwMAoKPiB0ZW1wX2J1ZmZlcnMgPcKgIDUxMk1CCgpJbiBhZGRpdGlvbiB0byB0aGUgb3RoZXIgY29tbWVudHMsIGJlIGF3YXJlIHRoYXQgdGVtcF9idWZmZXJzIGlzCnRoZSBsaW1pdCBvZiBob3cgbXVjaCBSQU0gKmVhY2ggY29ubmVjdGlvbiogY2FuIGFjcXVpcmUgdG8gYXZvaWQKd3JpdGluZyB0ZW1wb3JhcnkgdGFibGUgZGEBMAEBAQE- X-Mailer: YahooMailWebService/0.8.152.567 References: <51F79AEC.3070103@audifarma.com.co> Message-ID: <1375477408.36283.YahooMailNeo@web162901.mail.bf1.yahoo.com> Date: Fri, 2 Aug 2013 14:03:28 -0700 (PDT) From: Kevin Grittner Reply-To: Kevin Grittner Subject: Re: to many locks held To: Jeison Bedoya , "pgsql-performance@postgresql.org" In-Reply-To: <51F79AEC.3070103@audifarma.com.co> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -2.0 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org Jeison Bedoya wrote: > memory ram: 128 GB > cores: 32 > > max_connections: 900 > temp_buffers =3D=A0 512MB In addition to the other comments, be aware that temp_buffers is the limit of how much RAM *each connection* can acquire to avoid writing temporary table data to disk.=A0 Once allocated to a connection, it will be reserved for that use on that connection until the connection closes.=A0 So temp_buffers could lock down 450 GB of RAM even while all connections are idle.=A0 If the maximum connections become active, and they average one work_mem allocation apiece, that's an *additional* 900 GB of RAM which would be needed to avoid problems. Reducing connections through a pooler is strongly indicated, and you may still need to reduce work_mem or temp_buffers. http://wiki.postgresql.org/wiki/Number_Of_Database_Connections -- Kevin Grittner EDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company --=20 Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance