poll() and 1024+ fd's ?

ruokonen@nic.funet.fi
Mon, 16 Feb 1998 12:56:52 +0200 (GMT)


Hi,

I want to allow thousands of file handles per process.
What is required to do that in 2.1 with poll() ?

With RH5 based system upgraded to kernel version 2.1.87-1
I have tried to raise the system limits and use poll(),
but the process (ircd) seems to become very slow after
1024 fd's has been exceeded. The same code (with poll())
works ok in Sol2.
The process connects and serves 1700 test sessions ok,
but it looks like poll() isn't returning as soon it
should. Strace shows how SYS_168() just sleeps even if it
should already return.
FYI; While hacking NR_OPEN & co in include/linux/*.h,
the kernel has burbed (many times) warnings like:
synq tail drop with expire=-313973
Socket destroy delayed (r=0 w=268)

PS. Direct Cc: to me appreciated.

-- 
<A HREF="http://www.funet.fi/~ruokonen/"> Vesa.Ruokonen@ftp.funet.fi </A>

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu