Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 873FEFB93B8 for ; Tue, 8 May 2012 13:56:10 -0300 (ADT) Received: from 74-93-229-125-colorado.hfc.comcastbusiness.net ([74.93.229.125] helo=mail.consistentstate.com) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SRnhk-0006Dh-Qx for pgsql-admin@postgresql.org; Tue, 08 May 2012 16:56:09 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.consistentstate.com (Postfix) with ESMTP id 8BFE5302374 for ; Tue, 8 May 2012 10:55:50 -0600 (MDT) X-Virus-Scanned: amavisd-new at consistentstate.com Received: from mail.consistentstate.com ([127.0.0.1]) by localhost (mail.consistentstate.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9yJJKf5Wb1qH for ; Tue, 8 May 2012 10:55:50 -0600 (MDT) Received: from mail.consistentstate.com (mail.consistentstate.com [192.168.20.2]) by mail.consistentstate.com (Postfix) with ESMTP id 3C6D1304C9D for ; Tue, 8 May 2012 10:55:50 -0600 (MDT) Date: Tue, 8 May 2012 10:55:50 -0600 (MDT) From: Brian Ferhle To: pgsql-admin@postgresql.org Message-ID: <2012787084.273491.1336496150057.JavaMail.root@mail.consistentstate.com> In-Reply-To: <448748533.273490.1336496125865.JavaMail.root@mail.consistentstate.com> Subject: increasing max_pred_locks_per_transaction, what shuold I look for? MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [192.168.1.100] X-Mailer: Zimbra 7.1.4_GA_2555 (ZimbraWebClient - FF3.0 (Linux)/7.1.4_GA_2555) X-Pg-Spam-Score: -0.9 (/) X-Archive-Number: 201205/43 X-Sequence-Number: 39532 Hi all, I've got a situation where I need to increase max_pred_locks_per_transaction value to allow the addition of a slony node to complete on postgres 9.1. We had this issue before and we increased the default value from 64 to 128, but now we have a sync that takes even longer and the value for 128 isn't enough either. Looking at the activity I saw in pg_locks, I believe I need to set it to at least 256, but a value this high I want to make sure that I don't cause other issues with the system. The docs mention that it may need to request more system v shared memory, but should I also re-calculate other parameters such as work_mem, shared_buffers, etc? Current System: Postgres 9.1.3 252 GB system memory shared_buffers 40GB work_mem 200MB max_connections = 300 max_prepared_transactions = 0 free -g total used free shared buffers cached Mem: 252 239 12 0 1 221 I have a lot of cashed memory, but I just want to make sure this isn't something that cascades out of control and I'm suddenly having major 'out of memory' issues. thanks in advance, - Brian F