diff options
| author | Michael Tuexen <tuexen@FreeBSD.org> | 2025-10-15 20:04:00 +0000 |
|---|---|---|
| committer | Michael Tuexen <tuexen@FreeBSD.org> | 2025-10-15 20:14:53 +0000 |
| commit | 1fe6497b48d6954ac07870d920b2e5d6d206be5e (patch) | |
| tree | e49c8e93beb23cdf2e1b2e333a1759da6c8919ea | |
| parent | 654a3aa9a1de176648eec00b3c201c33b10bd325 (diff) | |
socket: bump socket buffer limit to 8MB
Bump the socket buffer limit from 2 MB to 8MB.
In particular, this allows to use larger values for TCP sockets,
which may result in higher throughput values with default settings.
In the review I was proposing using 16 MB, but in the transport
call today we settled on a more conservative value of 8.
Bumping it further will be done in combination with mitigations
for mbuf exhaustion attacks.
Reviewed by: rscheff, Peter Lei, jtl, thj
MFC after: 3 days
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D52873
| -rw-r--r-- | sys/sys/sockbuf.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/sockbuf.h b/sys/sys/sockbuf.h index b4593f38f592..739723754b7d 100644 --- a/sys/sys/sockbuf.h +++ b/sys/sys/sockbuf.h @@ -62,7 +62,7 @@ #include <sys/_sx.h> #include <sys/_task.h> -#define SB_MAX (2*1024*1024) /* default for max chars in sockbuf */ +#define SB_MAX (8*1024*1024) /* default for max chars in sockbuf */ struct ktls_session; struct mbuf; |
