From owner-freebsd-stable@FreeBSD.ORG Wed Mar 22 15:20:05 2006 Return-Path: X-Original-To: stable@freebsd.org Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6E3D916A41F for ; Wed, 22 Mar 2006 15:20:05 +0000 (UTC) (envelope-from vivek@khera.org) Received: from yertle.kcilink.com (yertle.kcilink.com [65.205.34.180]) by mx1.FreeBSD.org (Postfix) with ESMTP id D1AF343D49 for ; Wed, 22 Mar 2006 15:20:03 +0000 (GMT) (envelope-from vivek@khera.org) Received: from [192.168.7.103] (host-103.int.kcilink.com [192.168.7.103]) by yertle.kcilink.com (Postfix) with ESMTP id 7A1A4B80C for ; Wed, 22 Mar 2006 10:20:03 -0500 (EST) Mime-Version: 1.0 (Apple Message framework v746.3) In-Reply-To: References: Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <3ECD9860-CA1E-486F-BCCE-EE3EB8FF7DFE@khera.org> Content-Transfer-Encoding: 7bit From: Vivek Khera Date: Wed, 22 Mar 2006 10:20:02 -0500 To: stable@freebsd.org X-Mailer: Apple Mail (2.746.3) Cc: Subject: Re: How do I change kern.ipc.shmmax in FreeBSD 5.x automatically after reboot? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Mar 2006 15:20:05 -0000 On Mar 22, 2006, at 6:01 AM, Kipp Holger wrote: > which are set correctly. Unfortunately, the following > two entries > > kern.ipc.shmmax="512000000" > kern.ipc.shmall="65526" > > do not change the corresponding values according > to sysctl, no matter whether I put them in > /boot/loader.conf or /etc/sysctl.conf. Here is how I bump up values to run a large-ish postgresql server under 6.0-p4: in /boot/loader.conf I have kern.ipc.semmni=32 kern.ipc.semmns=512 and in /etc/sysctl.conf I have # tuning for PostgreSQL kern.ipc.shm_use_phys=1 kern.ipc.shmmax=1073741824 kern.ipc.shmall=262144 kern.ipc.semmsl=512 kern.ipc.semmap=256 and it works just fine. IIRC it worked the same in 5.4.