Skip to content

docs: add WSL uv sync memory allocation troubleshooting#152

Merged
Vanint merged 1 commit into
MiroMindAI:mainfrom
octo-patch:fix/issue-101-wsl-uv-sync-memory-allocation
Apr 10, 2026
Merged

docs: add WSL uv sync memory allocation troubleshooting#152
Vanint merged 1 commit into
MiroMindAI:mainfrom
octo-patch:fix/issue-101-wsl-uv-sync-memory-allocation

Conversation

@octo-patch
Copy link
Copy Markdown
Contributor

Fixes #101

Problem

On WSL2, running uv sync in apps/miroflow-agent can fail with a memory allocation error. WSL2 imposes a default memory cap (often 2–4 GB depending on host RAM) that is insufficient when building heavy packages like transformers or pillow in parallel.

Solution

Add a dedicated FAQ entry in the troubleshooting guide covering two workarounds:

  1. Increasing the WSL2 memory limit via %UserProfile%\.wslconfig (recommended, persistent)
  2. Limiting parallel package builds with UV_CONCURRENT_BUILDS=1 uv sync (no restart required)

Testing

Verified that the new FAQ entry renders correctly in Markdown and the commands are accurate per the UV and WSL2 documentation.

…ndAI#101)

WSL2 default memory limits can cause uv sync to fail with a memory
allocation error when building packages like transformers or pillow.
Add a FAQ entry documenting two workarounds: increasing the WSL2 memory
cap via .wslconfig, and limiting parallel builds with UV_CONCURRENT_BUILDS.
Copy link
Copy Markdown
Member

@Vanint Vanint left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Clear and helpful FAQ entry for WSL users hitting OOM during uv sync.

One minor suggestion (non-blocking): the memory=8GB recommendation might be tight when compiling heavy packages like transformers alongside an IDE. Consider bumping to 16GB or adding a note to adjust based on available host RAM.

@Vanint Vanint merged commit 220a95b into MiroMindAI:main Apr 10, 2026
1 check passed
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.

执行uv sync事遇到内存分配问题

2 participants