axiom-developer
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Axiom-developer] Memory leak in Axiom : mistake


From: Vanuxem Grégory
Subject: RE: [Axiom-developer] Memory leak in Axiom : mistake
Date: Wed, 22 Jun 2005 03:38:25 +0200

Hi,

Sorry,

Section 0.4.2 of axiom book => accessing earlier result.
It's a little dangerous in term of memory management...

Cheers,

Greg



> -----Message d'origine-----
> De : address@hidden
> [mailto:address@hidden la
> part de Vanuxem Grégory
> Envoyé : mercredi 22 juin 2005 03:10
> À : Bill Page (E-mail)
> Cc : address@hidden
> Objet : RE: [Axiom-developer] Memory leak in Axiom
>
>
> Hi,
>
> > -----Message d'origine-----
> > De : Page, Bill [mailto:address@hidden
> > Envoyé : mercredi 22 juin 2005 01:11
> > À : 'Vanuxem Grégory'
> > Cc : address@hidden
> > Objet : RE: [Axiom-developer] Memory leak in Axiom
> >
> >
> > On Tuesday, June 21, 2005 3:43 PM Vanuxem Grégory wrote:
> >
> > > It seems that there is a memory leak in Axiom;
> > >
> > > Open a shell, type 'top' and observe residual and virtual memory.
> > >
> > > Open AXIOMsys and type
> > >
> > >  new(1000,1000,0.0)$Matrix(SF);
> > >
> > > and repeat this action.
> >
> > I can not reproduce this error using the Windows version
> > of Axiom 0.1.4. This version of Axiom is based GCL 2.6.5.
> > On windows I can monitor memory usage with Task Manager,
> > Performance tab.
> >
> > What version of Axiom and operating system are you using
> > for your test? What version of GCL was used to build Axiom?
>
> GCL-2.6.6 on axiom patch 40
>
> >
> > > A (1000,1000) C double float array takes 7.63 Mb.
> > >
> > > If I alloc a contiguous storage memory array of 1000x1000,
> > > amount of virtual and residual memory augment of 10Mb. It seems
> > > it is never released.
> > >
> > > I haven't found this in gcl.
> >
> > Could you describe the test you use on GCL? What version of
> > gcl are you using?
>
> (make-array '(1000 1000) :element-type 'long-float :initial-element 0)
>
> about 50 times
>
> >
> > >
> > > Any idea ?
> >
> > If you repeat this process several times:
> >
>
> Sorry,
> 1) Open Axiom
> 4) display residual and virtural memory
> -- avoid printing
> new(1000,1000,0)$Matrix(SF);
> -- memory has increased of 10Mb
> new(1000,1000,0)$Matrix(SF);
> -- memory has increased of 10Mb
> new(1000,1000,0)$Matrix(SF);
> -- memory has increased of 10Mb
> new(1000,1000,0)$Matrix(SF);
> -- memory has increased of 10Mb
> new(1000,1000,0)$Matrix(SF);
> -- memory has increased of 10Mb
> new(1000,1000,0)$Matrix(SF);
> -- memory has increased of 10Mb
> new(1000,1000,0)$Matrix(SF);
> -- memory has increased of 10Mb
> .
> .
> .
> a lot of times (axiom will crash) => xmalloc failed
>
>
> Cheers,
>
> Greg
>
>
> >
> > For example do this 5 times in a row, do you find that the
> > total available memory is constantly decreasing?
> >
> > If this is not that case, but only occurs on the first
> > iteration, then what you might be seeing is some kind of
> > executable cacheing being done by the operating system.
> > (Does linux do that? Some versions of Windows do. I see
> > such an effect under Windows XP.)
> >
> > Regards,
> > Bill Page.
> >
>
>
>
>
> _______________________________________________
> Axiom-developer mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/axiom-developer
>






reply via email to

[Prev in Thread] Current Thread [Next in Thread]