← Back to team overview

yade-dev team mailing list archive

[Bug 1041084] Re: memory leak while erasing facets

 

Hi all,

As asked by Anton, I report a similar problem. This is related to the
question : https://answers.launchpad.net/yade/+question/253112

In the C++ code, I created an engine(HydroForceEngine) which use a variable vxFluct. In my python script, I actualize the variable vxFluct each period tau doing :
HydroForceEngine.vxFluct = X

When X is big and tau is small, there is a memory leakage : for example,
with 8300 bodies (so for len(X) = 8300), after ~6500 actualization of
the variable, the simulation takes about 40% of the memory of my
computer; while the same code after the same time and without
actualizing the variable takes 0.5% of  the memory of my computer.

Raphaël

-- 
You received this bug notification because you are a member of Yade
developers, which is subscribed to Yade.
https://bugs.launchpad.net/bugs/1041084

Title:
  memory leak while erasing facets

Status in Yet Another Dynamic Engine:
  New

Bug description:
  I detected a memory leak in O.bodies.erase, when facets were erased (spheres are erased without memory leak!).
  In the attachment you will find two files, where you can reproduce the bug.

  1. Open a terminal with three tabs.
  2. Run top or htop in the first terminal tab
  3. In the second terminal tab run yade input file "memoryleak-erase-facets.py"
  4. Get the pid from first terminal tab (example 31667) and edit "get-memory-info.py"
  5. Run "python get-memory-info.py" in the third terminal tab and wait (ca. 5 min) to the end of the calculation.

  You will get an output file called "fig-memoryleak-erase-facets.png",
  where you can see the effect of the memoryleak.

To manage notifications about this bug go to:
https://bugs.launchpad.net/yade/+bug/1041084/+subscriptions


References