You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for reporting this. By default native Linux will not allowing you to map an address range larger than your swap file size. In WSL we report the size of the swap file as the size of the NT page file (check the output of top or htop to see how big your swap file is). You should be able to get around this by increasing your NT page file size.
On native Linux this behavior is configurable by setting /proc/sys/vm/overcommit_memory to 1, but that ProcFs file is not currently exposed in WSL.
Ben Hillis (@benhillis) Thanks for your explanation! Out of curiosity I did some more experiments. Does following result look normal? Native Ubuntu (running in hyper-V VM) succeeds up to 64TB. Doesn't look like 50 x anything?
On WSL, max mmap size for above test -- 0x100000000ul * 1.
Oguz Bastemur (@obastemur) - What is your output of ver.exe? There was an additional fix that did not make creators update but reached Windows Insiders in build 16215.
Activity
benhillis commentedon Jun 28, 2016
Thanks for reporting this. By default native Linux will not allowing you to map an address range larger than your swap file size. In WSL we report the size of the swap file as the size of the NT page file (check the output of top or htop to see how big your swap file is). You should be able to get around this by increasing your NT page file size.
On native Linux this behavior is configurable by setting /proc/sys/vm/overcommit_memory to 1, but that ProcFs file is not currently exposed in WSL.
jianchun commentedon Jun 28, 2016
Ben Hillis (@benhillis) Thanks for your explanation! Out of curiosity I did some more experiments. Does following result look normal? Native Ubuntu (running in hyper-V VM) succeeds up to 64TB. Doesn't look like 50 x anything?
On WSL, max mmap size for above test --
0x100000000ul * 1.On Native Ubuntu, max mmap size for above test --
0x100000000ul * 1024 * 16.benhillis commentedon Jun 28, 2016
Native Ubuntu might do something strange with PROT_NONE. Could you change that to
PROT_READ | PROT_WRITEand try the same experiment?jianchun commentedon Jun 28, 2016
Ben Hillis (@benhillis) Yes, you are right -- With "PROT_READ | PROT_WRITE" Native Ubuntu can only do
0x100000000ul * 1too.benhillis commentedon Apr 10, 2017
Support for this has vastly improved in Creators Update.
obastemur commentedon Jul 11, 2017
Latest insider (updated today) this issue appears again.
benhillis commentedon Jul 11, 2017
Oguz Bastemur (@obastemur) - What is your output of ver.exe? There was an additional fix that did not make creators update but reached Windows Insiders in build 16215.