# Listening mode and available memory

**URL:** <https://community.particle.io/t/listening-mode-and-available-memory/18792>\
**Category:** Firmware\
**Created:** [January 4, 2016, 9:18pm UTC](https://community.particle.io/t/listening-mode-and-available-memory/18792 "2016-01-04T21:18:35Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![MORA](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/mora/32/8575_2.png) [@MORA](https://community.particle.io/u/MORA)\
**Post date:** [January 7, 2016, 8:32pm UTC](https://community.particle.io/t/listening-mode-and-available-memory/18792/4 "2016-01-07T20:32:51Z")

</div>

The docs does say that its not actually the amount of free mem, but at least this amount is free.  
One way to estimate free memory on constrained devices is to paint a known value over the entire ram during boot, and then count how many cells still have that value, ie. never used, maybe something similiar is being used here.

@mdma explains it better 😄

> [@Lost memory after publish?](https://community.particle.io/t/lost-memory-after-publish/18854/3):
>
> System.freeMemory() returns the highwater mark of the heap in relation to the bottom of the stack - it’s the minimum amount of free memory guaranteed to be available - not necessary the actual amount. Once blocks of memory are freed, the high water mark does not move downwards.

---

_[View the full topic](https://community.particle.io/t/listening-mode-and-available-memory/18792)._
