Page MenuHomeFreeBSD

tcp: bump max rcv buffer size for autoscaling
Needs RevisionPublic

Authored by tuexen on Thu, Oct 2, 7:28 PM.
Tags
None
Referenced Files
F132042786: D52871.diff
Mon, Oct 13, 4:39 AM
Unknown Object (File)
Sat, Oct 11, 6:22 PM
Unknown Object (File)
Thu, Oct 9, 12:21 PM
Unknown Object (File)
Thu, Oct 9, 12:21 PM
Unknown Object (File)
Thu, Oct 9, 11:55 AM
Unknown Object (File)
Tue, Oct 7, 2:17 AM
Unknown Object (File)
Fri, Oct 3, 6:39 AM
Unknown Object (File)
Thu, Oct 2, 9:53 PM

Details

Summary

Bump it to 16 MB to allow higher throughput with default configurations.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

tuexen requested review of this revision.Thu, Oct 2, 7:28 PM
jtl added a subscriber: jtl.

My main concern about these three revisions is that they are somewhat susceptible of remote manipulation, and that could make it easier to DoS a server. However, I view that as a tradeoff that the user needs to make, and think an appropriate release note should suffice to warn about these issues.

This revision is now accepted and ready to land.Thu, Oct 2, 9:18 PM

For reference, the Linux kernel recently changed it from 6MB to 32MB.

title: tcp: increase tcp_rmem[2] to 32 MB
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=572be9bf9d0d96242dd7977ce456009b6c690dce

rgrimes requested changes to this revision.Fri, Oct 3, 1:26 AM

I would of done all 3 of these as 1 review/commit, they really all go hand in hand, I might of even gone further and added a new #define "INFLIGHTMAX" or some such, which was used in all 3 places to show just how coupled these values really are.

In D52871#1207935, @cc wrote:

For reference, the Linux kernel recently changed it from 6MB to 32MB.

title: tcp: increase tcp_rmem[2] to 32 MB
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=572be9bf9d0d96242dd7977ce456009b6c690dce

Then by all means please DO update these to 32MB, I only suggested to use 16MB as a minimum bump, as that gets us someone closer to new systems, but if Linux has already pushed rmem to 32MB we should match that, giving both Linux and FreeBSD the same WSCALE on tcp, and making benchmarks and real world performance between the 2 similiar.

This revision now requires changes to proceed.Fri, Oct 3, 1:26 AM
thj added a subscriber: thj.

I am happy with all three revisions and echo the comments from rgrimes and jtl on a single review and the impact being documented.

When we discussed the change yesterday we misremembered the current default as 4MB and decided that increasing the memory liability 4x was fine. As this is easy to reconfigure I don't have any issue with matching Linux, but for 15 this works too.

@tuexen please pick your favourite number :D