210
This feature enables the device to detect deadloops. If a thread occupies the CPU for a specific
interval, the device considers that a deadloop has occurred and takes the specified deadloop
protection action.
(In standalone mode.) To configure kernel thread deadloop detection:
Step
Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enable kernel thread
deadloop detection.
monitor kernel deadloop enable
[
slot
slot-number
[
cpu
cpu-number
[
core
core-number
&<1-64>
] ] ]
By default, kernel thread
deadloop detection is
enabled.
3.
(Optional.) Set the
interval for identifying a
kernel thread deadloop.
monitor kernel deadloop time time
[
slot
slot-number
[
cpu
cpu-number
] ]
The default is 45 seconds.
IMPORTANT:
The
undo monitor kernel
deadloop time
command
sets the interval to 20
seconds.
4.
(Optional.) Disable kernel
thread deadloop
detection for a kernel
thread.
monitor kernel deadloop
exclude-thread tid
[
slot
slot-number
[
cpu
cpu-number
] ]
After enabled, kernel thread
deadloop detection monitors
all kernel threads by default.
5.
(Optional.) Specify the
action to be taken in
response to a kernel
thread deadloop.
monitor kernel deadloop action
{
reboot
|
record-only
} [
slot
slot-number
[
cpu
cpu-number
] ]
The default action is to log
the kernel thread deadloop
event.
(In IRF mode.) To configure kernel thread deadloop detection:
Step
Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enable kernel thread
deadloop detection.
monitor kernel deadloop enable
[
chassis chassis-number
slot
slot-number
[
cpu
cpu-number
[
core
core-number
&<1-64>
] ] ]
By default, kernel thread
deadloop detection is
enabled.
3.
(Optional.) Set the
interval for identifying a
kernel thread deadloop.
monitor kernel deadloop time time
[
chassis chassis-number
slot
slot-number
[
cpu
cpu-number
] ]
The default is 45 seconds.
IMPORTANT:
The
undo monitor kernel
deadloop time
command
sets the interval to 20
seconds.
4.
(Optional.) Disable kernel
thread deadloop
detection for a kernel
thread.
monitor kernel deadloop
exclude-thread tid
[
chassis
chassis-number
slot
slot-number
[
cpu
cpu-number
] ]
After enabled, kernel thread
deadloop detection monitors
all kernel threads by default.
5.
(Optional.) Specify the
action to be taken in
response to a kernel
thread deadloop.
monitor kernel deadloop action
{
reboot
|
record-only
} [
chassis
chassis-number
slot
slot-number
[
cpu
cpu-number
] ]
The default action is to log
the kernel thread deadloop
event.