-
Notifications
You must be signed in to change notification settings - Fork 847
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WSL2 reliably crashes when handling files > 10GB #5410
Comments
Are any other host/os characteristics needed that might help debug this? |
Detailed logs might shed something. Your best hope is some me2s. |
When I started |
@luastoned - do you see any errors in any of the Hyper-V logs in eventviewer? I suspect the kernel is panicing. |
Sure enough in
|
It appears I never paid attention to memory usage. After limiting memory via Seems like file operations inside the WSL2 filesystem consume/block memory to a point where it crashes. |
I was still not able to repro here using
I could not get the kernel to panic despite several tries. But it is possible (probably even) the above isn't a long walk from the kernel going down hard. |
No luck here when I disabled the limit again.
|
After a couple of reboots / This happens on my work machine so I tend to have VSCode open.. and then the crashes will happen reliably. |
Work-around might be to give yourself big Windows page file and let it thrash. Instead of "automatically manage paging" I set a custom size of 128GB. It is not obvious that should have helped. The default-behavior managed size is supposed to be 3x physical RAM. But after the change (and obligatory reboot) I'm not seeing the dmesg errors anymore regardless of whether all physical memory is consumed. |
I catch same question, if I create .wslconfig file, I can't start up my docker desktop (win10 home) |
I also have this happening consistently during long running file IO on large files regardless of the mounted file system, ext4 on VHDX, Windows 11 native file system mounts etc... 'Virtual Machine' was reset because an unrecoverable error occurred on a virtual processor that caused a triple fault. If the problem persists, contact Product Support. (Virtual machine ID BA977E36-057A-4180-AFA0-4C86DC421029)
|
After installing Windows 11, I rollback to wsl1 😆 |
I was doing a reasonably simple |
While attempting to compile Chromium on WSL2, I encountered a consistent crash issue. After extensive research and troubleshooting, detailed in my blog post, I discovered a workable solution:
|
Environment
Steps to reproduce
dd if=/dev/zero of=./dump.bin bs=4k iflag=fullblock,count_bytes count=20G
This will crash at around ~10GB, here are 3 runs:
Host OS has plenty of free space/32GB ram.
Expected behavior
It should not crash the entire WSL host along with possible docker containers.
Actual behavior
Ubuntu/WSL window closes, all processes / docker containers crash with it.
I'm actually working with larger gz files, unzipping them, copying them, etc.
Basically every operation touching files > 10GB does not work.
Files mounted via
/mnt/c/
do not appear to have this problem.The text was updated successfully, but these errors were encountered: