These parameters can be set only in the /etc/system file. After the file is modified, reboot the system.
The following entry sets tcp_conn_hash_size:
set tcp:tcp_conn_hash_size=1024 |
Controls the hash table size in the TCP module for all TCP connections.
Signed integer
512
512 to 1,073,741,824
The value should be a power of 2.
No. The parameter can only be changed at boot time.
If you set the parameter to a value that is not a power of 2, it is rounded up to the nearest power of 2.
If the system consistently has tens of thousands of TCP connections, increase the value accordingly. With the default value, TCP performs well up to a few thousand active connections. Note that increasing the hash table size means more memory consumption so set an appropriate value to avoid wasting memory unnecessarily.
Unstable
Controls the hash table size in an IP module for all active (in ESTABLISHED state) TCP connections.
Unsigned integer
512
512 to 2,147,483,648
It should be a power of two.
No. This parameter can only be changed at boot time.
If you set the parameter to a value that is not a power of 2, it is rounded up to the nearest power of two.
If the system consistently has tens of thousands of active TCP connections, increase the value accordingly. With the default value, the system performs well up to a few thousand active connections. Note that increasing the hash table size means more memory consumption so set an appropriate value to avoid wasting memory unnecessarily.
Unstable