display utask-info

Latest reply: Nov 21, 2018 05:27:51 745 1 0 0

display utask-info

Function

The display utask-info command displays running information about user tasks.

Format

display utask-info [ utask-id [ slice-time | verbose ] ] [ slot slot-id ]

Parameters

ParameterDescriptionValue
utask-idDisplays running information about a specified task.The value is an integer and the value range depends on the module quantity.
slice-timeDisplays statistics on running time of a specified task.-
verboseDisplays details about running of a specified task.-
slotslot-idDisplays running information about the operation of a specified slot.-

Views

Diagnostic view

Default Level

3: Management level

Usage Guidelines

The display utask-info command has the following functions:
  • 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 19: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                                                               
                                                                                
------------------------------------------------------------------------------- 
Table 1-18  Description of the display utask-info command output

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

  • x
  • convention:

Mysterious.color MVE Created Nov 21, 2018 05:27:51 Helpful(0) Helpful(0)

very nice
thanks
  • x
  • convention:

find what you love and let it kill you.

Reply

Reply
You need to log in to reply to the post Login | Register

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " Privacy."
If the attachment button is not available, update the Adobe Flash Player to the latest version!

Login and enjoy all the member benefits

Login
Fast reply Scroll to top