Configuring kernel thread starvation detection, Displaying and maintaining kernel threads – H3C Technologies H3C S6300 Series Switches User Manual

Page 205

Advertising
background image

192

Step Command

Remarks

3.

(Optional.) Set the interval
for identifying a kernel

thread deadloop.

monitor kernel deadloop time interval [ slot
slot-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 ]

After enabled, kernel thread
deadloop detection monitors
all kernel threads by default.

Configuring kernel thread starvation detection

CAUTION:

Inappropriate configuration of kernel thread starvation detection can cause service problems or system
breakdown. Make sure you understand the impact of this configuration on your network before you do it.

Starvation occurs when a thread is unable to access shared resources.
Kernel thread starvation detection enables the system to detect and report thread starvation. If a thread

is not executed within a specific interval, the system considers that a starvation has occurred, and

generates a starvation message.
Thread starvation does not impact system operation. A starved thread can automatically run when
certain conditions are met.
To configure kernel thread starvation detection:

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Enable kernel thread
starvation detection.

monitor kernel starvation enable [ slot
slot-number ]

By default, the function is
disabled.

3.

(Optional.) Set the interval

for identifying a kernel
thread starvation.

monitor kernel starvation time interval [ slot
slot-number ]

The default is 120 seconds.

4.

(Optional.) Disable kernel
thread starvation detection

for a kernel thread.

monitor kernel starvation exclude-thread
tid
[ slot slot-number ]

After enabled, kernel thread
starvation detection monitors

all kernel threads by default.

Displaying and maintaining kernel threads

Execute display commands in any view and reset commands in user view.

Task Command

Display kernel thread deadloop information.

display kernel deadloop show-number [ offset ] [ verbose ]
[ slot slot-number ]

Display kernel thread deadloop detection
configuration.

display kernel deadloop configuration [ slot slot-number ]

Display kernel thread exception information.

display kernel exception show-number [ offset ] [ verbose ]
[ slot slot-number ]

Advertising