# Memory concerns

**URL:** <https://hub.mender.io/t/memory-concerns/3159>\
**Category:** General Discussions\
**Tags:** yocto, nxp, thud, memory\
**Created:** [February 1, 2021, 8:30pm UTC](https://hub.mender.io/t/memory-concerns/3159 "2021-02-01T20:30:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![avrobot](https://avatars.discourse-cdn.com/v4/letter/a/45deac/32.png) [@avrobot](https://hub.mender.io/u/avrobot)\
**Post date:** [February 1, 2021, 8:30pm UTC](https://hub.mender.io/t/memory-concerns/3159/1 "2021-02-01T20:30:07Z")

</div>

Hi, we have mender running on imx6ull with only 512M ram and rom.  
I would like to understand the memory used by Mender (flash and ram) to make sure we dont have any looming issues.

1\> %VSZ reports 170% (log below) usage while free -m reports we are system is using half available. Should I be concerned over this figure?  
2\> How can I check the total size of the mender usage in flash? I.E when Mender holds the two A/B images during or after update process? This is to check and we wont hit memory issues for future updates - our mender images are \<100M but I know its compressed.

PID PPID USER STAT VSZ %VSZ %CPU COMMAND  
1263 2 root IW 0 0% 0% [kworker/0:0]  
205 1 root S 844m 170% 0% /usr/bin/mender -daemon  
341 1 polkitd S 232m 47% 0% /usr/lib/polkit-1/polkitd --no-debug

---

<div class="post-metadata">

**Author:** ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)\
**Post date:** [February 2, 2021, 2:46pm UTC](https://hub.mender.io/t/memory-concerns/3159/2 "2021-02-02T14:46:56Z")

</div>

Hi @avrobot,

When doing full image updates, using the dual A/B approach, the incoming image is streamed directly to the inactive partition so you should not have flash storage issues.

I’m not sure about the VSZ report. @kacf any thoughts?

Drew

---

<div class="post-metadata">

**Author:** ![kacf](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/kacf/32/146_2.png) [@kacf](https://hub.mender.io/u/kacf)\
**Post date:** [February 2, 2021, 4:39pm UTC](https://hub.mender.io/t/memory-concerns/3159/3 "2021-02-02T16:39:47Z")

</div>

VSZ is not a good measure of memory usage. This is only reporting mapped address space, and not actually used memory, and it is common that VSZ is high. RES or RSS would be better, but they are not included in your output apparently, and even these are not entirely accurate.

The client will of course allocate various smaller buffers during an update, but the “main” working buffer [is only around 1MiB](https://github.com/mendersoftware/mender/blob/03e143e6459a3cdd0257e066c29c631f187351a1/installer/block_device.go#L141), regardless of how big the update is.
