HP 6125XLG R2306-HP 6125XLG Blade Switch Network Management and Monitoring Con - Page 109

Displaying and maintaining kernel threads

Page 109 highlights

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 monitor kernel starvation exclude-thread for a kernel 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 Display kernel thread deadloop information. Display kernel thread deadloop detection configuration. Display kernel thread exception information. Display kernel thread reboot information. Display kernel thread starvation information. Display kernel thread starvation detection configuration. Clear kernel thread deadloop information. Clear kernel thread exception information. Clear kernel thread reboot information. Clear kernel thread starvation information. Command display kernel deadloop show-number [ offset ] [ verbose ] [ slot slot-number ] display kernel deadloop configuration [ slot slot-number ] display kernel exception show-number [ offset ] [ verbose ] [ slot slot-number ] display kernel reboot show-number [ offset ] [ verbose ] [ slot slot-number ] display kernel starvation show-number [ offset ] [ verbose ] [ slot slot-number ] display kernel starvation configuration [ slot slot-number ] reset kernel deadloop [ slot slot-number ] reset kernel exception [ slot slot-number ] reset kernel reboot [ slot slot-number ] reset kernel starvation [ slot slot-number ] 103

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148

103
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
]
Display kernel thread reboot information.
display kernel reboot
show-number
[
offset
] [
verbose
] [
slot
slot-number
]
Display kernel thread starvation information.
display kernel starvation
show-number
[
offset
] [
verbose
]
[
slot
slot-number
]
Display kernel thread starvation detection
configuration.
display kernel starvation configuration
[
slot
slot-number
]
Clear kernel thread deadloop information.
reset kernel deadloop
[
slot
slot-number
]
Clear kernel thread exception information.
reset kernel exception
[
slot
slot-number
]
Clear kernel thread reboot information.
reset kernel reboot
[
slot
slot-number
]
Clear kernel thread starvation information.
reset kernel starvation
[
slot
slot-number
]