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

Add support for CGroups #221

Merged
merged 29 commits into from
Dec 9, 2024
Merged

Add support for CGroups #221

merged 29 commits into from
Dec 9, 2024

Conversation

stv0g
Copy link
Collaborator

@stv0g stv0g commented Oct 30, 2024

Closes #163

stv0g added 23 commits December 9, 2024 19:14
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
… erroring in defer Close()

Signed-off-by: Steffen Vogel <post@steffenvogel.de>
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
stv0g added 3 commits December 9, 2024 19:37
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
@stv0g stv0g force-pushed the cgroup2 branch 2 times, most recently from d87987b to 083b564 Compare December 9, 2024 18:43
stv0g added 2 commits December 9, 2024 20:11
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
As they break systemd's slice/scope hierarchy.

Signed-off-by: Steffen Vogel <post@steffenvogel.de>
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
@stv0g stv0g merged commit 71fc2a7 into main Dec 9, 2024
5 checks passed
@stv0g stv0g deleted the cgroup2 branch December 9, 2024 19:31
Copy link

codecov bot commented Dec 9, 2024

Codecov Report

Attention: Patch coverage is 26.12827% with 622 lines in your changes missing coverage. Please review.

Project coverage is 44.03%. Comparing base (8621a66) to head (1f44538).
Report is 29 commits behind head on main.

Files with missing lines Patch % Lines
pkg/options/systemd/cgroup.go 2.11% 231 Missing ⚠️
pkg/options/systemd/variants.go 0.00% 72 Missing ⚠️
pkg/teardown.go 9.23% 58 Missing and 1 partial ⚠️
pkg/options/systemd/scope.go 0.00% 44 Missing ⚠️
pkg/cmd.go 55.78% 28 Missing and 14 partials ⚠️
pkg/options/systemd/kill.go 0.00% 35 Missing ⚠️
pkg/base_node.go 32.65% 24 Missing and 9 partials ⚠️
pkg/cgroup.go 51.06% 19 Missing and 4 partials ⚠️
pkg/network.go 48.78% 14 Missing and 7 partials ⚠️
pkg/namespace.go 55.00% 13 Missing and 5 partials ⚠️
... and 9 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #221      +/-   ##
==========================================
- Coverage   49.65%   44.03%   -5.63%     
==========================================
  Files          68       76       +8     
  Lines        4084     4653     +569     
==========================================
+ Hits         2028     2049      +21     
- Misses       1825     2343     +518     
- Partials      231      261      +30     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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

Successfully merging this pull request may close these issues.

Create cgroup hierarchy for Gont Nodes and Networks
1 participant