@aetios @volpeon code rings a couple alarm bells but i'm not confidentfunc main() {
// The portable SQLite fallback owns memory outside the Go heap. Keep the Go
// side bounded automatically so NetBSD/ARM and small illumos zones are safe
// even when low_power was not selected. GOMEMLIMIT remains an explicit
// operator override. This must run before `init`, which opens SQLite too.
//
// The configuration has not been read yet, so this is the conservative
// floor and nothing more: enough for the CLI subcommands below, which hold
// no cache and return before anything else starts. The daemon replaces it
// with a limit derived from what it is actually going to hold, once it
// knows. Never lower the value here without checking memguard.Compute: a
// limit under the working set does not save a small host, it stops it.
operatorMemoryLimit := os.Getenv("GOMEMLIMIT") != ""
if storage.SQLiteArenaConstrained() && !operatorMemoryLimit {
debug.SetMemoryLimit(memguard.MinAutoLimit)
}
might be vibe assisted, but it doesn't look completely vibecoded