Confused about relationship between tcp_max_syn_backlog and TCP_SYNQ_HSIZE

Yusuf Goolamabbas (yusufg@outblaze.com)
22 Nov 2001 02:09:16 -0000


Hi, According to Documentation/networking/ip-sysctl.txt on 2.4.14

tcp_max_syn_backlog - INTEGER

Maximal number of remembered connection requests, which are
still did not receive an acknowledgement from connecting client.
Default value is 1024 for systems with more than 128Mb of memory,
and 128 for low memory machines. If server suffers of overload,
try to increase this number. Warning! If you make it greater
than 1024, it would be better to change TCP_SYNQ_HSIZE in
include/net/tcp.h to keep TCP_SYNQ_HSIZE*16<=tcp_max_syn_backlog
and to recompile kernel.

In include/net/tcp.h. I see the following

#define TCP_SYNQ_HSIZE 512 /* Size of SYNACK hash table
#*/

It seems counterintutive to reduce TCP_SYNQ_HSIZE to 128 if I were to
make tcp_max_syn_backlog to be 2048.

Maybe the documentation is wrong or I haven't figured out the zen in
this.

Any assistance would be appreciated

Regards, Yusuf

-- 
Yusuf Goolamabbas
yusufg@outblaze.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/