display utask-info
Parameters
Parameter | Description | Value |
---|---|---|
utask-id | Displays running information about a specified task. | The value is an integer and the value range depends on the module quantity. |
slice-time | Displays statistics on running time of a specified task. | - |
verbose | Displays details about running of a specified task. | - |
slotslot-id | Displays running information about the operation of a specified slot. | - |
Usage Guidelines
Displays user tasks in the system and types of external events that can be processed by user tasks.
Displays records about time consumption of user tasks for locating the fault cause when the CPU usage is high and the time consumption bottleneck of the system needs to be determined.
Displays records about time consumption of user tasks for locating the fault cause when a specified module does not respond to external events in time and whether the specified module is affected by other events needs to be determined.
Example
# Display details about the running of user task 1.
<HUAWEI> system-view
[HUAWEI] diagnose
[HUAWEI-diagnose] display utask-info 1 verbose
-------------------------------------------------------------------------------
UTaskID TaskID UTaskName PriorityDepth State
-------------------------------------------------------------------------------
1 157 RM 7 0x1
-------------------------------------------------------------------------------
Taskname: ROUTRoute task, idlequelen 11, runquelen 0
Allowed slice time : 100(ms)
Total running time : 1313770(ms)
Max running time : 100(ms)
Scheduled count : 35045237
Occurred timeout count : 1
Occurred callback : 1feca450
Consume time : 0(ms)
-------------------------------------------------------------------------------
Allowed slice time : 100(ms)
Total running time : 116930(ms)
Max running time : 30(ms)
Max delayed time : 289(ms)
Max delayed at : 2013-08-29 11:52
Scheduled count : 33679963
Occurred timeout count : 0
Occurred callback : 2b6bc8c
Consume time : 0(ms)
-------------------------------------------------------------------------------
Source info:
-------------------------------------------------------------------------------
SourceName Priority CurrentPrio State QueueMessageNumber MessageDropped
-------------------------------------------------------------------------------
timer 1 1 0x1 0 0
Allowed slice time : 20(ms)
Total running time : 92460(ms)
Max running time : 20(ms)
Scheduled count : 33679936
Occurred timeout count : 1
update count : 0
Occurred callback : 61ed22c
Consume time : 20(ms)
-------------------------------------------------------------------------------
SourceName Priority CurrentPrio State QueueMessageNumber
-------------------------------------------------------------------------------
cfg_msg 3 3 0x1 0
Allowed slice time : 5(ms)
Total running time : 20(ms)
Max running time : 10(ms)
Scheduled count : 134
Occurred timeout count : 2
update count : 0
-------------------------------------------------------------------------------
SourceName Priority CurrentPrio State QueueMessageNumber
-------------------------------------------------------------------------------
cfg_event 3 3 0x1 0
Allowed slice time : 5(ms)
Total running time : 0(ms)
Max running time : 0(ms)
Scheduled count : 0
Occurred timeout count : 0
update count : 0
-------------------------------------------------------------------------------
SourceName Priority CurrentPrio State QueueMessageNumber
-------------------------------------------------------------------------------
job 5 5 0x1 0
Allowed slice time : 40(ms)
Total running time : 20(ms)
Max running time : 10(ms)
Scheduled count : 104
Occurred timeout count : 0
update count : 0
-------------------------------------------------------------------------------
SourceName Priority CurrentPrio State QueueMessageNumber
-------------------------------------------------------------------------------
other 4 4 0x1 0
Allowed slice time : 30(ms)
Total running time : 430(ms)
Max running time : 30(ms)
Scheduled count : 270
Occurred timeout count : 1
update count : 0
-------------------------------------------------------------------------------
Item | Description |
---|---|
UTaskID | User task ID |
UTaskName | User task name |
TaskID | Task ID |
Taskname | Task name |
PriorityDepth | User task priority |
State | User task status |
IdleQueLen | Length of an idle queue |
RunQueLen | Length of a running queue |
CurrentPrio | Priority of the task |
QueueMessageNumber | Number of messages in a queue |
MessageDropped | Number of discarded messages |
Allowed slice time | Available time slice |
Total running time | Total running time |
Max running time | Maximum running time |
Scheduled count | Number of scheduling times |
Occurred timeout count | Number of timeout times |
Occurred callback | Call stack address |
Last consume time | Running time consumed last time |
Consume time | Time consumed by task running |
update count | Update times of the task |