Skip to content

[pull] main from livekit:main - #474

Merged
pull[bot] merged 1 commit into
erickirt:mainfrom
livekit:main
Sep 7, 2026
Merged

[pull] main from livekit:main#474
pull[bot] merged 1 commit into
erickirt:mainfrom
livekit:main

Conversation

@pull

@pull pull Bot commented Sep 7, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

* hwstats: keep cgroup usage when the cgroup has no memory limit

When memory.max reads "max" (cgroup v2) or the v1 limit exceeds
physical memory, getMemory replaced both usage and total with
/proc/meminfo values. Usage then described the whole node, so any
consumer comparing it against a per-container budget saw its
neighbours' memory. Egress pods on shared nodes killed their largest
handler as OOM and rejected admissions while idle.

Keep the cgroup's working set as usage in both fallback branches and
take only the total from the node. Cgroups with a real limit are
unchanged.

The cgroup file paths become package variables so the test can point
the readers at temp files; the test uses the real node stats for the
expected total.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* Drop changeset for Go-only hwstats change

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
@pull pull Bot locked and limited conversation to collaborators Sep 7, 2026
@pull pull Bot added the ⤵️ pull label Sep 7, 2026
@pull
pull Bot merged commit 94a0a8d into erickirt:main Sep 7, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant