From owner-freebsd-stable Sun Apr 22 23:46:40 2001 Delivered-To: freebsd-stable@freebsd.org Received: from chmod.ath.cx (CC2-861.charter-stl.com [24.217.115.99]) by hub.freebsd.org (Postfix) with ESMTP id F258237B446 for ; Sun, 22 Apr 2001 23:46:37 -0700 (PDT) (envelope-from ajh3@chmod.ath.cx) Received: by chmod.ath.cx (Postfix, from userid 1001) id EEF64A8DE; Mon, 23 Apr 2001 01:45:51 -0500 (CDT) Date: Mon, 23 Apr 2001 01:45:51 -0500 From: Andrew Hesford To: David Petrou Cc: freebsd-stable@freebsd.org Subject: Re: shared mem default limits Message-ID: <20010423014551.A94798@cec.wustl.edu> References: <20010423022135.A48878@amant.pdl.cs.cmu.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010423022135.A48878@amant.pdl.cs.cmu.edu>; from dpetrou@cs.cmu.edu on Mon, Apr 23, 2001 at 02:21:35AM -0400 X-Loop: Andrew Hesford Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Apr 23, 2001 at 02:21:35AM -0400, David Petrou wrote: > Hi. I used to get a lot of errors concerning shared memory segments > not being available. After doing some googling, I found the magic > answer to my gnome woes. It turns out that running Enlightenment, > gnome, and lots of windows quickly exhausts the default kernel limits > on some shared mem parameters. > > This problem was discussed in -current in June 2000. > > After throwing in: > > options SHMMAXPGS=8192 > options SHMMNI=4096 > options SHMSEG=1024 > > my problems went away. (Problems would manifest themselves as windows > disappearing when starting new apps, etc.) > > Perhaps we could up the defaults? Is there a compelling reason on > today's machines to keep them small? > > david Is that the solution? I've been having a similar problem. In an attempt to solve the problem, I tried deleting shared memory segments, and I got this error with certain values: % ipcrm -m 65543 ipcrm: shmid(65543): : Invalid argument I know the segment exists, I can see it in ipcs. Also, I own it. How can I forcefully delete those segments which just don't die? -- Andrew Hesford ajh3@chmod.ath.cx To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message