Date: Fri, 15 Dec 2006 16:23:36 -0500 From: David Gilbert <dgilbert@dclg.ca> To: freebsd-hackers@freebsd.org Subject: Detecting buffer space with UDP. Message-ID: <17795.4696.998145.337454@canoe.dclg.ca>
next in thread | raw e-mail | index | archive | help
I'm using kqueue() with a EVFILT_WRITE to send udp packets over a gigabit interface (the job here is to stress test DNS servers). I'd like to send packets at wire rates, but somehow the EVFILT_WRITE is always triggered and I'm dropping a lot of packets on the floor. Is there a way (preferably with kqueue()) to wait on the bandwidth available on the card? Dave. -- ============================================================================ |David Gilbert, Independent Contractor. | Two things can be | |Mail: dave@daveg.ca | equal if and only if they | |http://daveg.ca | are precisely opposite. | =========================================================GLO================
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?17795.4696.998145.337454>