From owner-freebsd-questions Tue Mar 18 20:28:50 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 11ECF37B401 for ; Tue, 18 Mar 2003 20:28:49 -0800 (PST) Received: from mail.hacknslash.org (bdsl.66.14.88.171.gte.net [66.14.88.171]) by mx1.FreeBSD.org (Postfix) with ESMTP id 79B7343FA3 for ; Tue, 18 Mar 2003 20:28:44 -0800 (PST) (envelope-from octavian@hacknslash.org) Received: (qmail 48688 invoked from network); 19 Mar 2003 04:29:10 -0000 Received: from phobos.lexis.int (HELO hacknslash.org) (10.0.0.15) by mail.hacknslash.org with SMTP; 19 Mar 2003 04:29:10 -0000 Message-ID: <3E77F1FD.8090006@hacknslash.org> Date: Tue, 18 Mar 2003 20:28:45 -0800 From: Octavian Hornoiu Reply-To: octavian@hacknslash.org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3) Gecko/20030312 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: SYSVSHM Kernel options Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I have been doing significant reading on the kernel options related to tuning PostgreSQL and I am wondering how to best go about increasing the paged memory available to FreeBSD. I have read the following suggestions: options SYSVSHM options SHMMAXPGS=4096 (place total shared mem here) options SHMSEG=256 options SYSVSEM options SEMMNI=256 options SEMMNS=512 options SEMMNU=256 options SEMMAP=256 AND /"You might also want to use the sysctl setting to lock shared memory into RAM and prevent it from being paged out to swap, e.g. kern.ipc.shm_use_phys" /My question is, should i go ahead and increase the SHMMAXPGS value to any amount of memory that i choose? what are the consequences of doing this on a freebsd system? What problems might be caused and will this degrade the rest of the system? What is the affect of locking shared memory into RAM using the sysctl utility? I have never tuned the system in this way before and I am wary of messing around. Thanks! octavian To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message