[zeromq-dev] ZMQ Message Size Limitations

Goswin von Brederlow goswin-v-b at web.de
Mon Apr 14 11:38:47 CEST 2014


On Fri, Apr 11, 2014 at 09:34:39AM -0700, Mark Hotchkiss wrote:
> But I would think that it would be killed almost instantly if that was the case. It runs for like 20 to 30 minutes before it is killed. 
...
> On Friday, April 11, 2014 12:29 AM, Pieter Hintjens <ph at imatix.com> wrote:
>  
> Mark,
> 
> > 3. In window #3:  ./taskvent 5000 23000000    (jobs, messageSize in bytes)
> > After a
> > while, prior to completion, window #3 (taskvent) will display the word
> > "Killed" and the process will stop without further action.
> 
> Perhaps it's consuming too much memory for a single process and then
> being killed by the OS?
> 
> 5000 x 2.3 MB = 11 500 MB.

If you have swap then it will use all available swap space before
getting killed. And since disks are horribly slow compared to physcial
ram it takes a long time for all swap space to be used up and a
process getting killed.

Try running the test without swap if you can, which should kill the
test almost instantly if it is a ram shortage. Or monitor the swap /
disk activity during the test.

MfG
	Goswin



More information about the zeromq-dev mailing list