Subject: changed files: 'src/sys/kern uipc_socket.c'
To: None <source-changes>
From: Chris G. Demetriou <cgd>
List: source-changes
Date: 11/05/1993 15:00:30
Update of /b/source/CVS/src/sys/kern
In directory

Modified Files:
Log Message:
fix from david greenman,
sosend was attempting to reserve space in an mbuf cluster for a datagram
header and because of bugs in the sosend's mbuf allocation algorithm, 
sosend was calling uiomove twice as many times as was necessary. It turns
out that PREPEND does the right thing when a cluster is associated with
an mbuf header, so the datagram header allocation can be defered. This
also ends up additionally consuming one less mbuf for the TCP protocol
because TCP always allocates another header mbuf regardless if space is
available to prepend the protocol header. The net result of this fix is
that unix domain and pipe throughput is increased by a measured 10%.