RAM available on TorizonCore with Colibri iMX8X

Hi,

Our current setup is:

  • Colibri iMX8 DualX 1GB Wi-Fi / Bluetooth
  • Aster board v. 1.1B
  • TorizonCore os

We were expecting to see 1GB of total ram, however when running htop or free we only get 803 Mb.

torizon@colibri-imx8x-06846642:~$ free --mega
              total        used        free      shared  buff/cache   available
Mem:            803         471          93          38         238         221
Swap:             0           0           0

Is there a reason for this? Is part of the ram reserved for graphics or something similar?
If this is the case, as we are running a headless application and won’t need any graphic output, can we somehow free the rest of the memory, perhaps disabling the vga output with an overlay or something similar?

Thank you in advance for your help.

Hi @morlandi ,

Thanks for reaching out to Toradex.

That’s right. You can see the reserved-memory section in the device tree.

There are various subsections there, relating to elements like the M4 core, for example.

If you follow the link below, you will get forwarded to the dedicated section in the device tree. You can remove these subsections as you wish. Be aware that changes in these sections can leave the module in an unbootable state. So make sure you really do not need these.

https://git.toradex.com/cgit/linux-toradex.git/tree/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi?h=toradex_5.4-2.3.x-imx#n95

Furthermore, Toradex has added additional memory for the GPU due to some bugs reported in the past.

https://git.toradex.com/cgit/linux-toradex.git/commit/arch/arm64/boot/dts/freescale/imx8dx-colibri.dtsi?h=toradex_5.4-2.3.x-imx&id=76f3fe59f24e19a646fb28bad9bd094fb57d9999

You can also remove this one. Please be aware that some drivers (for example the graphics driver) will expect this reserved memory to be there. So if the memory is not reserved the driver will maybe fail or print errors. Other components might be affected by the same behaviour.

Hope this helps.

Best Regards
Kevin

1 Like

Thank you - very useful!

1 Like