Date: Tue, 14 Feb 2006 09:13:29 +1100 From: "Robert Leftwich" <freebsd@rtl.fmailbox.com> To: "David Scheidt" <dscheidt@panix.com> Cc: freebsd-questions@freebsd.org Subject: Re: Memory leak? Message-ID: <1139868809.6940.254283466@webmail.messagingengine.com> In-Reply-To: <20060213214053.GA20537@panix.com> References: <1139792505.30118.254198744@webmail.messagingengine.com> <43F0434F.2000703@locolomo.org> <1139826617.10634.254226042@webmail.messagingengine.com> <20060213214053.GA20537@panix.com>
index | next in thread | previous in thread | raw e-mail
On Mon, 13 Feb 2006 16:40:54 -0500, "David Scheidt" <dscheidt@panix.com>
said:
>
> I've seen (very, very, very, very) large memory leaks on long-lived
> Python processes. I haven't looked at it to figure out if it's
> python, some module, or the application doing something stupid. But
> the processes will grow until they hit their limits.
What's your definition of long-lived? My scenario is that I'm processing
a particular dataset in Python which is launched by a shell script, once
finished (after 30-35mins) the Python app completes and the shell script
launches another instance on a new dataset. All memory allocated by the
finished Python app should be freed/made inactive shouldn't it?
Here's some more data:
After a reboot this is what top says:
Mem: 45M Active, 13M Inact, 61M Wired, 4K Cache, 60M Buf, 2842M Free
Swap: 4068M Total, 4068M Free
which totals 3021M
After 1 dataset it is:
Mem: 107M Active, 1919M Inact, 158M Wired, 16K Cache, 214M Buf, 570M
Free
Swap: 4068M Total, 4068M Free
which totals 2968M
While running on the 6th dataset:
Mem: 1032M Active, 1045M Inact, 260M Wired, 145M Cache, 214M Buf,
4664K Free
Swap: 4068M Total, 108K Used, 4068M Free
which totals 2700.6M
Are my assumptions incorrect, should the totals displayed by top be at
least approximately equal?
Robert
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1139868809.6940.254283466>
