Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!elroy.jpl.nasa.gov!decwrl!sgi!shinobu!odin!moose.asd.sgi.com!jwag From: jwag@moose.asd.sgi.com (Chris Wagner) Newsgroups: comp.sys.sgi Subject: Re: Arena data gone between shows ! Message-ID: <1990Nov8.234154.10797@odin.corp.sgi.com> Date: 8 Nov 90 23:41:54 GMT References: <9011072327.AA12206@karron.med.nyu.edu> Sender: news@odin.corp.sgi.com (Net News) Reply-To: jwag@moose.asd.sgi.com (Chris Wagner) Organization: Silicon Graphics, Research & Development Lines: 36 In article <9011072327.AA12206@karron.med.nyu.edu>, karron@KARRON.MED.NYU.EDU writes: > > I am allocating an arena, and each program that uses it checks the value > in usgetdata(). If it is zero, then assume that the arena is a virgin, > and the first thing that any of the programs do is setup a directory > of addresses for data structures inside the arena, and then uscalloc() > the data structures. > > I find that if all of the programs associated with an arena terminate, then > the data inside the arena is corrupted, deleted, or somthing, but the > value in usgetdata() is untouched. > > If I do an od of the data, I can see the strings that my programs left > behind, but something is wrong from the programs point of view. > > I would like an arena to preserve its state between programs. Is that possible ? > > An additional note: Is there anyway to identify arenas as special files ? > The file commands does not recognize then. I have not tried workspace default > sgi rules. Are they tagged ? Since I don't want to delete old arenas, is there > any way to clean them out if they are not touched for a day or so ? I know > that they don't use up disk space, but they do use up more valuable core. > The current design is that if upon a usinit it finds that no program is still attached to the arena it clobbers it - alas it doesn;t clobber the getinfo/putinfo location. being able to idnetify them with file(1) is a good idea. In fact they do use up disk space (as an ls -l) will show. Chris Wagner