Searched hist:261047 (Results 1 - 1 of 1) sorted by relevance

/freebsd-10.3-release/sys/rpc/
H A Dsvc_vc.cdiff 261047 Wed Jan 22 23:53:17 MST 2014 mav MFC r259632:
Rework flow control for connection-oriented (TCP) RPC server.

When processing receive buffer, write the amount of data, expected
in present request record, into socket's so_rcv.sb_lowat to make stack
aware about our needs. When processing following upcalls, ignore them
until socket collect enough data to be read and processed in one turn.
This change reduces number of context switches and other operations
in RPC stack during large NFS writes (especially via non-Jumbo networks)
by order of magnitude.

After precessing current packet, take another look into the pending
buffer to find out whether the next packet had been already received.
If not, deactivate this port right there without making RPC code to
push this port to another thread just to find that there is nothing.
If the next packet is received partially, also deactivate the port, but
also update socket's so_rcv.sb_lowat to not be woken up prematurely.
This change additionally reduces number of context switches per NFS
request about in half.

Completed in 49 milliseconds