Skip to content

ESP32 (Espressif): Does the PSRAM problem of ESP-IDF affect Moddable? #151

@lll000111

Description

@lll000111

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.

espressif/esp-idf#2892

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions