CgroupUsage#

Run commands and agent-written programs inside an operating-system boundary. See the guide.

class zett_agent.sandbox.resources.CgroupUsage(peak_memory_bytes=None, memory_events_max=0, oom_kills=0, cpu_usage_microseconds=None, peak_processes=None)[source]#

What a cgroup reports after a run.

Parameters:
  • peak_memory_bytes (int | None)

  • memory_events_max (int)

  • oom_kills (int)

  • cpu_usage_microseconds (int | None)

  • peak_processes (int | None)