回复: multi-ev_loop on UDP socket

2012-06-04 Thread 钱晓明
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

Re: multi-ev_loop on UDP socket

2012-06-04 Thread Brandon Black
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

Re: multi-ev_loop on UDP socket

2012-06-04 Thread Brandon Black
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

Re: multi-ev_loop on UDP socket

2012-06-04 Thread Marc Lehmann
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

Re: multi-ev_loop on UDP socket

2012-06-04 Thread Joachim Nilsson
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

Re: multi-ev_loop on UDP socket

2012-06-04 Thread Marc Lehmann
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

multi-ev_loop on UDP socket

2012-06-03 Thread 钱晓明
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手机 ___