Skip to content

memcg: calculate these values dynamically based on the machine size #1232

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

Open
pevik opened this issue Apr 9, 2025 · 1 comment
Open

memcg: calculate these values dynamically based on the machine size #1232

pevik opened this issue Apr 9, 2025 · 1 comment

Comments

@pevik
Copy link
Member

pevik commented Apr 9, 2025

Tip from @Werkov for tests in testcases/kernel/controllers/memcg/ which are based on test_memcontrol.c from kselftests.

Kselftest test tools/testing/selftests/cgroup/test_memcontrol.c got a tip on https://lore.kernel.org/linux-kselftest/Z_Wht7kyWyk62IBU@google.com/:

Ideally we want to calculate these values dynamically based on the machine
size (number of cpus and total memory size).

We can calculate the memcg error margin and scale memcg sizes if necessarily.
It's the only way to make it pass both on a 2-CPU's vm and 512-CPU's physical
server.

@pevik
Copy link
Member Author

pevik commented Apr 9, 2025

@wangli5665 FYI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant