Re: [info-performer] amallinfo and getArenaBytesUsed

New Message Reply Date view Thread view Subject view Author view

From: Yair Kurzion (yair++at++polygon.engr.sgi.com)
Date: 07/08/2002 16:59:49


Hello Andreas !

> I have a simple question:
>
> What is the difference between calling amallinfo using usmblks +
> uordblks) and pfMemory::getArenaBytesUsed? Should they report the same
> allocated shared memory size?

getArenaBytesUsed reports the number of bytes currently allocated by pfMalloc
(ignoring the bytes freed by pfFree). It is computed internally in libpf.

amallinfo is an IRIX system call (I doesn't exist on Linux). I am not sure
exactly what (usmblks + uordblks) return. I don't know whether fragmented
memory grows this sum or not. I use getArenaBytesUsed to track memory leaks
because it completely ignores fragmentation.

-yair

-- 
\_________  \_____  \__    \__  \_____        
\_________  \_____   \__   \__  \_____         Yair Kurzion
       \__     \__   \____\__      \__         yair++at++sgi.com
       \__          \__  \__                  (650) 933-6502
       \__          \__   \__          
       \__          \__    \__             


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Mon Jul 08 2002 - 17:00:28 PDT

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