Re: accept() improvements for rt signals

From: Stephen C. Tweedie (sct@redhat.com)
Date: Tue Feb 22 2000 - 07:37:51 EST


Hi,

On Mon, 21 Feb 2000 08:58:05 +0200 (EET), Julian Anastasov
<uli@linux.tu-varna.acad.bg> said:

> But using threads I'm limited to small number of served
> clients (sockets), at least in 2.2: memory, pids. I'm talking about
> 32768+ open file descriptors with low TCP traffic.

You need to use threads if you want to take advantage of SMP, but
there's no reason you need one thread per socket --- you can just
load-balance a small number of threads, passing each accepted fd to the
least-loaded thread.

It's still a hack, of course, but until we have properly working shared
signal queues it's the best we can do.

--Stephen

-
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/



This archive was generated by hypermail 2b29 : Wed Feb 23 2000 - 21:00:30 EST