Sample configuration | Server | Client |
Instance specifications | ecs.g3i.2xlarge | ecs.g3i.2xlarge |
Image type | Ubuntu 22.04 | Ubuntu 22.04 |
Data volume specification | Data volume: 1000GiB * 1 | - |
Instance quantity | 1 | 1 |
Optimization item | Configuration details |
Partition volume | We recommend that when you partition a volume, set the starting cylinder value to ≥ 2048 and a multiple of 8. For detailed operations, refer to Partitioning and formatting volumes. tip In the example provided in this topic, the volume is partitioned and mounted to the file system in Step 1. You can skip this step. |
Install irqbalance-ng | Follow the guide in network interface interrupt binding to install irqbalance-ng, which automatically configures interrupts for physical network interfaces. This helps enhance network performance. |
Disable napi_tx | This feature is enabled by default only when the Linux kernel version is ≥ 5.3. You can execute the uname -r command to check the kernel version, and then disable napi_tx as follows.
# Disable napi_tx: rmmod virtio_net && modprobe virtio_net napi_tx=0 && systemctl restart systemd-networkd.service # Enable napi_tx: rmmod virtio_net && modprobe virtio_net napi_tx=1 && systemctl restart systemd-networkd.service
# Disable napi_tx: rmmod virtio_net && modprobe virtio_net napi_tx=0 && systemctl restart networking.service # Enable napi_tx: rmmod virtio_net && modprobe virtio_net napi_tx=1 && systemctl restart networking.service
# Disable napi_tx: rmmod virtio_net && modprobe virtio_net napi_tx=0 && systemctl restart nmcli c reload # Enable napi_tx: rmmod virtio_net && modprobe virtio_net napi_tx=1 && systemctl restart nmcli c reload Execute the cat /sys/module/virtio_net/parameters/napi_tx command. If N is returned, napi_tx is disabled. |