Re: > 15,000 Simultaneous Connections

Jordan Mendelson (jordy@wserv.com)
Wed, 15 Sep 1999 12:36:38 -0400


Mike Jagdis wrote:
>
> On Wed, 15 Sep 1999, Stephen C. Tweedie wrote:
>
> > The current code in the kernel delivers a normal, unqueued SIGIO
> > specifically to notify the application of overflow.
>
> Personally I dislike that failure mode. The recovery method (using
> select or poll) involves allocating fairly significant chunks of
> kernel memory and spending significant time looping in kernel mode.

The rt signal queues default to 1024 and can be tuned by
/proc/sys/kernel/rtsig-max. This appears to be a system-wide limit and not a
per-process limit.

The default system FD limit of 4096 and user FD limit of 1024 probably make
this just about enough for socket handling. If you are going to be using
15,000 connections, raise the queue size when you raise the fd size.

Now my question is, is setting si_band and si_value to the type of operation &
FD for RT signals portable? Unfortunatly, I can't find anything related to
this online (you'd think standards bodies would publish these things openly).

Jordan

--
Jordan Mendelson     : http://jordy.wserv.com
Web Services, Inc.   : http://www.wserv.com

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/