-
Notifications
You must be signed in to change notification settings - Fork 247
Description
I found this still open issue while working on using the PSRAM and it seems to me that Moddable is affected too when building for this kind of hardware.
We stumbled upon the fact that cache issue with PSRAM still exist, even in the newest development environment. This can produce random crashes, even if the code is 100 % valid.
As an aside, and only of interest for RAM-heavy ESP32 boards, Neonious mention of their dlmalloc implementation for ESP-IDF also looks interesting if their statements are correct.
The default memory allocator in ESP-IDF is self made by Espressif (at least so it seems). It is not very fast, and becomes very slow when memory gets fragmented. This problem becomes evident when using SPI RAM.
esp-idf-dlmalloc is a fork of ESP-IDF which was modified to use dlmalloc, an industry standard memory allocator. It is almost twice as fast as the default memory allocator, and does not slow down notably with fragmented memory.
But if Espressif should pick it up everybody gets it in the end anyway.
Apologies for posting so many issues in a short time, it's a spike that won't last long. I think most — or at least enough of them — are genuine issues though.