Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id CFFCC98FC83 for ; Tue, 8 May 2012 03:56:00 -0300 (ADT) Received: from rs133.luxsci.com ([72.32.115.26]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SReL1-0000Va-TK for pgsql-admin@postgresql.org; Tue, 08 May 2012 06:56:00 +0000 Received: from GNANAM (NSG-Static-236.156.72.182.airtel.in [182.72.156.236] (may be forged)) (authenticated bits=0) by rs133.luxsci.com (8.13.8/8.13.8) with ESMTP id q486sOHi030588; Tue, 8 May 2012 01:55:45 -0500 Reply-To: From: "Gnanakumar" To: Subject: Advice/guideline on increasing shared_buffers and kernel parameters Date: Tue, 8 May 2012 12:22:58 +0530 Organization: Zoniac Software Private Limited Message-ID: <00da01cd2ce7$35d17780$a1746680$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Ac0s5zMpKYtaWGSyRg+K7Du8nW8t9w== Content-Language: en-us X-Lux-Comment: Message q486sOHi030588 sent by user #22393 X-Pg-Spam-Score: -0.7 (/) X-Archive-Number: 201205/34 X-Sequence-Number: 39523 Hi, Our Production server has got 35 GB physical RAM size. Since the server has lots of RAM, we want to really make use of it. We've already configured "max_connections" to 1000 and "shared_buffers" to 1536 MB, but when we tried to increase only "shared_buffers" to 3072MB (keeping "max_connections" as it is), PostgreSQL failed to start with the following error: EDTFATAL: could not create shared memory segment: Invalid argument EDTDETAIL: Failed system call was shmget(key=5432001, size=3307192320, 03600). Keeping max connection property to 1000, how do I "best" tune/set up its memory related parameters (including Linux Kernel parameters -- SHMMAX and SHMALL)? Experts insights/pointers on this are really appreciated. Given below current settings available in our server: -- SHMMAX & SHMALL -- # cat /proc/sys/kernel/shmall 2097152 # cat /proc/sys/kernel/shmmax 2147483648 -- OS & Kernel -- OS: CentOS release 5.2 Arch: 64-bit Kernel: 2.6.18 -- PostgreSQL conf -- shared_buffers = 1536MB max_connections = 1000 We're currently running PostgreSQL v8.2.22. Regards, Gnanam