*BSD News Article 97916


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!uunet!in1.uu.net!134.222.90.2!EU.net!news-peer.gsl.net!uwm.edu!news.he.net!cnn.nas.nasa.gov!not-for-mail
From: Hugh LaMaster <lamaster@nas.nasa.gov>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Mbone/vic shared memory problems (was Re: non-present SYSVSHM?)
Date: Tue, 17 Jun 1997 18:30:45 -0700
Organization: NASA Ames Research Center
Lines: 107
Message-ID: <33A73A45.353C@nas.nasa.gov>
References: <338C5A5E.45D397DC@ms1.hinet.net>
		    <Pine.BSF.3.95.970605214717.20031A-100000@public.ug.cs.sunysb.edu> <5n8mak$20d@ui-gate.utell.co.uk> <339EFDD2.3359@nas.nasa.gov>
NNTP-Posting-Host: win144.nas.nasa.gov
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.0 (X11; U; IRIX 6.2 IP22)
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:43064

Hugh LaMaster wrote:

> For some reason, vic2.8 doesn't work perfectly.
:

> For some reason, vic apparently wants to open a fresh
> shared-memory segment for each window.  (Not all
:
> 4 or more people are broadcasting), I get the following
> message:
> 
>   shmat: too many open files
> 
> Also, when I have more than about ten segments total open,
> (this may be a red herring) I get
> 
>   X Error of failed request: BadAccess (attempt to access
>   private resource denied)
> 
> And, then the vic which tried to create the next window
> dies completely.
> 
> So, really, I have three questions:
> 
> 1) How can I increase the number of possible shared memory
> segments available
> 
> 2) How can I increase the number of files memory-mapped files
> a particular process may open
> 
> 3) Why is vic on FreeBSD (is this an XFree86 question, or,
> related to some other issue?) trying to open a new segment
> for every video window?  When I do an "ipcs" on, e.g., Irix6.2,
> I only see *one* segment open no matter how many video windows
> are going...

When I run vic now, I get one segment for each thumbnail,
and another one for each larger display window.  On Irix,
I only get one segment showing with "ipcs".

> 
> [The environment is FreeBSD 2.2.1/XFree86
> with either of the following two systems.
> I get exactly the same errors on both systems:]
> 
> Pent 166/16 MB/SCSI/ATI Graphics Xpression/3Com3C595
> PPro 200/64 MB/SCSI/#9Motion771/SMC DEC tulip 10/100
> 
> I realize that the *problem* may be between vic and XFree86,
> but, a brute force solution [just increase shared-memory
> resources] may work just fine, especially on the 64 MB system.


After looking in the LINT config file, I tried 
the following brute force solution, and it seems 
to work fine.  YMMV.

-----------------------------------------------------------------------

  options         SYSVSHM                 #Shared memory enable 
  options         SHMALL=1025
  options         "SHMMAXPGS=1025"        # 4Mbytes sharable memory
  options         "SHMMAX=(SHMMAXPGS*PAGE_SIZE+1)"
  options         SHMMIN=2
  options         SHMMNI=33
  options         SHMSEG=33               # Was "9" in "LINT" 


-----------------------------------------------------------------------
------------------
------------------
------------------
------------------
------------------
------------------
------------------
------------------
------------------
------------------
------------------
------------------
------------------
------------------
------------------
------------------
------------------
------------------
------------------
------------------
------------------
------------------
------------------
------------------
------------------
------------------
------------------
------------------



-- 
  Hugh LaMaster, M/S 258-5,     ASCII Email: 
hlamaster@mail.arc.nasa.gov
  NASA Ames Research Center     Or:           lamaster@nas.nasa.gov
  Moffett Field, CA 94035-1000  No Junkmail:  USC 18 section 2701
  Phone:  415/604-1056          Disclaimer:   Unofficial, personal
*opinion*.