Help Center/ Bare Metal Server/ Private Image Creation Guide/ FAQ/ How Do I Improve the UDP Packet Performance for x86 EulerOS 2.3?
Updated on 2022-07-12 GMT+08:00

How Do I Improve the UDP Packet Performance for x86 EulerOS 2.3?

Scenario

The iperf3 tool is used to test the maximum UDP bandwidth (1440-byte packets) and PPS (64-byte packets) with 0% packets lost. To acquire more UDP bandwidth and PPS, perform operations in this section.

Procedure

  1. Log in to x86 EulerOS 2.3 in SSH mode and switch to user root.
  2. Run the following command to back up /etc/sysctl.conf:

    cp /etc/sysctl.conf /root/sysctl.conf_bak

  3. Use vim to append the following content to /etc/sysctl.conf:
    net.core.wmem_default =21299200
    net.core.rmem_default=21299200
  4. Run the following command to make the configuration take effect:

    /sbin/sysctl -p