Alejandro Saez (cano++at++krusty.engr.sgi.com)
Thu, 13 Aug 1998 19:29:32 -0500
> This memory is not freed when I delete the entities; instead, it seems
> to be reused for subsequent entities. It is allocated in binary
> exponential form:
This is the normal behaviour for malloc, the allocated memory is not really
freed to other processes after the free operation, it's just marked free for
future use within the same application. This won't be really freed after the
application is exited. I understand this is the normal UNIX way of doing it.
I don't know what _pfCuller does.. it's just that you sounded worried about
this being abnormal and just wanted to say it isn't
>
> 11296 bytes allocated in 2 blocks
> 22592 bytes allocated in 4 blocks
> 45184 bytes allocated in 8 blocks
> 90368 bytes allocated in 16 blocks
> 180736 bytes allocated in 32 blocks
> 361472 bytes allocated in 64 blocks
>
> This is worrying because if my calculations are correct, the memory
> used is (5648 bytes) * number-of-entities * number-of-channels; if I
> have 5000 entities on a 3-pipe stereo machine my usage is 161 MB for
> something I know nothing about.
>
> Can someone peer into the pfSourceCode and tell me what _pfCuller is
> doing in this case and how I might avoid it?
>
> Thanks,
> Dan
> --
> Daniel Williams, Systems & Scientific Software
> Voice: (215) 885-1573 Email: sass++at++acm.com
> Independent Consultant to: Sarnoff Corporation
> Voice: (609) 734-2153 Email: dwilliams++at++sarnoff.com
> =======================================================================
> 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 Daniel Williams
--
------------------------------------------------------------------------
Alejandro Saez
Software Engineer
Silicon Chile S.A.
Avda. Santa Maria 2560
E-mail: asaez++at++silicon.cl Providencia
Phone: +56 (2) 203 3371 Ext. 107 Santiago
Fax: +56 (2) 203 3370 Chile
------------------------------------------------------------------------
This archive was generated by hypermail 2.0b2 on Thu Aug 13 1998 - 16:31:35 PDT