MathGroup Archive 2001

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Memory Leak

  • To: mathgroup at smc.vnet.net
  • Subject: [mg30060] Re: Memory Leak
  • From: Albert Retey <albert.retey at visualanalysis.com>
  • Date: Thu, 26 Jul 2001 01:19:58 -0400 (EDT)
  • Organization: Visual Analysis AG
  • References: <9jlkhg$8iu$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

"Carl K. Woll" wrote:
> 
> Hi all,
> 
> I've discovered another memory leak in Mathematica. When I execute the
> following code:
> 
> In[6]:=
> Do[Print[MemoryInUse[]]; ListConvolve[{1, 2, 3},
>     {2, 3, 4}], {10}]
> 
> 1255008
> 1255144
> 1255168
> 1255192
> 1255216
> 1255240
> 1255264
> 1255288
> 1255312
> 1255336
> 
> You can see that each loop has an increase in the memory usage for no
> apparent reason. This memory leak occurs with version 4.0 under WindowsNT.
> It does not occur with version 4.1 under Linux. I would appreciate it if
> anyone out there with a different configuration than the above would check
> out whether a memory leak exists for their configuration.
> 
> Carl Woll
> Physics Dept
> U of Washington

Mathematica 4.0 for Linux
Copyright 1988-1999 Wolfram Research, Inc.
 -- Motif graphics initialized -- 

In[1]:= Do[Print[MemoryInUse[]]; ListConvolve[{1, 2, 3}, {2, 3, 4}],
{10}]
888872
888976
888992
889008
889024
889040
889056
889072
889088
889104

Mathematica 4.1 for Microsoft Windows
Copyright 1988-2000 Wolfram Research, Inc.
 -- Terminal graphics initialized -- 

In[1]:= Do[Print[MemoryInUse[]]; ListConvolve[{1, 2, 3}, {2, 3, 4}],
{10}]
1104240
1104352
1104352
1104352
1104352
1104352
1104352
1104352
1104352
1104352

Seems to be corrected from version 4.0 to 4.1, for both Linux and
Windows NT...
(I guess for other OS too?)

Albert


  • Prev by Date: Re: password problem
  • Next by Date: Re: Memory Leak
  • Previous by thread: Re: Memory Leak
  • Next by thread: Re: Memory Leak