toysolver
toysolver copied to clipboard
ToySolver.SAT.Solver.CDCL: use timer thread to print statistics at mo…
trafficstars
…re regular intervals
CI fails with Out of memory on windows-i386.
The message is printed at https://github.com/ghc/ghc/blob/31cd867e4d37072c3ce1d51efadc94e66ddc1c28/rts/win32/OSMem.c#L77 in allocNew function after the invocation VirtualAlloc(0,0x200000, MEM_RESERVE, PAGE_READWRITE) failed.
My hypothesis:
- A large number of threads are created for some reason https://gitlab.haskell.org/ghc/ghc/-/issues/23213
- The virtual memory reservation for stacks of those threads used up 2GB of virtual address space.
- Since they were only reserved and not committed, the apparent memory consumption was not big.