Skip to content

Merge upstream branch 'main'#59

Open
github-actions[bot] wants to merge 16 commits into
Container-On-Android:mainfrom
lxc:main
Open

Merge upstream branch 'main'#59
github-actions[bot] wants to merge 16 commits into
Container-On-Android:mainfrom
lxc:main

Conversation

@github-actions
Copy link
Copy Markdown

Merge branch 'lxc:main' into main

hallyn and others added 16 commits May 9, 2026 10:10
storage_copy builds a struct lxc_storage on the stack, and
returns a pointer to that on success to its caller.  That's
could be a huge issue, except that its only caller quickly
makes a copy of the -> src and then releases it.

Still, to avoid a future user actually overwriting the struct
and then continuing to use it, let's fix this now.  There's
no point returning the whole lxc_storage struct anyway.  Just
return a copy of the bdev->src.

Signed-off-by: Serge Hallyn <serge@hallyn.com>
Emulate the cgroup1 behavior by calculating memory.kmem.usage_in_bytes
and memory.usage_in_bytes using information provided in memory.stat and
use cpu.stat/usage_usec instead of cpuacct.usage.

Signed-off-by: Petr Malat <oss@malat.biz>
[ alex: rebase & whitespace fix ]
Signed-off-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@futurfusion.io>
Create separate structs for each controller class. This will make it
easier to add cgroupv2 support.

No functional changes.

Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
Recalculate the usec to nanoseconds and USER_HZ

Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
The USER_HZ depends on the kernel configuration. Get it run-time instead
of assume it is 100 HZ.

Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
Signed-off-by: Devon Schwartz <devon.s.schwartz@gmail.com>
…ant for lxc-top -b

Signed-off-by: Devon Schwartz <devon.s.schwartz@gmail.com>
Signed-off-by: Devon Schwartz <devon.s.schwartz@gmail.com>
Signed-off-by: Devon Schwartz <devon.s.schwartz@gmail.com>
tools: lxc-info: Print memory and cpu utilization on cgroup2 system
Fixes: #4468
Signed-off-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@futurfusion.io>
templates/lxc-busybox: handle container names with spaces
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants