WSL icon indicating copy to clipboard operation
WSL copied to clipboard

vfork failing unless excessively large swap space configured

Open chesterm8 opened this issue 10 years ago • 1 comments

Simple java class to reproduce the issue: Gist

Compiled and run using

At 5000MB the following is seen:

[bellchesters@DESKTOP]$ java -version
java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)
[bellchesters@DESKTOP]$ javac Main.java
[bellchesters@DESKTOP]$ strace -ff java Main 2>&1 | grep vfork
[pid  2398] vfork()                     = -1 ENOMEM (Cannot allocate memory)

At 16000MB the operation completes successfully.

chesterm8 avatar Oct 28 '16 04:10 chesterm8

Marking this as a duplicate of #851 - see my comment about the incoming fix https://github.com/Microsoft/BashOnWindows/issues/851#issuecomment-264314420

benhillis avatar Dec 01 '16 22:12 benhillis