svn commit: r190506 - stable/7/sys/netinet
Robert Watson
rwatson at FreeBSD.org
Sat Mar 28 09:12:33 PDT 2009
Author: rwatson
Date: Sat Mar 28 16:12:32 2009
New Revision: 190506
URL: http://svn.freebsd.org/changeset/base/190506
Log:
Enable soreceive_dgram() use by UDP by default in 7.x. This can lead
to a significant performance improvement for multi-threaded UDP socket
receive, such as found in BIND, memcached, VoIP applications, etc.
Requested by: Florian Smeets <flo at kasimir.com>
Approved by: re (kib)
Modified:
stable/7/sys/netinet/udp_usrreq.c
Modified: stable/7/sys/netinet/udp_usrreq.c
==============================================================================
--- stable/7/sys/netinet/udp_usrreq.c Sat Mar 28 15:54:08 2009 (r190505)
+++ stable/7/sys/netinet/udp_usrreq.c Sat Mar 28 16:12:32 2009 (r190506)
@@ -131,7 +131,7 @@ u_long udp_recvspace = 40 * (1024 +
SYSCTL_ULONG(_net_inet_udp, UDPCTL_RECVSPACE, recvspace, CTLFLAG_RW,
&udp_recvspace, 0, "Maximum space for incoming UDP datagrams");
-static int udp_soreceive_dgram;
+static int udp_soreceive_dgram = 1;
SYSCTL_INT(_net_inet_udp, OID_AUTO, soreceive_dgram_enabled,
CTLFLAG_RD | CTLFLAG_TUN, &udp_soreceive_dgram, 0,
"Use experimental optimized datagram receive");
More information about the svn-src-stable
mailing list