Re: Memory management
- From: Sam Couter <sam couter dropbear id au>
- To: orbit-list gnome org
- Subject: Re: Memory management
- Date: Wed, 18 Dec 2002 09:13:04 +1100
Anders Selander <selander@pdc.kth.se> wrote:
> However, when I run the code at the target system, a IBM-SP node running
> AIX, with ORBit installed from the source tar-ball, the memory is not
> returned.
What do you mean by "not returned"? Some systems are incapable of
shrinking the heap once it's been allocated, so the process size won't
shrink back to its original size. That memory is still free and
available for malloc() and friends to allocate from though.
> I guess I have to go back and look over the ORBit installation really,
> really close. *sigh*
Try writing a small test program:
void *mem = malloc(bignum);
sleep(5); /* Look at the process size (1) */
free(mem);
sleep(5); /* Check process size again - might not have shrunk */
mem = malloc(bignum);
sleep(5); /* Check process size again -
* shouldn't get any bigger than it was at (1) */
free(mem);
--
Sam "Eddie" Couter | mailto:sam@couter.dropbear.id.au
Debian Developer | mailto:eddie@debian.org
| jabber:sam@teknohaus.dyndns.org
OpenPGP fingerprint: A46B 9BB5 3148 7BEA 1F05 5BD5 8530 03AE DE89 C75C
PGP signature
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]