interplane.Get Omega
Read in your language

interplane-mv

INTERPLANE: open interoperability protocol between AI models and agent runtimes. Models express intent. Runtimes retain authority.

Brought by drakestapleton

branch main Branches Tags History

interplane-mv / docs / external / nightdriver / 565 / memory-cases.md

16 lines · 1874 bytes Raw Blame History Source

Memory cases for NightDriverStrip #565 (generic, reusable)

Each row: situation, which quantity decides, and what the host model or source shows. Tags as in REPORT.md. Semantics cited from ESP-IDF v5.5.2 (heap_caps.c, heap_caps_base.c:147, memory_layout.c:49-54).

#SituationDeciding quantityStatus
18-bit buffer on classic ESP32, IRAM heap holds most of the free memoryINTERNAL|8BIT largest block, not INTERNAL (IRAM has no 8BIT)model case 3, hypothesized for the real issue
2Budget from getFreeHeap while allocating INTERNAL|8BITINTERNAL|8BIT freemodel cases 1-2, fixed in the fork branch
3Plain malloc or newDEFAULT|INTERNAL (IRAM excluded), or SPIRAM first above the extmem threshold then default (heap_caps.c:107-131)observed in source
4DMA bufferDMA|INTERNAL|8BIT (interfaces.h:156); DMA free/largest are logged by the web UI (webserver.cpp:366-367)observed, no case run
5PSRAM buffer with internal fallback (psram_allocator)SPIRAM|8BIT first, then INTERNAL|8BIT; a PSRAM-exhausted board silently spends internal memoryobserved in source, no case run
6Executable memoryEXEC forces IRAM and cannot be combined with 8BIT or DMA (heap_caps_base.c EXEC branch)observed in source, not relevant to NightDriver
7Total free large, largest block smallone allocation needs a block, a set of N buffers needs N blocks; "block at least the size" is necessary, TLSF sufficiency not verifiednot verified
8Reserve consumed at runtime (WiFi, stacks, web server) after a one-time budgeta one-time free-memory budget cannot see later consumersobserved in #562 numbers (180K free at boot, 47K later)
9Unsigned free - reserve wrapsaturate before dividingobserved, fixed upstream in b13a22ec