Found something that was a very alarming, and hopefully a member of the Kotlin Team can provide a good explanation why the RAM usage is high. I have two different versions of a Kotlin Native program, one targeting linuxX64, and the other targeting linuxArm32Hfp. The linuxX64 version uses significantly less RAM (at 6.9 MB) than the linuxArm32Hfp version (at 23 MB) 😱. The linuxArm32Hfp version uses over three times the amount of RAM that the linuxX64 version uses which is cause for huge concern.
Originally when I saw something similar occurring (with a different Kotlin Native program) I thought I must have made some major mistakes when developing the Kotlin Native program, however the pattern that is emerging suggests otherwise.
One thing to note is that I have tested the linuxArm32Hfp version of the program with a Raspberry Pi 4 running Raspberry Pi OS (the version based on Debian 10). The program should run on a Raspberry Pi 2 or 3.
napperley
09/24/2021, 10:30 PM
One key recommendation to make to the Kotlin team is to setup a Linux/Embedded Linux Device Lab to easily do testing/experimentation with Kotlin Native in real hardware environments.