From owner-freebsd-hackers Tue Sep 5 3:35:41 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from alpha.dante.org.uk (alpha.dante.org.uk [193.63.211.19]) by hub.freebsd.org (Postfix) with ESMTP id E0B9D37B422 for ; Tue, 5 Sep 2000 03:35:36 -0700 (PDT) Received: from theta.dante.org.uk ([193.63.211.7]) by alpha.dante.org.uk with esmtp (Exim 3.12 #4) id 13WG4l-0003kk-00; Tue, 05 Sep 2000 11:35:35 +0100 Received: from localhost ([127.0.0.1] helo=dante.org.uk) by theta.dante.org.uk with esmtp (Exim 3.12 #4) id 13WG4k-0000A7-00; Tue, 05 Sep 2000 11:35:34 +0100 Message-ID: <39B4CC75.F6532F21@dante.org.uk> Date: Tue, 05 Sep 2000 11:35:34 +0100 From: Konstantin Chuguev Organization: Delivery of Advanced Networking Service to Europe Ltd. X-Mailer: Mozilla 4.75 [en] (X11; U; SunOS 5.6 sun4u) X-Accept-Language: en, ru MIME-Version: 1.0 To: John Toon Cc: freebsd-hackers@freebsd.org Subject: Re: Shared Memory Issues References: <39B4BD1D.676139D4@btinternet.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG John Toon wrote: > Hi, > > I've scoured through the net and the mailing archives, but was unable to > find any satisfactory information on a certain problem I'm suffering at > the moment. > > After getting the dreaded "shmget() failed" error message, I have since > tried several recompiles of the kernel to fix the problem. > The same with me. > > I added > > options SHMMAXPGS=16385 > options SHMMAX=(SHMMAXPGS*PAGE_SIZE+1) > > to my new kernel and recompiled. > I tried this without success. > > However, under XFree86 4.0, I still seem to be getting shared memory > issues. > I'm using XFree86 3.3.6 with the server of 3.3.5. The problem is not in XFree, but in imlib. > > Compupic refuses to start under GNOME issuing > > X Error of failed request: BadAccess (attempt to access private > resource denied) > Major opcode of failed request: 146 (MIT-SHM) > Minor opcode of failed request: 1 (X_ShmAttach) > Serial number of failed request: 2961 > Current serial number in output stream: 2962 > > Yet works under VTWM - until I load up a few applications, when it > terminates again, with the same problem. More annoyingly, FXTV also dies > with the same problem. > > Next, I tried another kernel, this time with the following options: > > options SEMMNI=100 > options SEMMNS=300 > options SEMUME=100 > options SEMMNU=150 > options SHMMAXPGS=16385 > > I omitted the SHMMAX option, as I have read that this option is now > deprecated. Unfortunately, this kernel was not better. > For me, playing with SHM options made things worse than it was in the default SHM kernel configuration. > > I'm currently running FreeBSD 4.0-RELEASE. > > Several questions; > > 1. If I upgrade to 4.1-STABLE (which I will be soon), will the shared > memory issue disappear? I doubt so. I'm running 5.0-CURRENT, and still have the problem. -- * * Konstantin Chuguev - Application Engineer * * Francis House, 112 Hills Road * Cambridge CB2 1PQ, United Kingdom D A N T E WWW: http://www.dante.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message