Date: Thu, 15 Aug 2002 22:08:46 -0700 (PDT) From: David Greenman <dg@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern uipc_socket2.c Message-ID: <200208160508.g7G58kRZ098250@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
dg 2002/08/15 22:08:46 PDT Modified files: sys/kern uipc_socket2.c Log: Rewrote the space check algorithm in sbreserve() so that the extremely expensive (!) 64bit multiply, divide, and comparison aren't necessary (this came in originally from rev 1.19 to fix an overflow with large sb_max or MCLBYTES). The 64bit math in this function was measured in some kernel profiles as being as much as 5-8% of the total overhead of the TCP/IP stack and is eliminated with this commit. There is a harmless rounding error (of about .4% with the standard values) introduced with this change, however this is in the conservative direction (downward toward a slightly smaller maximum socket buffer size). MFC after: 3 days Revision Changes Path 1.102 +1 -1 src/sys/kern/uipc_socket2.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200208160508.g7G58kRZ098250>