From: Angus Dorbie (dorbie++at++sgi.com)
Date: 06/21/2001 10:01:11
The 2.4 release has better defaults in the pfInit code. You shouldn't
have to do this anymore to get reasonable behaviour.
Some of the tweaks had to be done before the first allocation on the
arena so it's slightly easier for us in pfInit than for you before
pfInit because you would have to create your own arena.
You could try using amallinfo to see if you have a memory leak, and
gmemuseage to see if you can get more insight into the problem.
Cranking up M_MXCHK is always good if you don't have performance issues,
but there are obviously diminishing returns. The archives also have more
information & discussion on exact parameter values, but like I said we
changed the defaults so if you are having issues it's very likely either
within reasonable fragmentation limits or you have a leak.
Cheers,Angus.
Don Tidrow wrote:
>
> Our application creates and deletes numerous pfObjects, based on where the view
> is and how far it can see. As a result, the main pfSharedArena seems to be
> fragmenting pretty badly - at least, that's the guess I have (the app
> somtimes dies with an insufficient memory error, even though amallinfo says
> there's plenty). Are there any parameters I can tweak to reduce the
> fragmentation problem (if that's what it is)? I've been playing with amallopt,
> but it's not very clear from the man pages how it affects the pfArena.
>
> Here's the current amallopt() calls I'm making:
>
> amallopt(M_FREEHD, 1, pfGetSharedArena());
> amallopt(M_MXCHK, 10000000, pfGetSharedArena());
> amallopt(M_MXFAST, 1024, pfGetSharedArena()); // changed this first
> amallopt(M_GRAIN, 16, pfGetSharedArena());
> amallopt(M_BLKSZ, 262144, pfGetSharedArena());
>
> Hints, tips, anyone?
>
> Don
>
> --
> "If Java had true garbage collection, most programs would delete
> themselves upon execution." - Robert Sewell
>
> --------------------------------------------
> | Don Tidrow |
> | Visual Simulation Developer |
> | US Army CECOM-NVESD |
> | ph: (703)704-1361 fax: (703)704-1753 |
> --------------------------------------------
> -----------------------------------------------------------------------
> 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
-- For Performer+OpenGL tutorials http://www.dorbie.com/"Whenever there is a conflict between human rights and property rights, human rights must prevail." --Abraham Lincoln
This archive was generated by hypermail 2b29 : Thu Jun 21 2001 - 09:58:57 PDT