RE: [info-performer] Shared memory

Date view Thread view Subject view Author view

From: Dorosky, Christopher G (christopher.g.dorosky++at++lmco.com)
Date: 01/27/2004 07:13:51


Try (in your code, before pfInit())
putenv(PFSHAREDBASE=0x18000000);
and so on.

Going to root via the set-user-id bit (it is not the sticky bit, that is "t" (I think)) sometimes obliterates the environment variables.

-----Original Message-----
From: owner-info-performer++at++performer.engr.sgi.com
[mailto:owner-info-performer++at++performer.engr.sgi.com]On Behalf Of Luc
Leblanc
Sent: Monday, January 26, 2004 2:33 PM
To: info-performer++at++sgi.com
Subject: [info-performer] Shared memory

Hi,

I'm having problem allocating more than 1 Gig. of shared memory (using
PFSHAREDBASE and PFSHAREDSIZE) when my application is running in realtime (as
root). I have successfully use the "remaplibs" application and was able to
get up to 1.7 Gig but only when my application is not running as root. As
soon as I turned on the sticky bit, my application refuse to use the base
adress specify with PFSHAREDBASE (and revert back to the default 0x40000000).

This is a Performer 2.2 application running on IRIX 6.5.5 on an Onyx 2 IR2.
My settings are:

setenv PFSHAREDBASE 0x18000000
setenv PFSHAREDSIZE 1700000000
setenv PFNFYLEVEL 6

The LD_LIBRARYN32_PATH variable is also set properly to use the remapped
libraries. As mentionned before, these settings work when the application is
not running in realtime.

The permissions on the files are (when it does not work):

-rwsr-xr-x 1 root sys 6755184 Dec 3 15:25 myapp*

Anyone can help me with this?

Thanks in advance.

Luc Leblanc

-----------------------------------------------------------------------
   List Archives, Info, FAQ: http://www.sgi.com/software/performer/
   Open Development Project: http://oss.sgi.com/projects/performer/
                Submissions: info-performer++at++sgi.com
            Admin. requests: info-performer-request++at++sgi.com
-----------------------------------------------------------------------
 Download OpenGL Performer 3.1 Early-Access Alphas:
 ftp://download.sgi.com/pub/access/projects/performer/download/3.1EA/
-----------------------------------------------------------------------

-----------------------------------------------------------------------
   List Archives, Info, FAQ: http://www.sgi.com/software/performer/
   Open Development Project: http://oss.sgi.com/projects/performer/
                Submissions: info-performer++at++sgi.com
            Admin. requests: info-performer-request++at++sgi.com
-----------------------------------------------------------------------
 Download OpenGL Performer 3.1 Early-Access Alphas:
 ftp://download.sgi.com/pub/access/projects/performer/download/3.1EA/
-----------------------------------------------------------------------


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Tue Jan 27 2004 - 13:43:38 PST