- Documentation
Elastic Compute Service
Elastic Compute Service
Troubleshooting
Instance status issue
How to modify the kernel argument kernel.unknown_nmi_panic for a Linux instance
Instance status issue
How to modify the kernel argument kernel.unknown_nmi_panic for a Linux instance
How to modify the kernel argument kernel.unknown_nmi_panic for a Linux instance
You can set the kernel parameter kernel.unknown_nmi_panic of a Linux ECS instance system to 0 to resolve the instance restart issue caused by unexpected kernel panic.
The kernel parameter kernel.unknown_nmi_panic controls the kernel's behavior when an unknown non-maskable interrupt is encountered. On most Linux distributions, the default value of this parameter is 0, which means unknown non-maskable interrupts are ignored. If the value of kernel.unknown_nmi_panic is adjusted for any reason, the kernel may trigger a panic upon receiving an unknown non-maskable interrupt, causing the instance to restart.
- kernel.unknown_nmi_panic = 1: The kernel will consider a system error when encountering unknown non-maskable interrupts and will trigger a kernel panic, causing unexpected instance restarts or business interruptions.
- kernel.unknown_nmi_panic = 0: Ignore the issue without further processing, maintaining the current status of the instance to continue running.
Configure the kernel.unknown_nmi_panic argument (permanent)
Configure the kernel.unknown_nmi_panic argument (temporary)
- Execute the following command to check whether the kernel configuration related to the kernel parameter kernel.unknown_nmi_panic exists.
-
- If there is a related kernel configuration, only retain /etc/sysctl.conf file's kernel.unknown_nmi_panic = 0 entry.
tip
If the /etc/sysctl.conf file contains extra kernel configurations, it is recommended to use #to add comments.
- If no such configuration exists, add kernel.unknown_nmi_panic = 0 to the end of the /etc/sysctl.conf file.
- Execute the following command to make the configuration take effect.
tip
- If you do not want to reload the kernel argument configuration file, you can temporarily configure the kernel argument.
- The temporary settings take effect immediately but will become invalid after the instance restarts. The kernel parameter will revert to the value in the configuration file before the temporary settings are applied.
- Run the following command to check if the kernel argument kernel.unknown_nmi_panic exists in the kernel configuration.
-
- Run the following command to change the value of the kernel argument kernel.unknown_nmi_panic to 0.
Last updated: 2026.04.13 16:50:03