[PR #1856] [CLOSED] Host memory probe: accept the root cgroup v2 group ("0::/", WSL without systemd) #3721

Closed
opened 2026-11-07 15:30:17 +07:00 by bsakaguchi · 0 comments
Owner

📋 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)

  • 0fb8581 Host 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/cgroup is just 0::/, so the path ends up as /sys/fs/cgroup/ with a trailing slash. That never matches the root, and since the root group has no memory.max the 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 is 0::/.
  • tests/core/file_expert_source_test.cpp: added a test for it, it fails without the fix and passes with it.

Extra Notes

  • Been running 0.1.31 with this patch on a 3090 + IQ2_XS with --resident-experts for a while now without issues.
  • Also it's better to copy the model files in your wsl disk rather than accessing it from /mnt/ as WSL-Windows Bridge is super slow (top at ~90 mb / sec instead of 3-4 GB/s)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/1856 **Author:** [@AkaP88](https://github.com/AkaP88) **Created:** 10/10/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix-wsl-root-cgroup` --- ### 📝 Commits (1) - [`0fb8581`](https://github.com/Niko1221/Strata/commit/0fb85815b64a7fbcb3aaefd32eba7d91e279eb71) Host memory probe: accept the root cgroup v2 group ("0::/", WSL without systemd) ### 📊 Changes **2 files changed** (+4 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/core/expert_source.cpp` (+2 -1) 📝 `tests/core/file_expert_source_test.cpp` (+2 -0) </details> ### 📄 Description ## Title Issue: none open, found it on my own setup. ## Summary Ran into this on WSL2 (Ubuntu 22.04, no systemd): `/proc/self/cgroup` is just `0::/`, so the path ends up as `/sys/fs/cgroup/` with a trailing slash. That never matches the root, and since the root group has no `memory.max` the 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 is `0::/`. - `tests/core/file_expert_source_test.cpp`: added a test for it, it fails without the fix and passes with it. ## Extra Notes - Been running 0.1.31 with this patch on a 3090 + IQ2_XS with `--resident-experts` for a while now without issues. - Also it's better to copy the model files in your wsl disk rather than accessing it from /mnt/ as WSL-Windows Bridge is super slow (top at ~90 mb / sec instead of 3-4 GB/s) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:30:17 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#3721
No description provided.