pfDataPools ???

New Message Reply Date view Thread view Subject view Author view

Darin C. Partridge (darin++at++paradox.idec.sdl.usu.edu)
Wed, 24 May 1995 10:22:55 -0600


I would like to monitor a performer with an unrelated process using shared
memory. I didn't want Performer code in the unrelated process so I set up
my own shared memory with usinit. This gave me an error so I switched to
using pfNewDPool to set the memory up for me. The problem is that I got
the very same error.

The memory is set up in the unrelated process (3611 below) using:

control_pool = pfNewDPool( 256, "viperfly" );
shmem = pfDPoolAlloc( control_pool, sizeof(float)*3, 0 );

I attach from the performer app using:

control_pool = pfAttachDPool( "viperfly" );
shmem = pfDPoolFind( control_pool, 0 );

The problem is that I get an error when I try to attach
"usinit:ERROR:Virtual Address 0x4c0000 already in use process 3614"
what am I doing wrong?

The complete trace is below:

TRACE: Process 3611 creating new arena /usr/tmp/viperfly.pfdpool:locktype 0
maxusers 32
TRACE: Process 3611 Initializing R4000 MP LOCKS
TRACE: Header size 2680 malloc arena size 49152
TRACE: arena ++at++ 0x4c0000 gets semaphore device 0xbc0009 sfd 6
TRACE: Process 3611 added as tid 0 sfd 6 arena /usr/tmp/viperfly.pfdpool
TRACE: Process 3611 usinit succeded for arena /usr/tmp/viperfly.pfdpool ++at++
0x4c0000
0.000000 0.000000 0.000000
TRACE: Process 3614 creating new arena /usr/tmp/pfSemaFile.a000sU:locktype 0
maxusers 65
TRACE: Process 3614 Initializing R4000 MP LOCKS
TRACE: Header size 2680 malloc arena size 65536
TRACE: arena ++at++ 0x5c0000 gets semaphore device 0xbc000a sfd 4
TRACE: Process 3614 added as tid 0 sfd 4 arena /usr/tmp/pfSemaFile.a000sU
TRACE: Process 3614 usinit succeded for arena /usr/tmp/pfSemaFile.a000sU ++at++
0x5c0000
TRACE: Process 3614 creating new arena /usr/tmp/pfClock.3614.pfdpool:locktype 0
maxusers 32
TRACE: Process 3614 Initializing R4000 MP LOCKS
TRACE: Header size 2680 malloc arena size 49152
TRACE: arena ++at++ 0x600000 gets semaphore device 0xbc000e sfd 7
TRACE: Process 3614 added as tid 0 sfd 7 arena /usr/tmp/pfClock.3614.pfdpool
TRACE: Process 3614 usinit succeded for arena /usr/tmp/pfClock.3614.pfdpool ++at++
0x600000
TRACE: Process 3615 already mapped to arena /usr/tmp/pfClock.3614.pfdpool
TRACE: Process 3615 added as tid 1 sfd 7 arena /usr/tmp/pfClock.3614.pfdpool
TRACE: Process 3614 joining existing arena /usr/tmp/viperfly.pfdpool ++at++ 0x4c0000
usinit:ERROR:Virtual Address 0x4c0000 already in use process 3614
Performer Warning (16): pfDPoolFind() Null pfDataPool.
Performer Info (16): All 4 processors available on this machine.
TRACE: Process 3616 added as tid 1 sfd 4 arena /usr/tmp/pfSemaFile.a000sU
TRACE: Process 3617 added as tid 2 sfd 4 arena /usr/tmp/pfSemaFile.a000sU
TRACE: Process 3618 added as tid 3 sfd 4 arena /usr/tmp/pfSemaFile.a000sU
TRACE: Process 3614 creating new arena
/usr/tmp/pfUtilDataPool3614.pfdpool:locktype 0 maxusers 32
TRACE: Process 3614 Initializing R4000 MP LOCKS
TRACE: Header size 2680 malloc arena size 106056
TRACE: arena ++at++ 0x6c0000 gets semaphore device 0xbc000f sfd 12
TRACE: Process 3614 added as tid 0 sfd 12 arena
/usr/tmp/pfUtilDataPool3614.pfdpool
TRACE: Process 3614 usinit succeded for arena
/usr/tmp/pfUtilDataPool3614.pfdpool ++at++ 0x6c0000

-- 
         _                                                          _
      __(_)__                                          ,,,       __(_)__ 
     (_______)                                        (o o)     (_______)
      |     |-------------------------------------oOO--(_)--OOo--|     |
      |     |  Darin C. Partridge                   _________    |     |
      |     |  Space Dynamics Laboratory (CSD)     |         |   |     |
      |     |  1695 North Research Parkway         | Gone    |   |     |
      |     |  Logan, UT  84321                    | Fishing |   |     |
      |     |                                      |_________|   |     |
      |     |  Voice: (801) 755-4348              ____________   |     |
      |     |    Fax: (801) 755-4366             /___________/   |     |
      |     |  Email: darin++at++sdl.usu.edu                          |     |
      |_____|----------------------------------------------------|_____|
      (_____)  (http://www.csd.sdl.usu.edu/darin_exec/homedoc)   (_____)
        (_)                                                        (_)

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:51:30 PDT

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