
191
Task Command
blocks with a specified size used
by a user process.
offset-size
] [
slot slot-number
[
cpu
cpu-number
] ]
Display memory content starting
from a specified memory block for
a user process.
display
process
memory
heap
job
job-id
address
starting-address
length
memory-length
[
slot
slot-number
[
cpu
cpu-number
] ]
Display context information for
process exceptions.
display
exception context
[
count
value
] [
slot
slot-number
[
cpu
cpu-number
] ]
Display the core file directory.
display exception filepath
[
slot
slot-number
[
cpu
cpu-number
] ]
Enable or disable a process to
generate core files for exceptions
and set the maximum number of
core files (which defaults to 1).
process
core
{
maxcore
value
|
off
} {
job job-id
|
name
process-name
} [
slot
slot-number
[
cpu
cpu-number
] ]
Specify the directory for saving
core files (the default directory is
flash:/ on the master device).
exception filepath directory
Clear context information for
process exceptions.
reset
exception context
[
slot
slot-number
[
cpu
cpu-number
] ]
Monitoring kernel threads
Tasks in this section help you quickly identify thread deadloop and starvation problems and their
causes.
Configuring kernel thread deadloop detection
CAUTION:
Inappropriate configuration of kernel thread deadloop detection can cause service problems or
system breakdown. Make sure you understand the impact of this configuration on your network
before you configure kernel thread deadloop detection.
Kernel threads share resources. If a kernel thread monopolizes the CPU, other threads cannot run,
resulting in a deadloop.
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. It generates a deadloop message and
reboots to remove the deadloop.
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
] ]
By default, this function is
disabled.
3.
(Optional.) Set the
interval for identifying a
kernel thread deadloop.
monitor kernel deadloop time interval
[
slot
slot-number
[
cpu
cpu-number
] ]
The default is 8 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.