Page MenuHomeFreeBSD

Add a sysctl to toggle the use of the sockets LOWAT when calculating auto window growth
ClosedPublic

Authored by j-nitrology.com on May 31 2017, 9:52 PM.
Tags
None
Referenced Files
Unknown Object (File)
Nov 19 2024, 6:29 PM
Unknown Object (File)
Oct 26 2024, 8:48 PM
Unknown Object (File)
Oct 3 2024, 2:37 PM
Unknown Object (File)
Sep 28 2024, 10:12 PM
Unknown Object (File)
Sep 12 2024, 6:40 PM
Unknown Object (File)
Sep 4 2024, 5:16 AM
Unknown Object (File)
Sep 3 2024, 7:18 PM
Unknown Object (File)
Aug 17 2024, 5:22 PM
Subscribers
None

Details

Summary

For applications that don't send as aggressively, this helps ensure we still grow the local window by taking its low watermark into account. By default, SO_SNDLOWAT is a negligable 1024. When this number is bumped up for efficiency on a large number of sessions, it starts to affect the ability for growth in the current code.

Test Plan

We have been running with this SO_SNDLOWAT modification at LLNW for a few years

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 9610
Build 10056: arc lint + arc unit

Event Timeline

It may be more proper for this to go into tflag, but the downsides there is then it won't apply to existing sessions and we consume more space (which is low with the current padding). Open to any opinions, as locally we just have it hard coded on in any case.

I know this has been in prod for quite some time and works. I don't want to engage in "best-practices" for this. :-) LGTM.

This revision is now accepted and ready to land.Jun 20 2017, 11:30 PM
This revision was automatically updated to reflect the committed changes.