From owner-freebsd-current@FreeBSD.ORG Sat May 3 14:16:19 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4601137B401 for ; Sat, 3 May 2003 14:16:19 -0700 (PDT) Received: from HAL9000.homeunix.com (12-233-57-131.client.attbi.com [12.233.57.131]) by mx1.FreeBSD.org (Postfix) with ESMTP id C6CEE43F93 for ; Sat, 3 May 2003 14:16:17 -0700 (PDT) (envelope-from das@FreeBSD.ORG) Received: from HAL9000.homeunix.com (localhost [127.0.0.1]) by HAL9000.homeunix.com (8.12.9/8.12.5) with ESMTP id h43LGGp1005406; Sat, 3 May 2003 14:16:16 -0700 (PDT) (envelope-from das@FreeBSD.ORG) Received: (from das@localhost) by HAL9000.homeunix.com (8.12.9/8.12.5/Submit) id h43LG5EF005405; Sat, 3 May 2003 14:16:05 -0700 (PDT) (envelope-from das@FreeBSD.ORG) Date: Sat, 3 May 2003 14:16:05 -0700 From: David Schultz To: Bill Moran Message-ID: <20030503211605.GA5195@HAL9000.homeunix.com> Mail-Followup-To: Bill Moran , Bruce Evans , Unix@henoc.com, freebsd-current@freebsd.org References: <3EB054B1.6040406@potentialtech.com> <3EB06F7F.9000203@potentialtech.com> <3EB082E7.FCC29AAC@mindspring.com> <20030430225411.N70917@volatile.chemikals.org> <20030501225921.L19472@gamplex.bde.org> <3EB1421A.4050908@potentialtech.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3EB1421A.4050908@potentialtech.com> cc: Unix@henoc.com cc: freebsd-current@FreeBSD.ORG Subject: Re: PostgreSQL7 port fails when I try to run initdb X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 May 2003 21:16:19 -0000 On Thu, May 01, 2003, Bill Moran wrote: > Looking at src/sys/kern/sysv_shm.c that I used to build my v5 kernel > (1.74) and comparing it to the version I used to build my v4 kernel > (1.45.2.6) I see the same default values for SHMMAXPGS, SHMMAX, SHMMIN, > SHMMNI, SHMSEG, and SHMALL in both. Yet my v4 kernel supports Postgre > without any tweaks needed in the kernel config and my v5 kernel requires > overriding those values in order for initdb to work. Hmm...it worked fine for me in -CURRENT a little while ago with a generic kernel. I sometimes tweak the postgresql source to change the value of IPC_NMAXSEM, but I'm pretty sure I didn't this time. In any case, postgresql's default is to use 32 semaphores, and src/sys/kern/sysv_sem.c suggests that the FreeBSD default is to support up to 60, so I'm not sure why you needed a custom kernel.