RunResources
struct RunResourcesWhat a run's latest start asked for and was granted (orca.resources); empty and 0 for none.
Implements Copyable, Movable
- Fields
cpus: Stringmemory_gb: Stringgrant: Grantlimit_mb: Int: Its latest start's cgroup limit,memory.high(orca.cgroup); 0 for none.max_mb: Int: Itsmemory.max, past which the kernel kills its processes.memory_bytes: Int: Its cgroup's memory a few seconds ago while it runs; -1 else.source: String: Where its request came from (orca.recommend):declared,learnedordefault; empty for none, or a start before orca kept it.runs: Int: Learned, how many runs it's from; else 0.
any
def any(self) -> Bool source_text
def source_text(self) -> String learned from 20 runs, default: auto, nothing learned, or empty.
limit_json
def limit_json(self) -> String "memory_limit": {...}|null for a run's JSON.
source_json
def source_json(self) -> String "request_source": {"source": .., "runs": ..}|null.
json
def json(self) -> String "request": {...}|null, "grant": {...}|null, "request_source": ... for a run's JSON.