Subject: Re: UDP(/TCP?) bench/tuning ?
To: None <>
From: Matthew Mondor <>
List: tech-net
Date: 05/11/2005 09:24:57
On Tue, 10 May 2005 22:32:14 +0200
Eric Auge <> wrote:

> does kqueue(2) will provide more reliability? performance?
> during high load on udp? tcp ? should I prefer it to poll(2),
> the quick testing I have made (by replacing poll() by kevent())
> doesn't show much difference.

You shouldn't notice performance changes between kqueue(2) and poll(2)
if you only are polling a single socket, IMO, kqueue's performance
advantage mostly has to do with scalibility when polling a number of
sources at once (userland doesn't have to run through the whole
array/set for instance, to know which sources had events and process
them), and ability to add/remove multiple sources at once from the
polling set (avoiding the need for a syscall per descriptor to
add/remove to/from a polling set)...

Note: Please only reply on the list since other mail is blocked by default.
Private messages from your address can be allowed by first asking, however.