[Dune] Fwd: RE: Memory leak, valgrind check, Dune

Andreas Dedner dedner at mathematik.uni-freiburg.de
Thu Oct 8 15:58:50 CEST 2009


Hi,
before a fix from Christian at the beginning of October the generic
ref.elements could leak memory (but a constant amount, which should
not increase over time). Also the copy constructor was not privat so
a code line like
GenericRefElement ref = GenericReferlements::general(type)
would work - note the missing reference &.
This was fixed in rev. 5772.
It would make life much easier if you would (at least for testing)
switch to the head revision.
To see if the SmallObjects are a problem you could remove the
inheritance from SmallObject in CachedMapping
(grid/genericgeometry/caechemapping.hh)
and in HybridMapping
(grid/genericgeometry/hybridmapping.hh)
This should at least get rid of some of the Valgrind output.
Andreas

Jö Fahlke wrote:
> Here is the Mail from Benedikt.  The attachments are at
> http://jorrit.de/valgrind-from-oswald/
> 
> Grüße,
> Jö.
> 
> ----- Forwarded message from Oswald Benedikt <Benedikt.Oswald at psi.ch> -----
> 
> Dear Dune Developers, thanks for the feedback!
> 
> Find attached to this mail 2 complete valgrind outputs, from start to end.
> One file is from Mac OS X, the other from Linux:
> 
> Both runs were serial at the moment. In the paralle case, memory consumption
> increases more or less linear with time as well.
> 
> In the attached examples we calculated 100 timestep, therefore memory increase
> might not be that much, but going to larger grids (millions of tets) and
> a few thousand timesteps, there will be definitely a problem.
> 
> 
> We use ISTL. I also give the configurations used as follows.
> 
> 
> Christian suggested to update Dune to the newest release, do you think
> that will solve the problem ? Of course we are happy to do this.
> 
> 
> 
> Thanks again and have a great day, Benedikt
> 
> 
> 1. MAC OS X:
> ========
> 
> gcc 4.0.1
> 
> openmpi version1.3.3
> 
> ALUGrid version: 1.14
> 
> Dune versions:
> 
> pc6396-129129145080:dune-trunk oswald$ svn info ./dune-common/
> Path: dune-common
> URL: https://svn.dune-project.org/svn/dune-common/trunk
> Repository Root: https://svn.dune-project.org/svn/dune-common
> Repository UUID: 419231ca-4411-0410-aba2-fc6cf8c4f609
> Revision: 5567
> Node Kind: directory
> Schedule: normal
> Last Changed Author: sander
> Last Changed Rev: 5567
> Last Changed Date: 2009-08-04 10:48:48 +0200 (Tue, 04 Aug 2009)
> 
> pc6396-129129145080:dune-trunk oswald$ svn info ./dune-grid
> Path: dune-grid
> URL: https://svn.dune-project.org/svn/dune-grid/trunk
> Repository Root: https://svn.dune-project.org/svn/dune-grid
> Repository UUID: f82f27de-4411-0410-b156-930a902cda50
> Revision: 5330
> Node Kind: directory
> Schedule: normal
> Last Changed Author: sander
> Last Changed Rev: 5330
> Last Changed Date: 2009-08-05 14:55:50 +0200 (Wed, 05 Aug 2009)
> 
> pc6396-129129145080:dune-trunk oswald$ svn info ./dune-grid-howto/
> Path: dune-grid-howto
> URL: https://svn.dune-project.org/svn/dune-grid-howto/trunk
> Repository Root: https://svn.dune-project.org/svn/dune-grid-howto
> Repository UUID: 971b7fa1-7d12-0410-b1b7-9c127676b1f7
> Revision: 263
> Node Kind: directory
> Schedule: normal
> Last Changed Author: mnolte
> Last Changed Rev: 263
> Last Changed Date: 2009-07-27 17:43:19 +0200 (Mon, 27 Jul 2009)
> 
> pc6396-129129145080:dune-trunk oswald$ svn info ./dune-istl/
> Path: dune-istl
> URL: https://svn.dune-project.org/svn/dune-istl/trunk
> Repository Root: https://svn.dune-project.org/svn/dune-istl
> Repository UUID: 8c7282f0-4411-0410-8e4f-cdd3e049afb8
> Revision: 1054
> Node Kind: directory
> Schedule: normal
> Last Changed Author: mblatt
> Last Changed Rev: 1053
> Last Changed Date: 2009-07-30 10:59:19 +0200 (Thu, 30 Jul 2009)
> 
> 
> 
> 2. Linux:
> =====
> 
> gcc 4.3.1
> 
> openmpi version1.2.8
> 
> ALUGrid version: 1.14
> 
> Dune versions:
> 
> URL: https://svn.dune-project.org/svn/dune-common/trunk
> Repository Root: https://svn.dune-project.org/svn/dune-common
> Repository UUID: 419231ca-4411-0410-aba2-fc6cf8c4f609
> Revision: 5566
> Node Kind: directory
> Schedule: normal
> Last Changed Author: mnolte
> Last Changed Rev: 5566
> Last Changed Date: 2009-07-29 10:08:03 +0200 (Wed, 29 Jul 2009)
> 
> [oswald at felsim01 dune-trunk]$ svn info ./dune-grid
> Path: dune-grid
> URL: https://svn.dune-project.org/svn/dune-grid/trunk
> Repository Root: https://svn.dune-project.org/svn/dune-grid
> Repository UUID: f82f27de-4411-0410-b156-930a902cda50
> Revision: 5321
> Node Kind: directory
> Schedule: normal
> Last Changed Author: mnolte
> Last Changed Rev: 5320
> Last Changed Date: 2009-07-30 10:22:54 +0200 (Thu, 30 Jul 2009)
> 
> [oswald at felsim01 dune-trunk]$ svn info ./dune-grid-howto/
> Path: dune-grid-howto
> URL: https://svn.dune-project.org/svn/dune-grid-howto/trunk
> Repository Root: https://svn.dune-project.org/svn/dune-grid-howto
> Repository UUID: 971b7fa1-7d12-0410-b1b7-9c127676b1f7
> Revision: 263
> Node Kind: directory
> Schedule: normal
> Last Changed Author: mnolte
> Last Changed Rev: 263
> Last Changed Date: 2009-07-27 17:43:19 +0200 (Mon, 27 Jul 2009)
> 
> [oswald at felsim01 dune-trunk]$ svn info ./dune-istl/
> Path: dune-istl
> URL: https://svn.dune-project.org/svn/dune-istl/trunk
> Repository Root: https://svn.dune-project.org/svn/dune-istl
> Repository UUID: 8c7282f0-4411-0410-8e4f-cdd3e049afb8
> Revision: 1054
> Node Kind: directory
> Schedule: normal
> Last Changed Author: mblatt
> Last Changed Rev: 1053
> Last Changed Date: 2009-07-30 10:59:19 +0200 (Thu, 30 Jul 2009)
> 
> ----- End forwarded message -----
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Dune mailing list
> Dune at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune




More information about the Dune mailing list