| Type | Parameter | Description | Recommended value/range |
|---|---|---|---|
| Network parameter | net.core.somaxconn | The maximum length of the socket listening queue. Set this parameter to a large value if you frequently establish connections. | 2048. The default value is 128. |
| Network parameter | net.core.netdev_max_backlog | The length of the buffer queue processed by the protocol stack. If the value is too small, packet loss may occur. | 10000 |
| Network parameter | net.core.rmem_default | The default size of the receiving buffer queue. | 16777216 |
| Network parameter | net.core.wmem_default | The default size of the sending buffer queue. | 16777216 |
| Network parameter | net.core.rmem_max | The maximum size of the receiving buffer queue. | 16777216 |
| Network parameter | net.core.wmem_max | The maximum size of the sending buffer queue. | 16777216 |
| Network parameter | net.ipv4.ip_local_port_range | The port range of the local TCP/UDP client. The local client uses the ports within this range to initiate a connection with a remote client. | [3500, 65535] |
| Network parameter | net.ipv4.tcp_rmem | The minimum, default, and maximum sizes of the socket receiving buffer. | 4096 (minimum size), 87380 (default size), and 16777216 (maximum size). |
| Network parameter | net.ipv4.tcp_wmem | The minimum, default, and maximum sizes of the socket sending buffer. | 4096 (minimum size), 65536 (default size), and 16777216 (maximum size). |
| Network parameter | net.ipv4.tcp_max_syn_backlog | The number of connections in the SYN_RECVD state. | 16384 |
| Network parameter | net.ipv4.tcp_fin_timeout | The duration of the FIN-WAIT-2 state after the socket actively disconnects. | 15 |
| Network parameter | net.ipv4.tcp_tw_reuse | The number of sockets in TIME WAIT state allowed to be reused. | 1 |
| Network parameter | net.ipv4.tcp_slow_start_after_idle | Slow starts of TCP connections from the Idle state can be disabled to reduce network latency in some cases. | 0 |
| Virtual memory configuration | vm.swappiness | The preferential use of the physical memory. | 0 |
| Virtual memory configuration | vm.max_map_count | The number of virtual memory areas that a process can have. | 655360 |
| AIO configuration | fs.aio-max-nr | The number of asynchronous I/O requests. | 1048576 |
| The process scheduling policy. | kernel.sched_migration_cost_ns | If the thread running time is less than the value of this parameter, load balancing among CPU cores is not implemented for this thread. You can reduce the value to achieve more balanced loads among CPU cores. | 0 |
OS parameter tuning
share
Previous topic