Re: SO_REUSEPORT?

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Tom Herbert <therbert@...>
Cc: <netdev@...>
Date: Thursday, August 7, 2008 - 2:17 pm

Tom Herbert wrote:

How would the presence of multiple TCP LISTEN endpoints change that? 
You'd then be at the mercy of whatever "scheduling" there was inside the 
stack.

If you want to balance the threads, perhaps a dispatch thread, or a 
virtual one - each thread knows how many connections it is servicing, 
let them know how many the other threads are servicing, and if a thread 
has N more connections than the other threads have it not go into 
accept() that time around.  Might need some tweaking to handle 
pathological starvation cases like all the other threads are hung I 
suppose but the basic idea is there.

rick jones

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
SO_REUSEPORT?, Tom Herbert, (Thu Aug 7, 12:57 pm)
Re: SO_REUSEPORT?, Rémi Denis-Courmont, (Thu Aug 7, 1:09 pm)
Re: SO_REUSEPORT?, Tom Herbert, (Thu Aug 7, 1:58 pm)
Re: SO_REUSEPORT?, Rick Jones, (Thu Aug 7, 2:17 pm)
Re: SO_REUSEPORT?, Stephen Hemminger, (Thu Aug 7, 3:03 pm)
Re: SO_REUSEPORT?, Tom Herbert, (Thu Aug 7, 3:43 pm)
Re: SO_REUSEPORT?, Rick Jones, (Thu Aug 7, 4:14 pm)
Re: SO_REUSEPORT?, Tom Herbert, (Thu Aug 7, 7:05 pm)
Re: SO_REUSEPORT?, Rick Jones, (Thu Aug 7, 7:28 pm)