Thanks!My daemon processes UDP data very fast, just change little memory data,
so I think one loop for each UDP socket is enough, with recvmmsg.
发送自HTC手机
- Reply message -
发件人: "Brandon Black"
收件人: "Marc Lehmann"
抄送:
主题: multi-ev_loop on UDP socket
日期: 周二, 6 月 5
On Mon, Jun 4, 2012 at 12:36 PM, Brandon Black wrote:
> But you can scale up to more packets/sec handled on a given machine by
> doing one thread-per-socket (-per-core) and distributing the packets
I forgot to mention in the previous email: another area to look at for
high performance UDP on Linu
On Mon, Jun 4, 2012 at 8:40 AM, Marc Lehmann wrote:
> On Mon, Jun 04, 2012 at 02:44:19PM +0200, Joachim Nilsson
> wrote:
>> On Mon, Jun 4, 2012 at 2:29 PM, Marc Lehmann wrote:
>> > On Mon, Jun 04, 2012 at 08:41:38AM +0800, 钱晓明
>> > wrote:
>> >> If there are more than one event loop on same ud
On Mon, Jun 04, 2012 at 02:44:19PM +0200, Joachim Nilsson
wrote:
> On Mon, Jun 4, 2012 at 2:29 PM, Marc Lehmann wrote:
> > On Mon, Jun 04, 2012 at 08:41:38AM +0800, 钱晓明 wrote:
> >> If there are more than one event loop on same udp socket, and each of
> >> them in different thread, datagrams wil
On Mon, Jun 4, 2012 at 2:29 PM, Marc Lehmann wrote:
> On Mon, Jun 04, 2012 at 08:41:38AM +0800, 钱晓明 wrote:
>> If there are more than one event loop on same udp socket, and each of
>> them in different thread, datagrams will be processed by all threads
>> concurrently? For example, one thread is p
On Mon, Jun 04, 2012 at 08:41:38AM +0800, 钱晓明 wrote:
> If there are more than one event loop on same udp socket, and each of
> them in different thread, datagrams will be processed by all threads
> concurrently? For example, one thread is processing udp message while
> new message arrived, another
If there are more than one event loop on same udp socket, and each of them in
different thread, datagrams will be processed by all threads concurrently? For
example, one thread is processing udp message while new message arrived,
another thread would process this one immedately?
发送自HTC手机
___