Re: Using shared arenas

New Message Reply Date view Thread view Subject view Author view

John Rohlf (jrohlf++at++tubes)
Tue, 22 Mar 94 14:16:11 PST


>
> Is there any problem with using shared memory arenas under Performer?
> IE: usinit() in addition to pfDataPool().

        An interaction is possible since pfNewDPool sets up some usconfig
        parameters that will be inherited by your usinit but these
        default are almost always reasonable:

    usconfig(CONF_INITUSERS, MAXDPUSERS); /* up to MAXDPUSERS users */
    usconfig(CONF_ARENATYPE, US_GENERAL); /* allow unrelated processes */
    usconfig(CONF_LOCKTYPE, US_NODEBUG); /* fastest locks */

        Also, you may have trouble mapping datapools to the same
        virtual address if you have your own usinit arenas that
        aren't shared by everyone. Perhaps jimh could comment on this?

> More generally: What is the best way to share memory between non-related
> processes in Performer without having to link with Performer on both
> processes.

        usinit and usgetinfo/usputinfo are what datapools use so this
        method should be OK.


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:50:13 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.