Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2001
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2001

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

Search the Archive

Re: Memory Leak

  • To: mathgroup at smc.vnet.net
  • Subject: [mg30057] Re: [mg30048] Memory Leak
  • From: Andrzej Kozlowski <andrzej at tuins.ac.jp>
  • Date: Thu, 26 Jul 2001 01:19:56 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,
This seems to be a 4.0 problem. Here you can see the leak:

In[1]:=
$Version
Out[1]=
"4.0 for Power Macintosh (July 26, 1999)"
In[2]:=
Do[Print[MemoryInUse[]]; ListConvolve[{1, 2, 3}, {2, 3, 4}],
  {10}]
1807012
1807116
1807132
1807148
1807164
1807180
1807196
1807212
1807228
1807244

However, no leak in the following configurations:

$Version
4.1 for Power Macintosh (November 2, 2000)
Do[Print[MemoryInUse[]];ListConvolve[{1,2,3},{2,3,4}],{10}]
1918684
1918772
1918772
1918772
1918772
1918772
1918772
1918772
1918772
1918772

$Version
4.1 for Mac OS X (April 10, 2001)
Do[Print[MemoryInUse[]];ListConvolve[{1,2,3},{2,3,4}],{10}]
1925716
1925804
1925804
1925804
1925804
1925804
1925804
1925804
1925804
1925804


on 01.7.25 2:00 PM, Carl K. Woll at carlw at u.washington.edu 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
> 
> 
> 
> 

-- 
Andrzej Kozlowski
Toyama International University
JAPAN

http://platon.c.u-tokyo.ac.jp/andrzej/
http://sigma.tuins.ac.jp/~andrzej/



  • Prev by Date: Re: Memory Leak
  • Next by Date: Algorithm
  • Previous by thread: Re: Memory Leak
  • Next by thread: Re: Memory Leak