-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Add cgroup v2 support to Interop.cgroups #39686
Conversation
src/System.Runtime.InteropServices.RuntimeInformation/tests/DescriptionNameTests.cs
Show resolved
Hide resolved
ecd3961 to
b5cadcf
Compare
|
cc @tmds |
|
cc @janvorli |
af310f9 to
15e99a0
Compare
stephentoub
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few more comments, but generally looks good.
|
@stephentoub Thanks for the review and your great suggestions! Does the updated patch look okay now? |
Fix up code to adjust cgroup v1 assumptions and check cgroup v2 paths, locations and values. Continue using the older cgroup v1 terminology for APIs.
|
LGTM. Thanks. I pushed a commit to clean up the tests a bit, in particular to use our FileCleanupTestBase helper rather than generating random file names and tracking deleting them. |
Thanks, that's very kind of you! |
|
The related PR in coreclr is needed to make the runtime/GC aware of cgroup v2: dotnet/coreclr#25906. |
* Add cgroup v2 support to Interop.cgroups Fix up code to adjust cgroup v1 assumptions and check cgroup v2 paths, locations and values. Continue using the older cgroup v1 terminology for APIs. * Clean up new tests
* Add cgroup v2 support to Interop.cgroups Fix up code to adjust cgroup v1 assumptions and check cgroup v2 paths, locations and values. Continue using the older cgroup v1 terminology for APIs. * Clean up new tests Commit migrated from dotnet/corefx@8d18e3c
Fix up code to adjust cgroup v1 assumptions and check cgroup v2 paths, locations and values.
Continue using the older cgroup v1 terminology for APIs.