Confused about relationship between tcp_max_syn_backlog and TCP_SYNQ_HSIZE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
#*/

Doing the math as specified and changing tcp_max_syn_backlog to 2048,
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
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux