Checking the OS and Kernel
Purpose
In OpenStack virtualization scenarios, the CentOS OS is used by default. Currently, the CentOS 7.6 aarch64 version and the default kernel version are recommended.
Procedure
- Run the following command to check the OS version.
1cat /etc/redhat-releaseThe following is an example of the output result:

- Run the following command to check the kernel version.
1uname -rThe following is an example of the output result:

- Run the following command to check the number of NUMA nodes:
1numactl -HThe following is an example of the command output, which indicates that there are four NUMA nodes:

For a Kunpeng ARM-based server, there are two NUMA nodes for each socket. That is, there are four NUMA nodes in a 2-socket environment and eight in a 4-socket environment. If the number of nodes is incorrect, perform the following steps. Otherwise, skip the following steps and go to Check the Hi1822 NIC driver to check the Hi1822 NIC driver.
Check whether Die Interleaving and One NUMA Per Socket are correctly set in the BIOS.
BIOS Configuration Option
Recommended Value
Description
Die Interleaving
Disable
Die interleaving (the default value is Disable).
Choose Advanced > Memory Config > Die Interleaving.
One NUMA Per Socket
Disable
There is one NUMA node for each socket. The default value is Disable.
Choose Advanced > Memory Config > Die Interleaving.
Check the kernel option CONFIG_SHIFT_NODES. The value of the option must be at least 2 for the 2-socket environment and 3 for the 4-socket environment. If the number is incorrect, recompile the kernel.
1cat /boot/config-$(uname -r) | grep CONFIG_NODES_SHIFT

- Check the Hi1822 NIC driver.
Run the top command when the CPU load is light to check whether the software interrupt rate is abnormally high. If the following information is displayed, go to step 5 to upgrade the Hi1822 NIC driver. If the following information is not displayed, skip step 5.

Generally, run the ethtool -i xxx command to check the NIC information. If the driver version in the command output is empty, you need to upgrade the driver. xxx indicates the name of the Hi1822 NIC in use.

- Upgrade the NIC.
Upgrade the driver.
Obtain the latest driver package from the following website and upgrade the driver by referring to the guide:
https://support.huawei.com/enterprise/en/intelligent-accelerator-components/in500-solution-pid-23507369/software
For details about the upgrade, see Huawei IN200 NIC User Guide.
If the operating system kernel needs to be modified, the compiled driver is not applicable. Apply for source code at http://support.huawei.com for recompilation. For details, see version "IN500 solution 5.1.0.SPC102" of the driver.