Skip to content
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

Copying large files from Windows to wsl will cause wsl to shut down #10808

Closed
1 of 2 tasks
androiddisk opened this issue Nov 22, 2023 · 7 comments
Closed
1 of 2 tasks

Comments

@androiddisk
Copy link

Windows Version

Microsoft Windows [版本 10.0.22621.2428]

WSL Version

2.0.9.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

Linux version 5.15.133.1-microsoft-standard-WSL2 (root@1c602f52c2e4) (gcc (GCC) 11.2.0, GNU ld (GNU Binutils) 2.37) #1 SMP Thu Oct 5 21:02:42 UTC 2023

Distro Version

Ubuntu-22.04

Other Software

No response

Repro Steps

Copied multiple movies of 700g from Windows to WSL

Expected Behavior

Copy files to wsl normally

Actual Behavior

image
image
Copying a small part directly prompts for an error. It takes a long time to enter the terminal of wsl. WSL has been shut down

Diagnostic Logs

No response

Copy link

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@androiddisk
Copy link
Author

%UserProfile%.wslconfig
After modifying swap=30GB
image

Prompt system resource shortage

root@future:~/kooapk/kooapk-kitchen# while true; do free -h; sleep 10; done
               total        used        free      shared  buff/cache   available
Mem:            29Gi       940Mi        27Gi       6.0Mi       920Mi        28Gi
Swap:           30Gi          0B        30Gi
               total        used        free      shared  buff/cache   available
Mem:            29Gi       958Mi        27Gi       6.0Mi       1.0Gi        28Gi
Swap:           30Gi          0B        30Gi
               total        used        free      shared  buff/cache   available
Mem:            29Gi       958Mi        27Gi       6.0Mi       1.1Gi        28Gi
Swap:           30Gi          0B        30Gi
               total        used        free      shared  buff/cache   available
Mem:            29Gi       994Mi        26Gi       6.0Mi       1.6Gi        28Gi
Swap:           30Gi          0B        30Gi
               total        used        free      shared  buff/cache   available
Mem:            29Gi       1.0Gi        24Gi       6.0Mi       3.8Gi        27Gi
Swap:           30Gi          0B        30Gi
               total        used        free      shared  buff/cache   available
Mem:            29Gi       1.0Gi        22Gi       6.0Mi       5.8Gi        27Gi
Swap:           30Gi          0B        30Gi
               total        used        free      shared  buff/cache   available
Mem:            29Gi       1.0Gi        20Gi       6.0Mi       8.0Gi        27Gi
Swap:           30Gi          0B        30Gi
               total        used        free      shared  buff/cache   available
Mem:            29Gi       1.0Gi        18Gi       6.0Mi       9.8Gi        27Gi
Swap:           30Gi          0B        30Gi
               total        used        free      shared  buff/cache   available
Mem:            29Gi       1.0Gi        16Gi       6.0Mi        11Gi        27Gi
Swap:           30Gi          0B        30Gi
               total        used        free      shared  buff/cache   available
Mem:            29Gi       1.0Gi        14Gi       6.0Mi        13Gi        27Gi
Swap:           30Gi          0B        30Gi
               total        used        free      shared  buff/cache   available
Mem:            29Gi       1.0Gi        12Gi       6.0Mi        15Gi        27Gi
Swap:           30Gi          0B        30Gi
               total        used        free      shared  buff/cache   available
Mem:            29Gi       1.0Gi        11Gi       6.0Mi        17Gi        27Gi
Swap:           30Gi          0B        30Gi
               total        used        free      shared  buff/cache   available
Mem:            29Gi       1.0Gi       9.0Gi       6.0Mi        19Gi        27Gi
Swap:           30Gi          0B        30Gi
               total        used        free      shared  buff/cache   available
Mem:            29Gi       1.0Gi       6.9Gi       6.0Mi        21Gi        27Gi
Swap:           30Gi          0B        30Gi
               total        used        free      shared  buff/cache   available
Mem:            29Gi       1.0Gi       5.3Gi       6.0Mi        23Gi        27Gi
Swap:           30Gi          0B        30Gi
               total        used        free      shared  buff/cache   available
Mem:            29Gi       1.0Gi       4.1Gi       6.0Mi        24Gi        27Gi
Swap:           30Gi          0B        30Gi
               total        used        free      shared  buff/cache   available
Mem:            29Gi       1.1Gi       2.6Gi       6.0Mi        25Gi        27Gi
Swap:           30Gi          0B        30Gi
               total        used        free      shared  buff/cache   available
Mem:            29Gi       1.1Gi       1.5Gi       6.0Mi        26Gi        27Gi
Swap:           30Gi          0B        30Gi
               total        used        free      shared  buff/cache   available
Mem:            29Gi       1.1Gi       1.4Gi       6.0Mi        26Gi        27Gi
Swap:           30Gi          0B        30Gi
               total        used        free      shared  buff/cache   available
Mem:            29Gi       1.1Gi       2.3Gi       6.0Mi        25Gi        27Gi
Swap:           30Gi          0B        30Gi
               total        used        free      shared  buff/cache   available
Mem:            29Gi       1.1Gi       2.3Gi       6.0Mi        26Gi        27Gi
Swap:           30Gi          0B        30Gi
               total        used        free      shared  buff/cache   available
Mem:            29Gi       1.1Gi       2.1Gi       6.0Mi        26Gi        27Gi
Swap:           30Gi          0B        30Gi
               total        used        free      shared  buff/cache   available
Mem:            29Gi       1.1Gi       2.0Gi       6.0Mi        26Gi        27Gi
Swap:           30Gi          0B        30Gi
               total        used        free      shared  buff/cache   available
Mem:            29Gi       1.1Gi       1.9Gi       6.0Mi        26Gi        27Gi
Swap:           30Gi          0B        30Gi
               total        used        free      shared  buff/cache   available
Mem:            29Gi       1.1Gi       3.2Gi       6.0Mi        25Gi        27Gi

@OneBlue
Copy link
Collaborator

OneBlue commented Nov 22, 2023

/logs

@androiddisk
Copy link
Author

/logs

/logs

Find the reason why the buffer/cache in free will run out and cause wsl to crash

@OneBlue
Copy link
Collaborator

OneBlue commented Nov 23, 2023

To do that I need to look at /logs of a repro.

Copy link
Contributor

Hello! Could you please provide more logs to help us better diagnose your issue?

To collect WSL logs, download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:

Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force
.\collect-wsl-logs.ps1

The scipt will output the path of the log file once done.

Once completed please upload the output files to this Github issue.

Click here for more info on logging

Thank you!

Copy link
Contributor

This issue has been automatically closed since it has not had any author activity for the past 7 days. If you're still experiencing this issue please re-open it.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants