Re: Timings for optimised poll(2)

Alan Cox (alan@lxorguk.ukuu.org.uk)
Thu, 28 Aug 1997 00:08:38 +0100 (BST)


> Let me inject here that actually there is a problem with linux + ircd.

Really ?

> Linux never was really good at running ircd, and it still isnt (at least
> 2.0.x-series), but then again the only really good one is freebsd. Solaris
> works so-so.

> I get mysterious TCP lockups, dropped TCP connections etc, when my irc
> server reaches like 300-400 or more simultanious users.

Dropped connections I'd expect - I've worked on several irc daemon
dropped connection problems with people. In every case a tcpdump of icmp
frames showed someone bored was spamming it with port unreachables or
similar bogus frames. That and SYN bomb problems blocking the port
(often not malicious but the usual one way routing problems on the net)

I'd be interested in more information.

> Another thing is that linux should be able to handle at least 4096 fd /
> process. We tried to up this from 1024 but got some nasty oopses and
> alike.

Linux will handle this if you use the right patches. Several faulty
set of patches exist for this. The ones that work use kmalloc in select()
to support big sets. The broken ones put them on the stack which overruns
the stack and causes oopses.

Alan