Examples
# Enable kernel thread starvation detection.
<Sysname> system-view
[Sysname] monitor kernel starvation enable
Related commands
display kernel starvation configuration
•
display kernel starvation
•
monitor kernel starvation time
•
monitor kernel starvation exclude-thread
•
monitor kernel starvation exclude-thread
Use monitor kernel starvation exclude-thread to disable kernel thread starvation detection for a kernel
thread.
Use undo monitor kernel starvation exclude-thread to enable kernel thread starvation detection for a
kernel thread.
Syntax
In standalone mode:
monitor kernel starvation exclude-thread tid [ slot slot-number ]
undo monitor kernel starvation exclude-thread [ tid ] [ slot slot-number ]
In IRF mode:
monitor kernel starvation exclude-thread tid [ chassis chassis-number slot slot-number ]
undo monitor kernel starvation exclude-thread [ tid ] [ chassis chassis-number slot slot-number ]
Default
Kernel thread starvation detection, if enabled, monitors all kernel threads.
Views
System view
Predefined user roles
network-admin
Parameters
tid: Specifies a kernel thread by its ID, in the range of 1 to 2147483647. If no kernel thread is specified
for the undo command, the default is restored.
slot slot-number: Specifies an MPU by its slot number. If you do not specify this option, the active MPU is
specified. (In standalone mode.)
chassis chassis-number slot slot-number: Specifies an MPU on an IRF member device. If you do not
specify this option, the global active MPU is specified. (In IRF mode.)
Usage guidelines
You can disable kernel thread starvation detection for up to 128 kernel threads by executing the
command.
290