How does AIX dispose memory?

How does AIX dispose memory?

Post by Winterhalter Tobi » Fri, 06 Apr 2001 23:01:05



Hi!

I have a question about memory usage/freeing of applications running unter
AIX.

First, let me describe my situation: I have written a server application,
which forks a new process for each client session. It's written in Pascal,
so the Pascal runtime library is also involved. The child processes request
some memory dynamically with "new", but they don't "dispose" those pointers,
before their termination. During runtime, I monitor my system's memory with
svmon, looking for the usage of real memory and paging space. What I can
see, is, that both usages (and especially real memory) are increasing by
every fork. But after termination of the child processes, usage will not go
down the same size as it was increasing before. So, by the time (forking and
terminating some childs), the memory consumption is constantly increasing.

Now my question: When the child process terminates, isn't the system
responsible for freeing all the used memory of this process? Is it possible,
that some of the child's memory is still marked as used, until the father
process also terminates? How does AIX handle all this, is there a
documentation about this online (I already browsed all information within
InfoExplorer)?

Thanks a lot in advance.

--
Posted from mail.Space.Net [195.30.0.8]
via Mailgate.ORG Server - http://www.Mailgate.ORG

 
 
 

How does AIX dispose memory?

Post by Urban A. Haa » Sat, 07 Apr 2001 10:27:14


A shot in the dark, but is the "runtime" allocating memory with each fork
and not releasing it? Also, the "runtime" could have a memory leak.

There was an interesting discussion going on in comp.unix.internals the last
couple of days on memory allocation/deallocation. I'm cross-posting there as
well to see if the memory gurus want to take a stab at this.

--
Urban A. Haas
CEO - Urban Technology, Inc.
Minneapolis, MN  USA
Phone: (952) 595-8810    Fax: (952) 595-8710

Web: http://www.urbantechnology.com

This e-mail was composed of 100% recycled bits.

> Hi!

> I have a question about memory usage/freeing of applications running unter
> AIX.

> First, let me describe my situation: I have written a server application,
> which forks a new process for each client session. It's written in Pascal,
> so the Pascal runtime library is also involved. The child processes
request
> some memory dynamically with "new", but they don't "dispose" those
pointers,
> before their termination. During runtime, I monitor my system's memory
with
> svmon, looking for the usage of real memory and paging space. What I can
> see, is, that both usages (and especially real memory) are increasing by
> every fork. But after termination of the child processes, usage will not
go
> down the same size as it was increasing before. So, by the time (forking
and
> terminating some childs), the memory consumption is constantly increasing.

> Now my question: When the child process terminates, isn't the system
> responsible for freeing all the used memory of this process? Is it
possible,
> that some of the child's memory is still marked as used, until the father
> process also terminates? How does AIX handle all this, is there a
> documentation about this online (I already browsed all information within
> InfoExplorer)?

> Thanks a lot in advance.

> --
> Posted from mail.Space.Net [195.30.0.8]
> via Mailgate.ORG Server - http://www.Mailgate.ORG


 
 
 

1. How does AIX dispose memory?

A shot in the dark, but is the "runtime" allocating memory with each fork
and not releasing it? Also, the "runtime" could have a memory leak.

There was an interesting discussion going on in comp.unix.internals the last
couple of days on memory allocation/deallocation. I'm cross-posting there as
well to see if the memory gurus want to take a stab at this.

--
Urban A. Haas
CEO - Urban Technology, Inc.
Minneapolis, MN  USA
Phone: (952) 595-8810    Fax: (952) 595-8710

Web: http://www.urbantechnology.com

This e-mail was composed of 100% recycled bits.

2. EtherExpress card

3. AIX 1.2, DOS-Merge, & > 32MB DOS Partition ??

4. Cannot start Win/DOS disks and partitions after RedHat6.1 installation

5. network addresses

6. AIX Shared Memory Segment (Not enough memory)

7. weird RealAudio

8. disposing AF_INET address.port (How to?)

9. Solaris 2.5.1, how to dispose of controlling tty

10. Disposing of pending signals

11. HELP: Connectivity between DOS/DOS and DOS/Linux

12. OS/2 vs DOS vs Windows for memory access