Re: running out of performer shared memory

New Message Reply Date view Thread view Subject view Author view

Mark Baranowski (baranowski++at++marklynn.demon.co.uk)
Thu, 26 Jun 1997 07:58:22 GMT


On Wed, 25 Jun 1997 16:36:14 -0700, Anita wrote:

>Hi :
>
> I am having trouble with performer shared memory after I put new code
>to pfMalloc (in its shared arena) some structures in pfList. The message I get
>at that line is :
>
>pfMemory::new() Unable to allocate 48 bytes from arena 0x18040000.
> Try using pfSharedArenaSize() to increase the arena size
> (currently 262144.00 KBytes) and check for adequate setrlimit()
> values and available space on swap (or pfTmpDir()).
>
>and the program dumps core after this. The core file also points to the same
>problem.
>
>
>I increased shared arena size to 454288000 bytes (can't increase beyond this).
>But I still get the same message even though it gives current size as the new
>one. The file that I load is very simple and there should be enough memory
>for everything, because very big scenegraph files (minus the new code) have
>so far been loading allright. I am sure that the new allocation is not taking
>more memory than what would be used when loading big scene graphs (unless a
>different arena is used by performer for its nodes?). I made sure that ipcs
>output is clean.

Could this be the problem someone (Chris Volpe I think) had at the
beginning of the year. I can't remember the exact details, but I
remember his solution was to put a sbrk(1) function call before
pfInit.

>Is there a call to check the shared memory usage from the program? How can I
>further increase the arena size? Any help on this problem is greatly
>appreciated.

I basically asked this at the beginning of the year, and got the
following response from Sharon Clay:

"You can use amallinfo() to get the allocation in the shared arena.
So, you can call amallinfo() before and after you load your scene
and look at how much you grew."

Regards,

Mark.

-- 
Mark Baranowski at work (baranowski++at++marklynn.demon.co.uk)
Pera, VR Division. Melton Mowbray, Leics. LE13 0PB. UK.
Tel: +44 (0)1664 501501, Fax: +44 (0)1664 501553
All opinions expressed are my own and should not be viewed
as representing my employer unless stated otherwise.
===================================List Archives, FAQ, FTP:  http://www.sgi.com/Technology/Performer/
            Submissions:  info-performer++at++sgi.com
        Admin. requests:  info-performer-request++at++sgi.com

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

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