# Memory issue with Parallel computing

**URL:** <https://community.freefem.org/t/memory-issue-with-parallel-computing/1072>\
**Category:** General Discussion\
**Created:** [June 30, 2021, 6:05pm UTC](https://community.freefem.org/t/memory-issue-with-parallel-computing/1072 "2021-06-30T18:05:58Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![prj](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@prj](https://community.freefem.org/u/prj)\
**Post date:** [July 1, 2021, 4:23pm UTC](https://community.freefem.org/t/memory-issue-with-parallel-computing/1072/15 "2021-07-01T16:23:47Z")

</div>

> Was this a correct way of doing it?

It is to be expected that the interpolated data at the boundary is not accurate in parallel if you do not synchronize the values after interpolation, see a very [similar question](https://community.freefem.org/t/call-petsc-matrix-operator-matdiagonalset/1050/31) asked today. If it is still not working, please provide a minimal working example.

I see your optimization algorithm. There is no simple answer: if you want a global order, you have to pay the price… Still, I doubt this implies a large cost unless you are working with extremely large meshes, it’s just a vector after all. I guess there is something else in your implementation that is not scalable, but for that I’d need to see the code indeed.

---

_[View the full topic](https://community.freefem.org/t/memory-issue-with-parallel-computing/1072)._
