Operating System - HP-UX
1833777 Members
2126 Online
110063 Solutions
New Discussion

Re: Memory consumption problem

 
Drew Mcpheeters
New Member

Memory consumption problem

I have a simple little test program (see attachment) which does nothing more
than malloc a block and then free the block, repeatatively inside a loop. Yet
the process size (when viewed via ps -l) continues to grow.

Why doesn't the malloc reuse freed memory when it is available?
1 REPLY 1
Steve Wilson_12
New Member

Re: Memory consumption problem

I tested this on a T600 running 11.00/64, and a 735 running 10.20 and the size
did not grow.