Logo ProcessKit API Reference

ResourceLimitCapabilities Type

What this host can enforce, per `ResourceLimits` dimension. **These answer for the HOST, not for the mechanism the snapshot's options happen to select.** On Linux, asking for a whole-tree cap is itself what selects the cgroup v2 mechanism, so reporting "unsupported" for a limit-free options set would understate what the host can do — the honest question each member answers is "if this cap were added to the options, could this host enforce it?". `Creation` and `Mechanism` are the members that answer for the options as they stand.

Instance members

Instance member Description

this.CpuAffinity

Full Usage: this.CpuAffinity

Returns: Capability

`ResourceLimits.WithCpuAffinity` — pinning the tree to a set of cores.

Returns: Capability

this.CpuQuota

Full Usage: this.CpuQuota

Returns: Capability

`ResourceLimits.WithCpuQuota` — a fraction-of-a-core CPU ceiling for the tree.

Returns: Capability

this.CpuTimeMax

Full Usage: this.CpuTimeMax

Returns: Capability

`ResourceLimits.WithCpuTimeMax` — consumed CPU time. The deliberate POSIX exception: it needs no whole-tree container, because POSIX applies it per spawned child through `RLIMIT_CPU`.

Returns: Capability

this.IoMax

Full Usage: this.IoMax

Returns: Capability

`ResourceLimits.WithIoMax` — directional disk I/O ceilings for one device or volume.

Returns: Capability

this.LiveUpdate

Full Usage: this.LiveUpdate

Returns: Capability

`ProcessGroup.UpdateLimits` — replacing the caps on a LIVE group without recreating it or restarting its children.

Returns: Capability

this.MaxProcesses

Full Usage: this.MaxProcesses

Returns: Capability

`ResourceLimits.WithMaxProcesses` — a cap on the number of live processes in the tree.

Returns: Capability

this.MemoryMax

Full Usage: this.MemoryMax

Returns: Capability

`ResourceLimits.WithMemoryMax` — a whole-tree memory ceiling.

Returns: Capability

this.OomGroupKill

Full Usage: this.OomGroupKill

Returns: Capability

`ResourceLimits.WithOomGroupKill` — a cgroup v2-only policy that makes an OOM kill take the whole tree instead of one selected victim.

Returns: Capability

this.UiRestrictions

Full Usage: this.UiRestrictions

Returns: Capability

`ResourceLimits.WithUiRestrictions` — the Windows Job Object desktop-session restrictions (clipboard, desktops, display/system parameters, exit-Windows).

Returns: Capability

Type something to start searching.