swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Memory allocation/deallocations in swarm -- lead to thrashing?


From: Marcus G. Daniels
Subject: Re: Memory allocation/deallocations in swarm -- lead to thrashing?
Date: 20 Jan 1998 09:38:02 -0800

>>>>> "JOH" == joh  <address@hidden> writes:

JOH> but also simple applications such as heatbugs grow their
JOH> memory consumptions. Since the pop. size in heatbugs is static, I
JOH> am a bit puzzled of the "memory leak."  If you haven't tried, run
JOH> heatbugs in batchmode for a large durations. Then check the
JOH> memory usage by using the commands either "ps u" or "ps m" (The
JOH> command may slightly different for different OSs) You can see the
JOH> amount of memory used by heatbugs grows slowly but steadily.

How many iterations?  How big?  I don't see anything startling happen
with heatbugs after 50000 iterations (5 meg).

But it is entirely possible there are memory leaks in Swarm.  That's
just what we have to fight with for using a implementation language
without garbage collection!

Incidentally, within the GNU Objective C runtime, there are hooks
for replacing malloc, free, etc. with versions that do conservative 
garbage collection, canonically the Boehm collector:

ttp://reality.sgi.com/employees/boehm_mti/gc.html

So supposing you had a simulation that ran with the Boehm collector
with a virtual memory footprint consistently lower than without it,
that would suggest a memory leak in Swarm or one of the supporting
libraries.


                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.
                  ==================================


reply via email to

[Prev in Thread] Current Thread [Next in Thread]