[zeromq-dev] Should zeromq handle OOM? (Re: [PATCH] Fixed OOM handling while writing to a pipe)

Martin Sustrik sustrik at 250bpm.com
Mon May 23 16:34:41 CEST 2011


On 05/23/2011 04:24 PM, Martin Lucina wrote:
> paul at colomiets.name said:

>> 1. turn off disconnecting on OOM (so that new connection would not crash
>> application)

That would be a really great improvement.

>> 2. fix everything about sending/receiving messages

>> 3. setup a two zmq_streamer-like devices (old code and new code) opened to the
>> exernal world, so that anybody can test, set small ulimit -a for both
>> 4. setup a slow consumer which also shows statistics from both devices

I would say depending on outer world to stress test the patch is too 
optimistic an attitude. Simply setting low ulimit locally and opening a 
lot of connections to the device using a test program would be much more 
reliable test IMO.

> As for Pieter's philosophical arguments, ultimately the person you need to
> convince is not Pieter via philosophical arguments but Martin Sustrik by
> sumbitting a patch :-)

Code speaks...

Martin



More information about the zeromq-dev mailing list