Date: Fri, 18 Aug 2006 10:41:36 +0300 From: "Martin Eugen" <martin.eugen@gmail.com> To: freebsd-hackers@freebsd.org Subject: SOCK_DGRAM optimization needed... Message-ID: <966ba91e0608180041v3cfd9dcfh80ef89aab5404f48@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hello there, I have a simple application, that deals with lots of dgram sockets (UDP). Thousands of them. Basically, its purpose is to maintain pairs of sockets and when data is received on one of the sockets it peeks through it (doing some simple statistic calculations) and then forwards it to the other socket. Because of the hudge number of reads and writes (probably about a 10 packets per second per socket pair) it generates a significant load on the system, that I would like to minimize. I'm currently evaluating if it would be possible to add simple 'routing' functionality in the socket layer in the kernel, because frankly I'm not able to think of anything else. Any ideas? Martin P.S. I'm not subscribed to the list so please CC.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?966ba91e0608180041v3cfd9dcfh80ef89aab5404f48>