diff options
| -rw-r--r-- | Documentation/networking/ip-sysctl.txt | 10 | ||||
| -rw-r--r-- | net/core/request_sock.c | 7 |
2 files changed, 9 insertions, 8 deletions
diff --git a/Documentation/networking/ip-sysctl.txt b/Documentation/networking/ip-sysctl.txt index f049a1ca186f..589f2da5d545 100644 --- a/Documentation/networking/ip-sysctl.txt +++ b/Documentation/networking/ip-sysctl.txt | |||
| @@ -282,11 +282,11 @@ tcp_max_ssthresh - INTEGER | |||
| 282 | Default: 0 (off) | 282 | Default: 0 (off) |
| 283 | 283 | ||
| 284 | tcp_max_syn_backlog - INTEGER | 284 | tcp_max_syn_backlog - INTEGER |
| 285 | Maximal number of remembered connection requests, which are | 285 | Maximal number of remembered connection requests, which have not |
| 286 | still did not receive an acknowledgment from connecting client. | 286 | received an acknowledgment from connecting client. |
| 287 | Default value is 1024 for systems with more than 128Mb of memory, | 287 | The minimal value is 128 for low memory machines, and it will |
| 288 | and 128 for low memory machines. If server suffers of overload, | 288 | increase in proportion to the memory of machine. |
| 289 | try to increase this number. | 289 | If server suffers from overload, try increasing this number. |
| 290 | 290 | ||
| 291 | tcp_max_tw_buckets - INTEGER | 291 | tcp_max_tw_buckets - INTEGER |
| 292 | Maximal number of timewait sockets held by system simultaneously. | 292 | Maximal number of timewait sockets held by system simultaneously. |
diff --git a/net/core/request_sock.c b/net/core/request_sock.c index 182236b2510a..9b570a6a33c5 100644 --- a/net/core/request_sock.c +++ b/net/core/request_sock.c | |||
| @@ -26,10 +26,11 @@ | |||
| 26 | * but then some measure against one socket starving all other sockets | 26 | * but then some measure against one socket starving all other sockets |
| 27 | * would be needed. | 27 | * would be needed. |
| 28 | * | 28 | * |
| 29 | * It was 128 by default. Experiments with real servers show, that | 29 | * The minimum value of it is 128. Experiments with real servers show that |
| 30 | * it is absolutely not enough even at 100conn/sec. 256 cures most | 30 | * it is absolutely not enough even at 100conn/sec. 256 cures most |
| 31 | * of problems. This value is adjusted to 128 for very small machines | 31 | * of problems. |
| 32 | * (<=32Mb of memory) and to 1024 on normal or better ones (>=256Mb). | 32 | * This value is adjusted to 128 for low memory machines, |
| 33 | * and it will increase in proportion to the memory of machine. | ||
| 33 | * Note : Dont forget somaxconn that may limit backlog too. | 34 | * Note : Dont forget somaxconn that may limit backlog too. |
| 34 | */ | 35 | */ |
| 35 | int sysctl_max_syn_backlog = 256; | 36 | int sysctl_max_syn_backlog = 256; |
