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

Monitoring kernel threads, Configuring kernel thread deadloop detection

Page 108 highlights

Task Command Display heap memory usage for a user process. display process memory heap job job-id [ verbose ] [ slot slot-number ] Display the addresses of memory blocks with a specified size used by a user process. display process memory heap job job-id size memory-size [ offset offset-size ] [ slot slot-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 ] 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 do it. 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 ] By default, the function is disabled. 3. (Optional.) Set the interval for identifying a kernel thread deadloop. monitor kernel deadloop time interval [ slot slot-number ] The default is 60 seconds. 4. (Optional.) Disable kernel thread deadloop detection monitor kernel deadloop exclude-thread for a kernel 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. 102

  • 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

102
Task
Command
Display heap memory usage for a
user process.
display
process
memory
heap
job
job-id [
verbose
] [
slot
slot-number
]
Display
the addresses of memory
blocks with a specified size used
by a user process.
display process memory heap job
job-id
size
memory-size
[
offset
offset-size
] [
slot
slot-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
]
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 do it.
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
]
By default, the function is
disabled.
3.
(Optional.) Set the interval
for identifying a kernel
thread deadloop.
monitor kernel deadloop time
interval
[
slot
slot-number
]
The default is 60 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.