# FMM Memory Usage Statistics

**URL:** <https://bempp.discourse.group/t/fmm-memory-usage-statistics/32>\
**Category:** Bempp\
**Created:** [2 October 2020 20:45 UTC](https://bempp.discourse.group/t/fmm-memory-usage-statistics/32 "2020-10-02T20:45:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DerekOlson](https://avatars.discourse-cdn.com/v4/letter/d/7ab992/32.png) [@DerekOlson](https://bempp.discourse.group/u/DerekOlson)\
**Post date:** [2 October 2020 20:45 UTC](https://bempp.discourse.group/t/fmm-memory-usage-statistics/32/1 "2020-10-02T20:45:58Z")

</div>

Dear bempp-cl team,

I would like to be able to track the memory usage (compression) for FMM assembly. In the older version of Bempp, the console logger reported both time per iteration, and memory compression for the H-Matrix.

Is there similar functionality available for the FMM? Time per iteration is easy to calculate, since bempp-cl already reports the total time for GMRES, and iteration count. Memory is more difficult. I can track this somewhat using /usr/bin/time as a wrapper, but I would like to have more detailed information.

If this isn’t aready avaiable in bempp-cl, could this be added?

I am using the latest docker bempp/cl-notebook.

Best Wishes,  
Derek

---

<div class="post-metadata">

**Author:** ![timo](https://yyz2.discourse-cdn.com/free1/user_avatar/bempp.discourse.group/timo/32/7_2.png) [@timo](https://bempp.discourse.group/u/timo)\
**Post date:** [6 October 2020 08:39 UTC](https://bempp.discourse.group/t/fmm-memory-usage-statistics/32/2 "2020-10-06T08:39:20Z")

</div>

Dear Derek,

This is not directly possible here as the FMM is in an extension library. The easiest to track your overall memory consumption is to call the python instance with:

/usr/bin/time -v python my\_script.py

This prints out statistics about peak memory usage once the run is over.

---

<div class="post-metadata">

**Author:** ![DerekOlson](https://avatars.discourse-cdn.com/v4/letter/d/7ab992/32.png) [@DerekOlson](https://bempp.discourse.group/u/DerekOlson)\
**Post date:** [11 October 2020 17:52 UTC](https://bempp.discourse.group/t/fmm-memory-usage-statistics/32/3 "2020-10-11T17:52:00Z")

</div>

Hi Timo,

Thanks for the reply. I’l use /usr/bin/time .
