Re: Memory allocation : when, where, how ?
Lew Hitchner (hitchner++at++netcom.com)
Wed, 19 Jan 1994 10:18:18 -0800
I have also discovered that the Performer objects that must be shared
among the multiple Performer processes (app, cull, draw) can also be
allocated from _ANY_ shared memory, not just shared memory allocated by
pfMalloc(). We are using a multi-process model that has a separate
manager process that starts up our Performer application process via a
fork() and an exec(). The manager process creates its own shared
memory region (using std. Unix shared mem. fns., not pf ones and not
SGI's usinit, etc. fns.) and makes it accessible to the Performer app
process (I did not write that code, so I don't know the details of how
this is done). Each of the other Performer processes (cull, draw)
inherits access to our shared memory as well as the Performer shared
memory. Our geometry data is stored in our own shared memory and when
I create a geoset with vertex and normal data, I can just pass the
pointer to our data in our shared memory without using pfMalloc and
copying it into Performer's shared memory.
I have successfully tested this with Performer 1.2 beta on IRIX 4.0.5
on a single CPU IRIS with MP modes of both APPCULLDRAW and APP_CULL_DRAW.
Lew Hitchner
Xtensory Inc.
Scotts Valley, CA
This archive was generated by hypermail 2.0b2
on Mon Aug 10 1998 - 17:50:09 PDT