Efficent handling of sockets

Salman Ahmed fia_wrc_fanatic-/E1597aS9LQAvxtiuMwx3w at public.gmane.org
Thu Feb 19 17:04:36 UTC 2009


The following site has some good information on how to tackle this problem:

http://www.kegel.com/c10k.html



Salman Ahmed


--- On Thu, 2/19/09, Ken Burtch <ken-8VyUGRzHQ8IsA/PxXw9srA at public.gmane.org> wrote:

> From: Ken Burtch <ken-8VyUGRzHQ8IsA/PxXw9srA at public.gmane.org>
> Subject: [TLUG]: Efficent handling of sockets
> To: tlug-lxSQFCZeNF4 at public.gmane.org
> Date: Thursday, February 19, 2009, 10:33 AM
> Any socket gurus out there?
> 
> I had a question from a guy at work writing his own socket
> server in C. He is writing an application which needs to
> handle thousands of users.
> 
> He would like to know the most efficient way of servicing
> sockets.  Although he blocks on sockets with a select(2)
> call to the kernel, he must still search thorugh the select
> list to determine which socket needs to be serviced.  He
> would like to know if there is a more efficient way to
> handle the socket stack.  In particular, he heard that there
> is a way to have the kernel call a C function to processess
> particular sockets but he doesn't know how to set that
> up nor is he certain if he has to use a custom kernel module
> to achive this.  Can anyone give him pointers on how to make
> searching through the select(2) results more efficient or
> give him a more efficient alternative to select(2) for
> managing large numbers of sockets?
> 
> Thanks,
> Ken B.
> 



      
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list