Re: Shared Arena size problem

New Message Reply Date view Thread view Subject view Author view

Luis Ignacio Miranda (lmiranda++at++buitre.madrid.sgi.com)
Mon, 29 Sep 1997 09:13:12 -0600


Brandon,

Try this:

At the begining of the main, introduce a call like UseAllMemory();

where:

#include <sys/resource.h>

void UseAllMemory( void )
{
    struct rlimit limits;

    /* increase the systune limit for the text size */
    getrlimit( RLIMIT_VMEM, &limits );
    limits.rlim_cur = limits.rlim_max;
    setrlimit( RLIMIT_VMEM, &limits );

    /* heaps */
    getrlimit( RLIMIT_DATA, &limits );
    limits.rlim_cur = limits.rlim_max;
    setrlimit( RLIMIT_DATA, &limits );
}

use the environment variable:

# setenv PFSHAREDBASE 0x38010000

and compile with OpenGL and optimizing (make oglopt)

it should work

Regards,

Nacho

On Sep 26, 8:42am, Brandon M. Lenz wrote:
> Subject: Shared Arena size problem
> Hi,
>
> I'm having a problem with shared memory allocation on a Onyx2
> Infinite Reality System running IRIX 6.4 and Performer 2.1. Every time
> our application attempts to allocate more than 300MB of shared memory
> it crashes. I have attempted to create a shared arena of 500MB (with
> pfSharedArenaSize), but it still crashes when my application exceeds
> 300MB. My machine has 512 MB of main memory and 500MB of available
> swap space. I'm running the application from a c shell with an unlimited
> virtual memory size and my application is compiled with o32. Does anybody
> have any idea what is wrong? It's works fine on an Onyx RE2.
>
> Thanks!!!!
>
> Brandon Lenz
> NCCOSC RDT&E DIV code D44206
> (619)-553-3634
> lenz++at++nosc.mil
> =======================================================================
> List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
>-- End of excerpt from Brandon M. Lenz

-- 
*******************************************************************************
* Luis Ignacio Miranda               Edificio "Santa Engracia 120"            *    
* Silicon Graphics, S.A.             Plaza del Descubridor Diego de Ordas,3   *
* Systems Engineering Division       28003 MADRID  SPAIN                      *
* e-mail : lmiranda++at++madrid.sgi.com   Telephone ++ 34 1 3984200                *
* v-mail : 6-368-4227                Fax  ++ 34 1 3984201                     *
*******************************************************************************

======================================================================= 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:56:01 PDT

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