Re: accept() improvements for rt signals

From: Jamie Lokier (lk@tantalophile.demon.co.uk)
Date: Tue Feb 22 2000 - 08:20:48 EST


Stephen C. Tweedie wrote:
> The mantra of F_SETSIG is that you never ever
> have to do anything unscalable like polling on every fd you have open
> when only a few have activity. The poll() you describe above is a
> single non-blocking poll on one single fd, which doesn't have the
> scalability problems inherent in making your whole event loop revolve
> around poll().

On that theme, the form of accept2() where you provide a pre-prepared
socket recycled from a previously shut down client has another
scalability advantage:

The kernel does not have to search the fd array to find the smallest
free fd value.

-- Jamie

-
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