Messages in this thread | | | From | "Stephen C. Tweedie" <> | Date | Tue, 22 Feb 2000 12:37:51 +0000 (GMT) | Subject | Re: accept() improvements for rt signals |
| |
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/
| |