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

fork exec: use clone3 CLONE_INTO_CGROUP #13

Open
criyle opened this issue Feb 20, 2025 · 0 comments
Open

fork exec: use clone3 CLONE_INTO_CGROUP #13

criyle opened this issue Feb 20, 2025 · 0 comments

Comments

@criyle
Copy link
Owner

criyle commented Feb 20, 2025

Support clone3 CLONE_INTO_CGROUP (kernel > 5.7) to replace existing group logic

Existing strategy includes:

  • syncFunc
  • cgroup.AddProc
  • unshareCgroupAfterSync

This syscall should reduce sync time.

Following the design of go1.20 implementation, the clone3 can be combined with vfork to reduce the consumption as well.

criyle added a commit that referenced this issue Feb 20, 2025
criyle added a commit that referenced this issue Feb 20, 2025
criyle added a commit that referenced this issue Feb 21, 2025
forkexec: disabled VFORK for now as it is not working properly
#13
criyle added a commit that referenced this issue Feb 21, 2025
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

1 participant