Replies: 2 comments 1 reply
-
Bubble-shear, with memray. So actually most of memory is being used up in the adaptor function, and not so much in the solvers. |
Beta Was this translation helpful? Give feedback.
-
@acse-ej321 based on the above memory profiling and what I mentioned in mesh-adaptation/animate#112 (comment), I think that we should take care of this on the Animate side. It looks to me like a lot of the memory used is not being released as we'd expect it to - until the process actually ends. Could you try doing something like this in your
where the If that indeed frees up this huge amount of memory that we see being used up, I can code up a solution to this in Animate :) |
Beta Was this translation helpful? Give feedback.
-
After discussing with @acse-ej321 on the meeting now, I thought it would be good to have all memory-optimisation efforts and ideas gathered here at one place.
Memory usage benchmark
Reducing general mesh memory usage
subprocess
avoids these memory issues (potential memory leak?)MeshSeq.fixed_point_iteration
, iterationMeshSeq.solutions
are still onsolve_forward
call to allfixed_point_iteration
s, so that the final solutions are computed on the final adapted meshesHessian-based
Goal-based
forward_old
,adjoint
, andadjoint_next
fields after each subinterval, since they are no longer neededBeta Was this translation helpful? Give feedback.
All reactions