u/dsign2819in r/haskell • Recommends
On “GHC cannot achieve low latency with a large working set”
I'm sorry to see this issue bite you, and as a fellow Haskell programmer I understand and to some point share your predicament. But this an old issue, and it is not even a Haskell issue. See for example the same problem happening in Java Virtual Machines (this presentation by the way was quite an eye-opener for me on the issue):
link to this video
There are likely some workarounds. For example, maybe it is possible to remove large buffers from Haskell's GC control using the FFI API. Or wait for the sanctioned compact regions patch.