-
Notifications
You must be signed in to change notification settings - Fork 821
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
malloc() size limit? File read size limit? #2653
Comments
You generally get better service by following the issue template. But anyway, dunno how this one slipped though after a year and a half. Not a dupe AFAICT. Test case is shorter than your post.
The allocation succeeds (indeed the GHC guys allocate terrabytes), but the
|
Cool, thanks. And indeed your test case is shorter than my spiel and reproduces the behavior on my end. Cheers, |
In Linux, In WSL, We'll work on a fix. |
This should be fixed in insider build 17063. |
Hello,
I'm using the Fall Creator's update with the Store version of Ubuntu 16.04.3. I have 96GB of RAM (and 40 threads) running Windows 10 Pro.
When I try to run memory-intensive applications that require reading in large files (>4GB) into arrays that are malloc()'d beforehand, the program will fail without reporting that the allocation failed or that reading the file failed. It just happens too quickly, doesn't use the expected amount of RAM, and doesn't produce the correct results.
This has happened in a few programs, but one of them is BURST (GitHub.com/knights-lab/BURST) on a 50GB database file.
The same binary executes on the same machine running native Ubuntu 16.04.3 and produces the correct result. The binary, when compiled using GCC on windows (not WSL) also runs correctly. In all cases, the system has >95% of the memory free.
So my question is whether there is a (secret) limit in either:
Since these are system calls likely translated in some way by the kernel (sbrk, read), I suspect there is something going on. If you are unable to confirm any such limitations, I will try to probe further with a toy program.
Thanks,
Gabe
The text was updated successfully, but these errors were encountered: