Did you try the function I posted on Nov 15? It returns the high water mark, like sbrk(0) and works for RH Linux (which is dlmalloc, AFAIK).
/Jean Brouwers PS) Here is that code again (for RH Linux only!) size_t hiwm (void) { /* info.arena - number of bytes allocated * info.hblkhd - size of the mmap'ed space * info.uordblks - number of bytes used (?) */ struct mallinfo info = mallinfo(); size_t s = (size_t) info.arena + (size_t) info.hblkhd; return (s); } -- http://mail.python.org/mailman/listinfo/python-list