pytc.solver.bug_helper.host_memory_limits¶
- pytc.solver.bug_helper.host_memory_limits()[source]¶
Every observable host-memory ceiling, and the binding one.
Returns
(binding, sources).bindingis the minimum finite limit across all sources, not the first one that parses: cgroup, Slurm and physical RAM can disagree, and when they do the smallest is the only one that will actually be enforced. Taking the first parsable source makes stale or misaligned environment metadata dangerous; taking the minimum makes it merely conservative.MemTotalis the machine’s, not ours – a job is killed at its own limit, not at the node’s – so it participates like any other candidate rather than being trusted as the answer.sourcesrecords every observation for the receipt, so a later reader can see which limit was binding and which were merely present.- Return type:
tuple[int, dict[str, int | None]]