From owner-freebsd-hackers Fri May 3 0:38:15 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from utility.clubscholarship.com (utility.clubscholarship.com [198.78.70.175]) by hub.freebsd.org (Postfix) with ESMTP id 1E3CA37B404 for ; Fri, 3 May 2002 00:38:06 -0700 (PDT) Received: from localhost (root@localhost) by utility.clubscholarship.com (8.11.6/8.11.6) with ESMTP id g437ZWD88954 for ; Fri, 3 May 2002 00:35:32 -0700 (PDT) (envelope-from root@utility.clubscholarship.com) Date: Fri, 3 May 2002 00:35:32 -0700 (PDT) From: Patrick Thomas To: Subject: RFC on my SHM tunings for multiple jailed postgres... Message-ID: <20020503002335.C86733-100000@utility.clubscholarship.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I have a large server that will be running ~24 jails, 8 of which will be running their own postgres server. Because of this fact: By default, Postgres allocates 34 semaphores, which is over half the default system total of 60. I need to tune kernel SHM settings in order to even run the second postgres, much less the other six. So, this is what I have in my kernel, and I appreciate any comments or suggestions regarding the appropriateness: (of course, by default, I have) options SYSVSHM #SYSV-style shared memory options SYSVMSG #SYSV-style message queues (and the following is _all_ that I have added) options SHMMAXPGS=16384 options SHMMAX="(SHMMAXPGS*PAGE_SIZE+1)" options SHMSEG=256 options SEMMNI=384 options SEMMNS=768 options SEMMNU=384 options SEMMAP=384 My references for this are: http://www.us.postgresql.org/users-lounge/docs/7.1/admin/kernel-resources.html http://groups.google.com/groups?q=freebsd+SEMMNI+postgres&hl=en&selm=01091023443406.73075%40prime.vsservices.com&rnum=7 All comments and suggestions appreciated ! --PT To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message