mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1856] [CLOSED] Host memory probe: accept the root cgroup v2 group ("0::/", WSL without systemd) #3721
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#3721
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/1856
Author: @AkaP88
Created: 10/10/2026
Status: ❌ Closed
Base:
main← Head:fix-wsl-root-cgroup📝 Commits (1)
0fb8581Host memory probe: accept the root cgroup v2 group ("0::/", WSL without systemd)📊 Changes
2 files changed (+4 additions, -1 deletions)
View changed files
📝
src/core/expert_source.cpp(+2 -1)📝
tests/core/file_expert_source_test.cpp(+2 -0)📄 Description
Title
Issue: none open, found it on my own setup.
Summary
Ran into this on WSL2 (Ubuntu 22.04, no systemd):
/proc/self/cgroupis just0::/, so the path ends up as/sys/fs/cgroup/with a trailing slash. That never matches the root, and since the root group has nomemory.maxthe probe gives up, so the engine doesn't know how much RAM is free.What changed
src/core/expert_source.cpp: use the root directly when the line is0::/.tests/core/file_expert_source_test.cpp: added a test for it, it fails without the fix and passes with it.Extra Notes
--resident-expertsfor a while now without issues.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.