HomeFreeBSD

When processing ACK in tcp_do_segment, use sbcut_locked() instead of

Description

When processing ACK in tcp_do_segment, use sbcut_locked() instead of
sbdrop_locked() to cut acked mbufs from the socket buffer. Free this
chain a batch manner after the socket buffer lock is dropped.

This measurably reduces contention on socket buffer.

Sponsored by: Netflix
Sponsored by: Nginx, Inc.
Approved by: re (marius)

Details

Provenance
glebiusAuthored on Oct 9 2013, 12:00 PM
Parents
rG1d2df300e9b5: - Substitute sbdrop_internal() with sbcut_internal(). The latter doesn't free
Branches
Unknown
Tags
Unknown

Event Timeline