Configuring the SPE Environment
|
OS |
Version |
Kernel Version |
|---|---|---|
|
openEuler |
openEuler 20.03 LTS |
4.19.90-2003.4.0.0036.oe1.aarch64 |
|
openEuler 22.03 LTS |
5.10.0-60.18.0.50.oe2203.aarch64 |
|
|
openEuler 20.03 LTS SP2 |
4.19.90-2106.3.0.0095.oe1.aarch64 |
|
|
openEuler 22.03 LTS SP1 |
5.10.0-136.12.0.86.oe2203sp1.aarch64 |
|
|
Kylin |
Kylin V10 (SP3)/(Lance) |
4.19.90-52.15.v2207.ky10.aarch64 |
|
Kylin 3.4-5 |
4.19.90-2112.8.0.0131.kb8.ky3.aarch64 |
|
|
UOS |
UOS 1020e |
4.19.90-2106.3.0.0095.up2.uel20.aarch64 |
Prerequisites
If the OS is not connected to the Internet, you need to configure the OS yum, APT, or Zypper source.
Configuring the SPE Environment for openEuler
Kunpeng servers support the SPE function in BIOS since V159.
- Check the status of MISC Config--> SPE in the BIOS. If the status is Disabled, change it to Enabled.

- Use an SSH tool to remotely log in to the Linux CLI as the root user.
- Configure system boot parameters.
- Run the following command to open the configuration file:
1vim /etc/grub2-efi.cfg - Locate the boot option corresponding to the kernel version and add kpti=off at the end of the option.
1linux /vmlinuz-4.19.90-2003.4.0.0036.oe1.aarch64 root=/dev/mapper/openeuler-root ro rd.lvm.lv=openeuler/root rd.lvm.lv=openeuler/swap video=VGA-1:640x480-32@60me rhgb quiet smmu.bypassdev=0x1000:0x17 smmu.bypassdev=0x1000:0x15 crashkernel=1024M,high video=efifb:off video=VGA-1:640x480-32@60me kpti=off
- Press ESC, type :wq!, and press Enter to save the file and exit.
- Run the reboot command to reboot the server.
- Run the following command to open the configuration file:
- After installing the System Profiler, run the following command to check whether the SPE function is enabled:
1perf list | grep arm_spe
If the following information is displayed, the SPE function is enabled.
1arm_spe_0// [Kernel PMU event]
Configuring the SPE Environment for CentOS 7.6
- Kunpeng servers support the SPE function in BIOS since V159.
- To perform NUMA refined analysis, configure the SPE environment to support SPE collection.
- Check the status of MISC Config--> SPE in the BIOS. If the status is Disabled, change it to Enabled.

- Use an SSH tool to remotely log in to the Linux CLI as the root user.
- Configure system boot parameters.
- Run the following command to open the configuration file:
1vim /boot/efi/EFI/centos/grub.cfg - Locate the boot option corresponding to the kernel version and add kpti=off at the end of the option.
1linux /vmlinuz-4.14.0-115.el7a.0.1.aarch64 root=/dev/mapper/centos-root ro crashkernel=auto rd.lvm.lv=centos/root rd.lvm.lv=centos/swap rhgb quiet LANG=en_US.UTF-8 kpti=off
- Press ESC, type :wq!, and press Enter to save the file and exit.
- Run the reboot command to reboot the server.
- Run the following command to obtain system boot parameters and check whether kpti=off is successfully added:
1cat /proc/cmdline
- Run the following command to open the configuration file:
- After installing the System Profiler, run the following command to check whether the SPE function is enabled:
1perf list | grep arm_spe
If the following information is displayed, the SPE function is enabled.
1arm_spe_0// [Kernel PMU event]
Parent topic: Common Operations