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
fix issue 24309 - Memory allocation failed on Azure pipeline #15997
Conversation
Thanks for your pull request, @rainers! Bugzilla references
Testing this PR locallyIf you don't have a local development environment setup, you can use Digger to test this PR: dub run digger -- build "stable + dmd#15997" |
Thx Rainer for investigating and trying to fix this sporadic issue. 👍 Targeting |
only run GC test that requires 4 GB of memory if that's available as *free* physical memory
Ok, rebased. A merge back to master soon would be much appreciated :) |
Oh well, the problem still occurs, but hopefully less often now: https://dev.azure.com/dlanguage/dmd/_build/results?buildId=40448&view=logs&jobId=4eadb322-4cab-54fe-0034-466161775765&j=4eadb322-4cab-54fe-0034-466161775765&t=4bcb94ae-2251-5415-5c2d-f4382a64a161 |
Too bad. Maybe the VM is only a little above the necessary threshold, but cannot assign it to a single allocation. An option could be to add a few GB to it, or just disable the test. |
I'm wondering why this was never an issue on Linux, as those runners have 7 GB RAM too. Maybe just vastly more efficient virtual mem allocation on Linux, hardly needing any physical page for that huge, as good as unused allocation? |
I guess it is something like that. Or the Linux VM allows swapping, but the Windows VM does not. |
Thanks everyone for working hard to resolve this. |
only run GC test that requires 4 GB of memory if that's available as free physical memory
Please note that
os_physical_mem()
is only used by this test.