Skip to content

docs: add WSL uv sync memory allocation troubleshooting#152

Open
octo-patch wants to merge 1 commit intoMiroMindAI:mainfrom
octo-patch:fix/issue-101-wsl-uv-sync-memory-allocation
Open

docs: add WSL uv sync memory allocation troubleshooting#152
octo-patch wants to merge 1 commit intoMiroMindAI:mainfrom
octo-patch:fix/issue-101-wsl-uv-sync-memory-allocation

Conversation

@octo-patch
Copy link
Copy Markdown

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.
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事遇到内存分配问题

1 participant