Re: Memory leaks problem
- To: mathgroup at smc.vnet.net
- Subject: [mg132321] Re: Memory leaks problem
- From: <bar at robox.ii.up.krakow.pl>
- Date: Sun, 9 Feb 2014 04:47:46 -0500 (EST)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- Delivered-to: l-mathgroup@wolfram.com
- Delivered-to: mathgroup-outx@smc.vnet.net
- Delivered-to: mathgroup-newsendx@smc.vnet.net
- References: <20140205082549.5383569ED@smc.vnet.net> <ld4rdc$767$1@smc.vnet.net>
unfortunately not,
during my calculation,
after a certain time the memory has been busy
including all swap (48GB+48GB swap) and system crashed....
regards, Olaf
Peter Klamser <klamser at gmail.com> wrote:
>
> ... I think, Mathematica has lazy evaluation built in.
> Therefore it is useless to measure memory in use,
> because the system looks for free memory in ram an
> decides on this its strategy of storing results.
>
> Kind geragds from Peter
>
>
> 2014-02-07 14:07 GMT+01:00 <bar at robox.ii.up.krakow.pl>:
>
>> Unfortunately, this is not an option,
>>
>> In my problem i have to use function
>>
>> IF[z_]:=NIntegrate[F[p],{p,0,z}];
>>
>> and parameter "z" depends on pointer of loop (wsk)
>>
>> I tried to use ClearSystemCache[] and no effects too,
>>
>> In my real calculation it is a big problem:
>> mem:17243496
>> mem:24692800
>> mem:47696432
>>
>> Temporary solution is to calculate only one loop, then Exit[] and run
>> again and so on,
>> But is not comfortable solution
>>
>> regards, Olaf
>>
>>
>>
>>
>> Sseziwa Mukasa <mukasa at gmail.com> wrote:
>> >
>> > Looks like Integrate stores information on each call, compare to these
>> > results:
>> >
>> > ClearAll["`*"];
>> > $HistoryLength = 0;
>> > n = 5;
>> > integral = Integrate[Sin[p], {p, 0, 3}];
>> > Do[bound = Table[{wsk, integral}, {wsk, 1, 100}];
>> > ClearAll[bound];
>> > Print[MemoryInUse[]], {st, 1, n}];
>> >
>> > 46966216
>>
>>
>
>
- References:
- Memory leaks problem
- From: <bar@robox.ii.up.krakow.pl>
- Memory leaks problem