Table of Contents

Enum EdgeMemoryBudgetKind

Namespace
Qavren.Edge.Chat
Assembly
Qavren.Edge.Chat.Onnx.dll

What EdgeResourceSnapshot.AvailableMemoryBytes actually measures.

public enum EdgeMemoryBudgetKind

Fields

Unknown = 0

The platform reports nothing usable.

PerProcess = 1

A per-process budget the caller may spend. Apple's os_proc_available_memory(): "the current memory limit minus the memory footprint of your app".

SystemWide = 2

A system-wide free-memory figure that is NOT a per-app allowance. Android's ActivityManager.MemoryInfo.AvailMem, whose own documentation says it "should not be considered absolute". Spending it in full is how a 1.24 GB model gets the app killed by lmkd, so the budget multiplies it by SystemWideMemoryFraction before believing it.