From owner-freebsd-bugs@FreeBSD.ORG Sat Oct 11 16:00:11 2008 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3E135106568E for ; Sat, 11 Oct 2008 16:00:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 321EE8FC0A for ; Sat, 11 Oct 2008 16:00:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m9BG09NW032543 for ; Sat, 11 Oct 2008 16:00:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m9BG09C0032542; Sat, 11 Oct 2008 16:00:09 GMT (envelope-from gnats) Date: Sat, 11 Oct 2008 16:00:09 GMT Message-Id: <200810111600.m9BG09C0032542@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Gunther Schadow Cc: Subject: Re: kern/77353: [patch] grow SysV IPC kernel limits X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Gunther Schadow List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Oct 2008 16:00:11 -0000 The following reply was made to PR kern/77353; it has been noted by GNATS. From: Gunther Schadow To: bug-followup@FreeBSD.org, rmh@debian.org Cc: Subject: Re: kern/77353: [patch] grow SysV IPC kernel limits Date: Sat, 11 Oct 2008 11:43:45 -0400 I have tried the patch on uname = 7.0-RELEASE-p5. It allows me to start PostgreSQL with 16 GB shared_buffer on a 32 GB system. There is no longer an error nor a segmentation violation. However, I cannot get ipcs to work it fails with this error when tryting to generate the shm list: ipcs: sysctlbyname: kern.ipc.shmsegs: Cannot allocate memory yet, I can still do: sysctl -a kern.ipc.shmsegs it just never shows anything (but neither does so in unpatched 6.2 or 7.0 release, so I assume that's normal). Had no time to check, but would think that perhaps sysctlbyname also needs to be recompiled and for that one would have to redo all of libc. On the good side, PostgreSQL does not seem to rely on this ipcs type listing feature. Here is an easy program that tests the shm allocation *and* use: #include #include #include #include #include #include int main(int argc, char *argv[]) { size_t size = strtoul(argv[1],NULL,10); key_t key = atol(argv[2]); int shm; char *mem; int i; printf("Start: %lu, %lu\n", size, key); shm = shmget(key, size, IPC_CREAT|SHM_R|SHM_W); printf("Result: %d\n", shm); mem = shmat(shm, 0, 0); printf("Attached: %p\n", mem); for(i=0; i