Help Center> Bare Metal Server> Private Image Creation Guide> Creating a Linux Private Image Using virt-manager> FAQ> How Can I Optimize the UDP Packet Performance for x86 EulerOS 2.3?

How Can I Optimize the UDP Packet Performance for x86 EulerOS 2.3?

Symptom

The iperf3 tool is used to test the upper limits of the bandwidth (1440 packets) and PPS (64 packets) that can ensure zero packet loss in UDP connection. This section describes how to increase the upper limits.

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