-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: skip oomd test on a unified container on a hybrid host #20705
Conversation
|
(I have no idea what we should do in oomd on such a case.) |
|
cc @anitazha and @DaanDeMeyer |
9067cbd
to
d83ad0d
Compare
|
Slightly out of my league as well. Let's wait for anita. |
|
I need to check in more detail when I'm not AFK but memory.current is provided when the memory controller is enabled. So I think the correct message would be something like "cgroup2 memory controller is not enabled". And the actual daemon should also include a condition check for the memory controller. |
|
Ah, checking the existence of memory controller is better. Thanks. Will update. |
d83ad0d
to
bec617d
Compare
|
@anitazha Updated. PTAL. |
|
test-oomd still unhappy |
e524479
to
1b50c78
Compare
|
Still not sure if this is a correct way, but at least, now semaphoreci is green. PTAL. |
|
What's the difference between |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the difference between
cg_kernel_controllers()andcg_mask_supported()??
It looks like cg_kernel_controllers() parses /proc/cgroup which lists all the controllers (cgroup v1 and v2) compiled in the kernel (including information about how many cgroups are using them and whether they were disabled via boot parameter, etc.). But cg_mask_supported() will figure out which hierarchy systemd is using and list the available controllers based on the current hierarchy. For unified (cgroup v2) this will be /sys/fs/cgroups/cgroup.controllers.
Thanks for fixing this Yu the current approach lgtm. Should be good to merge after removing the calls to cg_kernel_controllers()
1b50c78
to
ca589b1
Compare
|
@anitazha Thank you for your review and the explanation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for fixing this, we can go back to seeing all green ticks yay
Fixes #20593
Fixes #20655.