RE: pfSharedArena Problems

New Message Reply Date view Thread view Subject view Author view

From: Ran Yakir (rtset++at++netvision.net.il)
Date: 02/06/2001 00:51:57


Xian,

1. Just to make sure, areyou running on Irix or Linux? The remapLibs script
works only for Irix. Let's assume that's the case. If you compile with o32,
you should use remapLibsO32 to do the remapping. If you compile with n32,
which is the default on Irix 6.4 and up, you should run remapLibs. What the
script does is to run your program (which is supplied as the second
argument) using the debug version of the loader. After the program exits,
the script analyses which libraries are loaded by your program, and remaps
those. The remapped library are then copied into the directory sepcified as
the first argument to the script. If your program dynamically loads
additional shard objects with dlopen() BEFORE pfInit() is called, those
libraries have to be added to the processed libraries, by supplying their
names as additional arguments to the script.
After the remapping, you should force your program to load libraries only
from the directory of the remapped libs. You do that by setting the
LD_LIBRARY_PATH or LD_LIBRARYN32_PATH for o32 or n32 programs respectively.
Do you manage to run the demo I supply and get large libraries? I suggest
that you just modify the demo script to run your program.

2. The arenadebug is packaged as Irix distribution. When you untar, the
files will go into a directory called arenadebug. Then you run
swmgr -f arenadebug
to install the package. You must run as root. The documentation in my web
page instructs you on how to run your programs with it.

Good luck
Ran

> -----Original Message-----
> From: howxn++at++ivlab.com.sg [mailto:howxn++at++ivlab.com.sg]
> Sent: Tuesday, February 06, 2001 8:41 AM
> To: Ran Yakir; howxn++at++ivlab.com.sg; info-performer++at++sgi.com
> Subject: RE: pfSharedArena Problems
>
>
> Hi,
>
> I came across your page a while ago, and find it resourceful.
> However, I came
> across these problems when trying to use your software:
>
> i.) remapLibs, I can remap the library, but it seems doesn't
> affect my program
>
> at all. I can allocate to a maximum of 1G to sharedArena without
> using the script.
>
> I need around 1.5G. I have runned the script but I think I didn't
> set the environment
>
> variable correctly. I tried setting both LD_LIBRARY_PATH and
> LD_LIBRARYN32_PATH
>
> as shown in the DEMO and the script, but it seems I get the wrong
> variable.
>
>
> ii.) arena_debug, I wasn't able to use it. Do I need to install
> it in some way,
>
> or do I just untar it and use it as a library?
>
> Any help will be appreciated. Thanks.
>
> Also, I have a question about the share Arena. It appears now
> that the memory
> is slowly eaten up after the program is launched. It'll run
> around 30 minutes
> before it eventually jump out and display the ShareArena Error.
> Anyone care
> to enlighten me why is the memory leak? I have checked through my
> program, and
> am quite sure that there is minimal memory leak, if any. So I am
> suspecting
> it might be a performer problem.
>
> With regards,
> Xian Neng
>
>
> >Hi Xian,
> >
> >Look at my website for a solution for allocating arenas up to
> 1.5GB large.
>
> >More than that is not likely to succeed on 32 bit programs. The
> address is
>
> >http://rtset.co.il/rany/index.html and dive into the downloads section.
> >
> >In there you will also find a program called "arenadebug" which
> can help you
>
> >debug the allocation of memory inside the arena.
> >
> >Please write to me after you install arenadebug, if you need
> helpin finding
>
> >your memory leak.
> >
> >Ran
> >
> > __ | Ran Yakir
> > /_) _ __ \ / _ / o __ | vi[z]rt
> >/ )_ (_(_) ) \/ (_(_/<_(_)( |
> > _/ |
> >-------------------------------------+--------------------------------
> >Phone : | E-mail : ryakir++at++vizrt.com
> ><mailto:ryakir++at++vizrt.com>
> > Work : 972-9-9552236 Ext #219 | rany++at++rtset.co.il
> ><mailto:rany++at++rtset.co.il>
> > Res. : 972-9-7489974 |
> > Cell.: 972-58-713040 |
> >Fax : 972-9-9552239 |
> >
> >http://rtset.co.il/rany/index.html <http://rtset.co.il/rany/index.html>
> >
> >
> >
> >> -----Original Message-----
> >> From: howxn++at++ivlab.com.sg [mailto:howxn++at++ivlab.com.sg]
> >> Sent: Friday, February 02, 2001 9:28 AM
> >> To: info-performer++at++sgi.com
> >> Subject: pfSharedArena Problems
> >>
> >>
> >>
> >> I am running a pretty big program and requires quite big arena
> >> size. I am able
> >> to allocate 1G of Shared memories, but anything more than that
> >> will be halved.
> >>
> >>
> >> And I am curious as to what can cause the excessive usage of
> >> shared memory.
> >> Even I preload every model and texture at the start of the
> >> programmed, the arena
> >> seems to keep increasing during runtime.
> >>
> >> Any suggestion will be very much appreciated. Thanks
> >>
> >> Xian Neng
> >> ---------
> >>
> >> email: howxn++at++ivlab.com.sg
> >> -----------------------------------------------------------------------
> >> List Archives, FAQ, FTP: 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
> >
> >
> -----------------------------------------------------------------------
> List Archives, FAQ, FTP: 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


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Tue Feb 06 2001 - 00:51:02 PST

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