-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Treat -1 as default value for memory swappiness #85
Comments
More discussion was here: docker-archive/libcontainer#654 |
@ktraghavendra |
@rajasec is it because of use_hierarchy is set to 1 ? .. or is it a different problem.? |
Memory heirarchy is set to 1 in my system |
@rajasec This is expected because we are trying to set memory swappiness in the test but we are not able to. I am not sure whether it is correct to PASS the test giving wrong impression that system is able to set swappiness value. |
@rajasec one idea for example is, in the test when we get get error, we would still return success if use_hierarchy=1. (but if the test genuinely fails in a newer kernel where writing to memory swappiness is |
@ktraghavendra groups: &configs.Cgroup{ |
@rajasec , Thanks for finding that fix. I feel if test case is genuinely failing on the system (because we try to set it to some value but it does not succeed, probably it is better to know that it is failing and fix it by upgrading the kernel to newer version for e.g., here 3.16+). But having said that I do not have a strong preference over whether it should be included. May be you could ask for the pull request, and let maintainers throw light upon what works best. (because unnecessary unit test failures are irritating some times). |
@rajasec if that fixes the testcase on the working system, please ask for pull request. |
@ktraghavendra c := &configs.Cgroup{ |
@ktraghavendra I'm also able to start my container properly which was failing in 3.13 with the latest runc |
@rajasec Thank you for confirming. |
For old kernels, we still need memory swappiness to -1. |
I have generated an pull request |
This is resolved now. |
bundle: add initial run use case
In some older kernels setting memory swappiness fails. This happens even when
nobody tries to configure swappiness from docker UI because we would still get
some default value from host config.
With this we treat -1 value as default value and skip the enforcement
of swappiness.
The text was updated successfully, but these errors were encountered: