From owner-freebsd-current@FreeBSD.ORG Mon Dec 8 12:25:53 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 54F7C16A4CE for ; Mon, 8 Dec 2003 12:25:53 -0800 (PST) Received: from carver.gumbysoft.com (carver.gumbysoft.com [66.220.23.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id C96A543D42 for ; Mon, 8 Dec 2003 12:25:36 -0800 (PST) (envelope-from dwhite@gumbysoft.com) Received: by carver.gumbysoft.com (Postfix, from userid 1000) id B049972DB8; Mon, 8 Dec 2003 11:59:19 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by carver.gumbysoft.com (Postfix) with ESMTP id AB93172DB5; Mon, 8 Dec 2003 11:59:19 -0800 (PST) Date: Mon, 8 Dec 2003 11:59:19 -0800 (PST) From: Doug White To: Viktor Vasilev In-Reply-To: <20031207215711.GC301@rbg.informatik.tu-darmstadt.de> Message-ID: <20031208115608.F15361@carver.gumbysoft.com> References: <200312070945.hB79jKds039814@www.kukulies.org> <20031207113607.GB301@rbg.informatik.tu-darmstadt.de> <20031207215711.GC301@rbg.informatik.tu-darmstadt.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-current@freebsd.org Subject: Re: gimp fails suddenly 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: Mon, 08 Dec 2003 20:25:53 -0000 On Sun, 7 Dec 2003, Viktor Vasilev wrote: > > Well that would imply that somehow SYSVSHM got removed from your kernel. > > What does 'ipcs -a' say? > > Actually the kernel is compiled with the SYSVSHM option. IIRC gimp was > installed with pkg_add -r. ok. > Shared Memory: > T ID KEY MODE OWNER GROUP CREATOR CGROUP NATTCH SEGSZ CPID LPID ATIME DTIME CTIME > m 196608 0 --rw-r--r-- root myuser root myuser 7 151552 228 22821:49:32 21:49:32 12:14:10 > m 65537 0 --rw-r--r-- root myuser root myuser 6 122880 228 104221:29:46 21:29:46 12:14:10 > m 65538 0 --rw------- myuser myuser myuser myuser 2 393216 255 22812:15:18 22:35:00 12:15:18 > m 65539 0 --rw-r--r-- root myuser root myuser 2 790528 228 29812:15:54 12:15:54 12:15:54 > m 393220 0 --rw-r--r-- root myuser root myuser 2 110592 228 35412:21:49 15:32:20 12:21:49 > m 262149 0 --rw-r--r-- root myuser root myuser 4 110592 228 35412:21:49 15:32:20 12:21:49 hm... I think we have a winner. FreeBSD, by default, only allocates 32MB max to shm segments. You have a bunch already loaded and gimp wants 7MB more, and thats probably putting you over the limit. It returns EINVAL if there isn't enough space available. > shminfo: > shmmax: 33554432 (max shared memory segment size) > shmmin: 1 (min shared memory segment size) > shmmni: 192 (max number of shared memory identifiers) > shmseg: 128 (max shared memory segments per process) > shmall: 8192 (max amount of shared memory in pages) You probably need to add kern.ipc.shmmax="67108864" to /boot/loader.conf, then reboot your system. This should give you ~64MB of shm space. -- Doug White | FreeBSD: The Power to Serve dwhite@gumbysoft.com | www.FreeBSD.org