333
monitor kernel deadloop enable
Use monitor kernel deadloop enable to enable kernel thread deadloop detection.
Use undo monitor kernel deadloop enable to disable kernel thread deadloop detection.
Syntax
Centralized devices in standalone mode:
monitor kernel deadloop enable
undo monitor kernel deadloop enable
Distributed devices in standalone mode/centralized devices in IRF mode:
monitor kernel deadloop enable [ slot slot-number [ cpu cpu-number ] ]
undo monitor kernel deadloop enable [ slot slot-number [ cpu cpu-number ] ]
Distributed devices in IRF mode:
monitor kernel deadloop enable [ chassis chassis-number slot slot-number [ cpu cpu-number ] ]
undo monitor kernel deadloop enable [ chassis chassis-number slot slot-number [ cpu
cpu-number ] ]
Default
Kernel thread deadloop detection is disabled.
Views
System view
Predefined user roles
network-admin
Parameters
slot slot-number: Specifies a card by its slot number. If you do not specify this option, the active MPU
is specified. (Distributed devices in standalone mode.)
slot slot-number: Specifies an IRF member device by its ID. If you do not specify this option, the
master device is specified. (Centralized devices in IRF mode.)
chassis chassis-number slot slot-number: Specifies a card on an IRF member device. If you do not
specify this option, the global active MPU is specified. (Distributed devices in IRF mode.)
cpu cpu-number: Specifies a CPU by its number. (Centralized devices in IRF mode/distributed
devices in IRF or standalone mode.)
Usage guidelines
Kernel threads share resources in kernel space. If a kernel thread monopolizes the CPU for a long
time, other threads cannot run, resulting in a deadloop.
The command enables the device to detect deadloops. If a thread occupies the CPU regularly, the
device considers that a deadloop has occurred. It outputs a deadloop message and reboots to
remove the deadloop.
Inappropriate use of the command can cause service problems or system breakdown. Make sure
you understand the impact of the command on your network before you use it.
Examples
# Enable kernel thread deadloop detection.
<Sysname> system-view
[Sysname] monitor kernel deadloop enable