[Haskell-cafe] Memory consumption issues under heavy network throughput/concurrency loads
ben at groovie.org
Sun Jul 20 21:14:02 UTC 2014
On Jul 17, 2014, at 11:56 AM, Simon Marlow <marlowsd at gmail.com> wrote:
> You guys seem to be doing a good job of narrowing this down. We know there are issues with fragmentation when using ByteStrings; in the worst case each ByteString can pin up to its size rounded up to 4Kbytes. If you're not keeping old ByteStrings around but are regularly recycling them, then you shouldn't see this problem. I believe we made some improvements (allegedly) in 7.6 to the fragmentation behaviour.
> Do let me know when you've narrowed it down to something you think I should look at.
I made a slightly more complex version of the echo server that uses attoparsec to read into a basic datatype here:
I've been unable to make it leak using the socket handling code Gregory supplied, and its growth bounds seem fine (113Mb for 5k connections each sending 2 pings/sec). As I flesh out the HTTP/2 frame handling (which will result in substantial increases of temporary ByteStrings), I'll see if any fragmentation issues return.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
More information about the Haskell-Cafe