Eric Dumazet
becb74f0ac
net: increase sk_[max_]ack_backlog
...
sk_ack_backlog & sk_max_ack_backlog were 16bit fields, meaning
listen() backlog was limited to 65535.
It is time to increase the width to allow much bigger backlog,
if admins change /proc/sys/net/core/somaxconn &
/proc/sys/net/ipv4/tcp_max_syn_backlog default values.
Tested:
echo 5000000 >/proc/sys/net/core/somaxconn
echo 5000000 >/proc/sys/net/ipv4/tcp_max_syn_backlog
Ran a SYNFLOOD test against a listener using listen(fd, 5000000)
myhost~# grep request_sock_TCP /proc/slabinfo
request_sock_TCP 4185642 4411940 304 13 1 : tunables 54 27 8 : slabdata 339380 339380 0
Signed-off-by: Eric Dumazet <edumazet@google.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2015-03-20 12:40:25 -04:00
..
2014-11-06 14:59:19 -05:00
2015-03-17 18:03:08 +01:00
2015-02-20 17:35:14 -05:00
2014-12-10 15:33:16 -05:00
2015-03-12 14:39:40 -04:00
2015-03-18 22:00:34 -04:00
2015-02-04 09:14:09 +01:00
2014-11-24 05:16:40 -05:00
2015-01-19 16:02:06 -05:00
2014-10-27 15:51:16 +01:00
2015-02-05 15:37:41 -08:00
2014-10-25 08:07:30 +02:00
2015-03-02 13:06:31 -05:00
2014-09-18 10:54:36 +02:00
2015-03-04 00:23:23 -05:00
2015-03-03 14:44:41 -05:00
2015-02-24 16:05:48 -05:00
2014-11-10 13:27:49 -05:00
2014-11-10 13:27:49 -05:00
2015-02-09 14:03:53 -08:00
2015-03-12 14:39:40 -04:00
2014-12-19 00:19:23 +01:00
2015-02-11 15:12:09 -08:00
2015-02-11 14:46:37 -05:00
2014-11-19 16:23:49 -05:00
2015-03-06 21:50:02 -05:00
2015-03-06 14:54:22 -05:00
2015-03-09 23:50:21 -04:00
2015-03-09 16:06:10 -04:00
2014-09-16 10:08:49 +02:00
2015-03-12 14:39:40 -04:00
2015-02-05 00:40:22 -08:00
2014-11-12 15:01:35 -05:00
2014-09-30 01:02:26 -04:00
2015-03-12 14:39:40 -04:00
2015-01-28 23:04:15 -08:00
2015-01-18 01:56:32 -05:00
2014-11-05 16:30:03 -05:00
2014-12-19 00:19:23 +01:00
2014-10-14 13:15:15 -04:00
2015-03-20 12:40:25 -04:00
2015-03-18 22:00:35 -04:00
2015-03-02 13:06:31 -05:00
2015-03-20 12:40:25 -04:00
2015-03-18 22:00:35 -04:00
2015-03-17 22:02:29 -04:00
2015-03-11 21:55:28 -04:00
2014-09-08 16:42:42 -07:00
2015-01-05 22:55:24 -05:00
2015-01-19 14:32:03 -05:00
2015-03-11 16:22:14 -04:00
2015-01-19 14:32:03 -05:00
2015-03-12 14:39:40 -04:00
2015-02-05 14:33:28 -08:00
2015-03-18 22:05:09 -04:00
2014-11-24 04:28:49 -05:00
2014-10-14 02:18:27 +02:00
2014-12-10 15:21:24 -05:00
2014-12-10 15:21:24 -05:00
2015-01-27 11:10:13 +01:00
2015-02-14 05:19:58 +01:00
2014-09-22 16:23:15 -04:00
2014-11-05 23:52:33 -08:00
2015-03-04 00:23:23 -05:00
2015-03-12 14:39:40 -04:00
2015-03-12 14:39:40 -04:00
2015-01-18 01:03:45 -05:00
2014-12-19 00:19:23 +01:00
2015-03-02 13:06:31 -05:00
2014-10-06 18:02:32 -04:00
2015-01-13 17:51:08 -05:00
2014-12-17 11:49:55 +01:00
2015-03-20 12:40:25 -04:00
2015-01-15 18:26:16 -05:00
2015-01-19 14:21:26 -05:00
2015-03-09 15:35:55 -04:00
2014-10-15 07:48:18 +02:00
2015-03-20 12:40:25 -04:00
2015-03-16 00:14:42 -04:00
2015-03-12 22:58:12 -04:00
2015-03-20 12:40:25 -04:00
2015-01-24 23:15:40 -08:00
2015-03-02 13:06:31 -05:00
2015-02-04 01:34:15 -05:00
2015-03-11 23:05:38 -04:00
2015-03-12 14:39:40 -04:00