Skip to content
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

Where hugetlb controller is auto enabled? #841

Open
chairwa opened this issue Dec 13, 2023 · 1 comment
Open

Where hugetlb controller is auto enabled? #841

chairwa opened this issue Dec 13, 2023 · 1 comment

Comments

@chairwa
Copy link

chairwa commented Dec 13, 2023

One kvm virtual machine (8 vcpus+8G memory) of Ubuntu 22.04 with cgroup2 system,
cat /sys/fs/cgroup/cgroup.subtree_control
hugetlb controller included;
But another kvm vm (4 vcpus+4G memory) of Ubuntu 22.04 with cgroup2 system,
cat /sys/fs/cgroup/cgroup.subtree_control
no hugetlb controller included.
You have to manually
echo +hugetlb > cgroup.subtree_control, which is not as expected.

In linux kernel source code / systemd source code, I did not find the relevant processing of automatically enabling hugetlb or automatically disabling hugetlb.
Would you be kind to tell me where the code to automatically enable hugetlb lies?

@chairwa chairwa changed the title [BUG] Write a suitable title Where hugetlb controller is auto enabled? Dec 13, 2023
@luohuang
Copy link

luohuang commented Dec 13, 2023 via email

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

No branches or pull requests

2 participants