Re: udp sendto performance

2021-07-06 Thread Stuart Henderson
On 2021-07-06, Philip Guenther wrote: > On Mon, Jul 5, 2021 at 3:56 PM Brian Empson wrote: > ... > >> I'm running 6.5, is there any significant performance improvements in >> the newer versions of OpenBSD that would improve sendto()'s performance? >> > > Yes. > > I'll suggest that before you do a

Re: udp sendto performance

2021-07-05 Thread Philip Guenther
On Mon, Jul 5, 2021 at 3:56 PM Brian Empson wrote: ... > I'm running 6.5, is there any significant performance improvements in > the newer versions of OpenBSD that would improve sendto()'s performance? > Yes. I'll suggest that before you do any serious perf measurement or try to "squeeze more p

udp sendto performance

2021-07-05 Thread Brian Empson
Hello, I'm writing an snmp poller and I can't seem to get past around 60k hosts (1 packet per host) in 2 seconds with sendto(). I'm using kqueue() and batching the packets as the socket becomes ready for writes (it's always ready as far as I can tell from debugging). I've done some profiling and t