-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
cgroup.InContainer is wrong in some case #38659
Comments
however, as @amyangfei tested, the function can correctly retrieve the memory limit /assign @hawkingrei |
according to "/proc files" section in https://man7.org/linux/man-pages/man7/cgroups.7.html#NOTES
we should find another way to check cgroup for version 2 |
It is not even in release-6.3. Function is added last month. Even if it is a bug, this should not be a major issue. |
Maybe we can statfs the /proc/self/cgroup to check the file type according to the
https://www.kernel.org/doc/html/latest/admin-guide/cgroup-v2.html#mounting , |
Similarly,
I'm not an expert for docker, but I think this just means we have a docker env running on this OS, not that we're running this test in a container. |
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
where
then
2. What did you expect to see? (Required)
we know it's inside a container
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
The text was updated successfully, but these errors were encountered: