[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Memory leak in swarm 2.0.1?
From: |
jalex |
Subject: |
Memory leak in swarm 2.0.1? |
Date: |
Sat, 9 Oct 1999 18:19:22 -0700 (PDT) |
This afternoon I noticed a slight memory leak in one of my programs,
built around the ExperimentSwarm design from the tutorials. I list
below the lines grabbed from "top" which (I think) indicate this. You
can see that the number of kilobytes used steadily increases by four
approximately every minute. (This happens even when I compile the
model under the newest 2.0.1 RPMS available from SFI.)
PID USER PRI NI SIZE RSS SHARE STAT LIB %CPU %MEM TIME COMMAND
15064 jalex 18 0 4260 4260 2080 R 0 89.6 6.7 0:20 lt-nash
15064 jalex 12 0 4264 4264 2080 R 0 98.4 6.7 1:08 lt-nash
15064 jalex 14 0 4268 4268 2080 R 0 98.4 6.7 2:07 lt-nash
15064 jalex 19 0 4272 4272 2080 R 0 97.8 6.7 3:01 lt-nash
15064 jalex 15 0 4276 4276 2080 R 0 98.5 6.7 4:04 lt-nash
There's a chance I might be doing something wrong in my implementation
of [ModelSwarm drop]. Just for the record, here it is:
// ModelSwarm drop
- (void) drop
{
[game drop];
[agentSet removeAll];
[agentSet drop];
[world drop];
[populationStatistics drop];
[super drop];
}
// Definition of ModelSwarm
@interface ModelSwarm: Swarm
{
int generation;
id <Grid2d> world;
id game;
ParameterManager *parameterManager;
PopulationStatistics *populationStatistics;
id agentSet;
id modelActions;
id modelSchedule;
id stopSchedule;
}
Any suggestions would be much appreciated, as this leak prevents me
from setting up a series of experiments to crank out over a couple
days.
Thanks,
Jason
==================================
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.
- Memory leak in swarm 2.0.1?,
jalex <=
- Message not available
- Message not available