[zeromq-dev] Delayed message reception problem.

Pieter Hintjens ph at imatix.com
Thu Mar 28 11:24:35 CET 2013


On Wed, Mar 27, 2013 at 4:51 PM, Divya Mohan <divya.mohan310 at gmail.com> wrote:

> Current and default scheduling policy is SCHED_OTHER. I had given highest
> priority to my receive process thinking delay due to scheduling will be
> taken care off but even then the messages are delayed.
>
> Also I am not using any sleep in  my receive process. Only send process has
> a sleep of 1 msec.

In general changing thread priorities is a bad idea.

Perhaps you have another process taking CPU time at random occasions,
causing the sender I/O thread to be swapped out.

If you want guarantees that there are no spikes you'll have to use a
real time kernel. It will increase average latency but remove the
spikes.

-Pieter



More information about the zeromq-dev mailing list