Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 7EFAC1336FA7 for ; Mon, 2 May 2011 01:53:21 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 19998-02 for ; Mon, 2 May 2011 04:53:03 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from smtp120.dfw.emailsrvr.com (smtp120.dfw.emailsrvr.com [67.192.241.120]) by mail.postgresql.org (Postfix) with ESMTP id 7692113364DE for ; Mon, 2 May 2011 01:53:03 -0300 (ADT) Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp22.relay.dfw1a.emailsrvr.com (SMTP Server) with ESMTP id AD6191700E5; Mon, 2 May 2011 00:53:02 -0400 (EDT) X-Virus-Scanned: OK Received: by smtp22.relay.dfw1a.emailsrvr.com (Authenticated sender: adarsh.sharma-AT-orkash.com) with ESMTPSA id 0A2741700A4 for ; Mon, 2 May 2011 00:53:01 -0400 (EDT) Message-ID: <4DBE38BB.7040106@orkash.com> Date: Mon, 02 May 2011 10:23:15 +0530 From: Adarsh Sharma User-Agent: Thunderbird 2.0.0.22 (X11/20090625) MIME-Version: 1.0 To: pgsql-performance@postgresql.org Subject: Re: The right SHMMAX and FILE_MAX References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201105/6 X-Sequence-Number: 43515 I am also in need of a proper documentation that explains how to set SHMAX and SHMALL variables in Postgres. What things need to be taken in consideration before doing that ? What is the value of SHMAX & SHMALL if u have 16 GB RAM for Postgres Server ? Thanks Phoenix Kiula wrote: > Hi. I'm on a 64 Bit CentOS 5 system, quadcore processor, 8GB RAM and > tons of data storage (1 TB SATAII disks). > > The current SHMMAX and SHMMIN are (commas added for legibility) -- > > kernel.shmmax = 68,719,476,736 > kernel.shmall = 4,294,967,296 > > Now, according to my reading in the PG manual and this list, a good > recommended value for SHMMAX is > > (shared_buffers * 8192) > > My postgresql.conf settings at the moment are: > > max_connections = 300 > shared_buffers = 300MB > effective_cache_size = 2000MB > > By this calculation, shared_b * 8192 will be: > > 2,457,600,000,000 > > That's a humongous number. So either the principle for SHMMAX is > amiss, or I am reading this wrongly? > > Similarly with "fs.file_max". There are articles like this one: > http://tldp.org/LDP/solrhe/Securing-Optimizing-Linux-RH-Edition-v1.3/chap6sec72.html > > Is this relevant for PostgreSQL performance at all, or should I skip that? > > Thanks for any pointers! > >