Add memory limit enforcement to aos_starter
This gives us a hammer to figure out who is running us out of RAM by
allocating it. That'll let us kill the culprit rather than letting the
OOM killer pick for us.
Change-Id: Id270b878e908f0bf296ed5fc176e327e9b6c2d5a
Signed-off-by: Austin Schuh <austin.schuh@bluerivertech.com>
diff --git a/aos/configuration.fbs b/aos/configuration.fbs
index 7595167..2b25a92 100644
--- a/aos/configuration.fbs
+++ b/aos/configuration.fbs
@@ -152,6 +152,10 @@
// Indicates that application should automatically restart on failure.
autorestart:bool = true (id: 7);
+
+ // If set, this is the memory limit to enforce in bytes for the application
+ // (and it's children)
+ memory_limit:uint64 = 0 (id: 8);
}
// Per node data and connection information.