14-Network Management and Monitoring Command Reference

HomeSupportRoutersCR16000-F SeriesReference GuidesCommand ReferencesH3C CR16000-F Routers Command References-Release795x-6W10014-Network Management and Monitoring Command Reference
11-Process monitoring and maintenance commands
Title Size Download
11-Process monitoring and maintenance commands 211.43 KB

Process monitoring and maintenance commands

The display memory, display process, display process cpu, monitor process and monitor thread commands display information about both user processes and kernel threads. In these commands, the term "process" refers to both user processes and kernel threads.

display exception context

Use display exception context to display context information for process exceptions.

Syntax

In standalone mode:

display exception context [ count value ] [ slot slot-number [ cpu cpu-number ] ]

In IRF mode:

display exception context [ count value ] [ chassis chassis-number slot slot-number [ cpu cpu-number ] ]

Views

Any view

Predefined user roles

network-admin

Parameters

count value: Specifies the number of context information entries, in the range of 1 to 20. The default value is 1.

slot slot-number: Specifies an MPU by its slot number. If you do not specify this option, the command displays context information for process exceptions on the active MPU. (In standalone mode.)

chassis chassis-number slot slot-number: Specifies an MPU on an IRF member device. If you do not specify this option, the command displays context information for process exceptions on the global active MPU. (In IRF mode.)

cpu cpu-number: Specifies a CPU by its number.

Usage guidelines

The system generates a context information entry for each process exception. A context information entry includes the process ID, the crash time, the core dump file directory, stack information, and register information.

Examples

# Display the exception context information on the device.

<Sysname> display exception context

Index 1 of 1

------------------------------

Crashed PID: 442 (dhcpd)

Crash signal: SIGSEGV

Crash time: Tue Aug  1 16:22:20 2017

Core file path:

flash:/core/node0_dhcpd_442_11_20170801-162220_1501604540.core

#0  0x00000001200a0c68

#1  0x00000001200a0c38

Backtrace stopped.

                          Registers' content

      zero:0x0000000000000000        at:0xffffffff802050c4

        v0:0x000000012014af08        v1:0x0000000000000000

        a0:0x000000fffff16bc8        a1:0x0000000000000020

        a2:0x0000000000000006        a3:0x0000000000000122

        a4:0x000000fffff16a70        a5:0x0000000000000000

        a6:0x000000fffff16bc4        a7:0x000000fffff16bc6

        t0:0x0000000000000000        t1:0x0000000000000000

        t2:0x0000000000000000        t3:0x0000000000000122

        s0:0x000000fffff16bc0        s1:0x000000fffff16bc4

        s2:0x0000000000000001        s3:0x000000fffff16d38

        s4:0x00000000000000c0        s5:0x000000fffff16c92

        s6:0x000000fffff16ca0        s7:0x00000000000000c0

        t8:0x0000000000000000        t9:0x00000001200a0668

        k0:0x0000000000000000        k1:0x0000000000000000

        gp:0x0000000120149940        sp:0x000000fffff16a90

        s8:0x0000000000000040        ra:0x00000001200a0c38

        sr:0x000000004400fff3        lo:0x0000000000000000

        hi:0x0000000000000000       bad:0x0000000000000010

     cause:0x0000000000800008        pc:0x00000001200a0c68

Table 1 Command output

Filed

Description

Crashed PID

ID of the crashed process.

Crash signal

Signals that led to the crash:

·         SIGABRT—Abort.

·         SIGBUS—Bus error.

·         SIGFPE—Erroneous arithmetic operation.

·         SIGILL—Illegal hardware instructions.

·         SIGQUIT—Quit signal sent by the controlling terminal.

·         SIGSEGV—Invalid memory access.

·         SIGSYS—Invalid system call.

·         SIGTRAP—Trap message.

·         SIGXCPU—CPU usage limit exceeded.

·         SIGXFSZ—File size limit exceeded.

·         SIGUNKNOW—Unknown reason.

Crash time

Time when the crash occurred.

Core file path

Directory where the core dump file is saved.

Backtrace stopped

All stack information has been displayed.

 

Related commands

reset exception context

display exception filepath

Use display exception filepath to display the core dump file directory.

Syntax

In standalone mode:

display exception filepath [ slot slot-number [ cpu cpu-number ] ]

In IRF mode:

display exception filepath [ chassis chassis-number slot slot-number [ cpu cpu-number ] ]

Views

Any view

Predefined user roles

network-admin

Parameters

slot slot-number: Specifies an MPU by its slot number. If you do not specify this option, the command displays the core dump file directory on the active MPU. (In standalone mode.)

chassis chassis-number slot slot-number: Specifies an MPU on an IRF member device. If you do not specify this option, the command displays the core dump file directory on the global active MPU. (In IRF mode.)

cpu cpu-number: Specifies a CPU by its number.

Examples

# (In standalone mode.) Display the core dump file directory on a slot.

<Sysname> display exception filepath slot 3

The exception filepath on slot 3 is flash:.

display kernel deadloop

Use display kernel deadloop to display kernel thread deadloop information.

Syntax

In standalone mode:

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

In IRF mode:

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

Views

Any view

Predefined user roles

network-admin

Parameters

show-number: Specifies the number of deadloops to display, in the range of 1 to 60.

offset: Specifies the offset between the starting deadloop and the most recent deadloop, in the range of 0 to 59. The default value is 0.

verbose: Displays detailed information. If you do not specify this keyword, the command displays brief information.

slot slot-number: Specifies a card by its slot number. If you do not specify this option, the command displays kernel thread deadloop information for the active MPU. (In standalone mode.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device. If you do not specify this option, the command displays kernel thread deadloop information for the global active MPU. (In IRF mode.)

cpu cpu-number: Specifies a CPU by its number.

Examples

# (In standalone mode.) Display brief information about the most recent kernel thread deadloop.

<Sysname> display kernel deadloop 1

----------------- Deadloop record 1 -----------------

Description          : BUG: soft lockup - CPU#0 stuck for 61! [comsh: 16306]

Recorded at          : 2013-05-01  11:16:00.823018

Occurred at          : 2013-05-01  11:16:00.823018

Instruction address  : 0x4004158c

Thread               : comsh (TID: 16306)

Context              : thread context

Slot                 : 1

Cpu                  : 0

VCPU ID              : 0

Kernel module info   : module name (mrpnc) module address (0xe332a000)

# (In standalone mode.) Display detailed information about the most recent kernel thread deadloop.

<Sysname> display kernel deadloop 1 verbose

----------------- Deadloop record 1 -----------------

Description          : BUG: soft lockup - CPU#0 stuck for 61! [comsh: 16306]

Recorded at          : 2013-05-01  11:16:00.823018

Occurred at          : 2013-05-01  11:16:00.823018

Instruction address  : 0x4004158c

Thread               : comsh (TID: 16306)

Context              : thread context

Slot                 : 1

Cpu                  : 0

VCPU ID              : 0

Kernel module info   : module name (mrpnc) module address (0xe332a000)

 

Last 5 thread switches : migration/0 (11:16:00.823018)-->

                         swapper (11:16:00.833018)-->

                         kthreadd (11:16:00.833518)-->

                         swapper (11:16:00.833550)-->

                         disk (11:16:00.833560)

 

Register content:

Reg:       r0, Val = 0x00000000 ; Reg:       r1, Val = 0xe2be5ea0 ;

Reg:       r2, Val = 0x00000000 ; Reg:       r3, Val = 0x77777777 ;

Reg:       r4, Val = 0x00000000 ; Reg:       r5, Val = 0x00001492 ;

Reg:       r6, Val = 0x00000000 ; Reg:       r7, Val = 0x0000ffff ;

Reg:       r8, Val = 0x77777777 ; Reg:       r9, Val = 0x00000000 ;

Reg:      r10, Val = 0x00000001 ; Reg:      r11, Val = 0x0000002c ;

Reg:      r12, Val = 0x057d9484 ; Reg:      r13, Val = 0x00000000 ;

Reg:      r14, Val = 0x00000000 ; Reg:      r15, Val = 0x02000000 ;

Reg:      r16, Val = 0xe2be5f00 ; Reg:      r17, Val = 0x00000000 ;

Reg:      r18, Val = 0x00000000 ; Reg:      r19, Val = 0x00000000 ;

Reg:      r20, Val = 0x024c10f8 ; Reg:      r21, Val = 0x057d9244 ;

Reg:      r22, Val = 0x00002000 ; Reg:      r23, Val = 0x0000002c ;

Reg:      r24, Val = 0x00000002 ; Reg:      r25, Val = 0x24000024 ;

Reg:      r26, Val = 0x00000000 ; Reg:      r27, Val = 0x057d9484 ;

Reg:      r28, Val = 0x0000002c ; Reg:      r29, Val = 0x00000000 ;

Reg:      r30, Val = 0x0000002c ; Reg:      r31, Val = 0x00000000 ;

Reg:       cr, Val = 0x84000028 ; Reg:      nip, Val = 0x057d9550 ;

Reg:      xer, Val = 0x00000000 ; Reg:       lr, Val = 0x0186eff0 ;

Reg:      ctr, Val = 0x682f7344 ; Reg:      msr, Val = 0x00784b5c ;

Reg:     trap, Val = 0x0000b030 ; Reg:      dar, Val = 0x77777777 ;

Reg:    dsisr, Val = 0x40000000 ; Reg:   result, Val = 0x00020300 ;

 

Dump stack (total 1024 bytes, 16 bytes/line):

0xe2be5ea0: 02 be 5e c0 24 00 00 24 00 00 00 00 05 7d 94 84

0xe2be5eb0: 00 00 00 04 00 00 00 00 00 00 00 28 05 8d 34 c4

0xe2be5ec0: 02 be 60 a0 01 86 ef f0 00 00 00 00 00 00 00 00

0xe2be5ed0: 02 04 05 b4 00 00 00 00 00 00 00 00 00 00 00 00

0xe2be5ee0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0xe2be5ef0: 95 47 73 35 00 00 00 00 00 00 00 00 00 00 00 00

0xe2be5f00: a0 e1 64 21 00 00 00 00 00 00 00 00 00 00 00 00

0xe2be5f10: 00 00 00 00 00 00 00 00 00 00 00 00 01 e9 00 00

0xe2be5f20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0xe2be5f30: 00 00 00 00 00 00 00 00 02 be 66 c0 02 be 66 d0

0xe2be5f40: 02 be 61 e0 00 00 00 02 00 00 00 00 02 44 b3 a4

0xe2be5f50: 02 be 5f 90 00 00 00 08 02 be 5f e0 00 00 00 08

0xe2be5f60: 02 be 5f 80 00 ac 1b 14 00 00 00 00 00 00 00 00

0xe2be5f70: 05 b4 5f 90 02 be 5f e0 00 00 00 30 02 be 5f e0

0xe2be5f80: 02 be 5f c0 00 ac 1b f4 00 00 00 00 02 45 00 00

0xe2be5f90: 00 03 00 00 00 00 00 00 02 be 5f e0 00 00 00 30

0xe2be5fa0: 02 be 5f c0 00 ac 1b 14 61 f1 2e ae 02 45 00 00

0xe2be5fb0: 02 44 b3 74 02 be 5f d0 00 00 00 30 02 be 5f e0

0xe2be5fc0: 02 be 60 60 01 74 ff f8 00 00 00 00 00 00 08 00

0xe2be5fd0: 02 be 5f f0 00 e8 93 7e 02 be 5f f8 02 be 5f fc

0xe2be5fe0: 00 00 00 00 00 00 00 00 00 00 00 00 02 be 60 18

0xe2be5ff0: 02 be 60 10 00 e9 65 98 00 00 00 58 00 00 2a 4f

0xe2be6000: 02 be 60 10 00 00 00 00 00 00 00 00 02 be 60 68

0xe2be6010: 02 be 60 40 00 e8 c6 a0 00 00 11 17 00 00 00 00

0xe2be6020: 02 be 60 40 00 00 00 00 00 00 00 00 02 be 60 98

0xe2be6030: 02 27 00 00 00 00 00 00 00 00 00 00 02 be 60 68

0xe2be6040: 02 be 60 60 00 00 00 01 00 00 b0 30 02 be 60 98

0xe2be6050: 00 00 00 04 02 21 00 00 00 00 00 00 01 e9 00 00

0xe2be6060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0xe2be6070: 00 00 00 00 00 00 00 00 02 be 66 c0 02 be 66 d0

0xe2be6080: 02 be 61 e0 00 00 00 02 00 00 00 00 02 be 61 70

0xe2be6090: 00 00 00 00 02 21 00 00 05 8d 34 c4 05 7d 92 44

 

Call trace:

Function Address = 0x8012a4b4

Function Address = 0x8017989c

Function Address = 0x80179b30

Function Address = 0x80127438

Function Address = 0x8012d734

Function Address = 0x80100a00

Function Address = 0xe0071004

Function Address = 0x8016ce0c

Function Address = 0x801223a0

  

Instruction dump:

41a2fe9c 812300ec 800200ec 7f890000 409efe8c 80010014 540b07b9 40a2fe80

4bfffe6c 80780290 7f64db78 4804ea35 <807f002c> 38800000 38a00080 3863000c

Table 2 Command output

Field

Description

Description

Description for the kernel thread deadloop, including the CPU number, thread running time, thread name, and thread number.

Recorded at

Time when the kernel thread deadloop was recorded, with microsecond precision.

Occurred at

Time when the kernel thread deadloop occurred, with microsecond precision.

Instruction address

Instruction address for the kernel thread deadloop.

Thread

Name and number of the kernel thread deadloop.

Context

Context for the kernel thread deadloop.

Cpu

Number of the CPU where the kernel thread ran.

VCPU ID

Number of the CPU core where the kernel thread ran.

Kernel module info

Information about kernel modules that had been loaded when the kernel thread deadloop was detected, including kernel module name and memory address.

Last 5 thread switches

Last five kernel thread switches on the CPU before the kernel thread deadloop was detected, including kernel thread name and kernel thread switching time with microsecond precision.

Register content

Register information:

·         Reg—Name of a register.

·         Val—Value saved in a register.

Dump stack

Stack information.

Call trace

Function call stack information, which shows the instruction address of a called function at each level.

Instruction dump

Instruction code when the kernel thread deadloop was detected. ffffffff indicates an illegitimate instruction code.

No information to display

No kernel thread deadloop information.

 

Related commands

reset kernel deadloop

display kernel deadloop configuration

Use display kernel deadloop configuration to display kernel thread deadloop detection configuration.

Syntax

In standalone mode:

display kernel deadloop configuration [ slot slot-number [ cpu cpu-number ] ]

In IRF mode:

display kernel deadloop configuration [ chassis chassis-number slot slot-number [ cpu cpu-number ] ]

Views

Any view

Predefined user roles

network-admin

Parameters

slot slot-number: Specifies a card by its slot number. If you do not specify this option, the command displays kernel thread deadloop detection configuration for the active MPU. (In standalone mode.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device. If you do not specify this option, the command displays kernel thread deadloop detection configuration for the global active MPU. (In IRF mode.)

cpu cpu-number: Specifies a CPU by its number.

Examples

# Display kernel thread deadloop detection configuration.

<Sysname> display kernel deadloop configuration

Thread dead loop detection: Enabled

Dead loop timer (in seconds): 60

Dead loop core list: 0

Dead loop action: Reboot

Threads excluded from monitoring: 1

  TID:     15   Name: co0   

Table 3 Command output

Field

Description

Dead loop timer (in seconds): n

Time interval (in seconds) to identify a kernel thread deadloop. A kernel thread deadloop occurs if a kernel thread runs more than n seconds.

Dead loop core list

CPU cores for which kernel thread deadloop detection is performed.

Dead loop action

Action to be taken in response to a kernel thread deadloop:

·         RebootLogs the event and reboots the hardware.

·         Record-onlyLogs the event.

Threads excluded from monitoring

Kernel threads excluded from kernel thread deadloop detection. This field appears only if the monitor kernel deadloop exclude-thread command is configured.

Name

Kernel thread name.

TID

Kernel thread number.

No thread is excluded from monitoring

All kernel threads are monitored by kernel thread deadloop detection.

 

display kernel exception

Use display kernel exception to display kernel thread exception information.

Syntax

In standalone mode:

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

In IRF mode:

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

Views

Any view

Predefined user roles

network-admin

Parameters

show-number: Specifies the number of kernel exceptions to display, in the range of 1 to 60.

offset: Specifies the offset between the starting exception and the most recent exception, in the range of 0 to 59. The default value is 0.

verbose: Displays detailed information. If you do not specify this keyword, the command displays brief information.

slot slot-number: Specifies an MPU by its slot number. If you do not specify this option, the command displays kernel thread exception information for the active MPU. (In standalone mode.)

chassis chassis-number slot slot-number: Specifies an MPU on an IRF member device. If you do not specify this option, the command displays kernel thread exception information for the global active MPU. (In IRF mode.)

cpu cpu-number: Specifies a CPU by its number.

Usage guidelines

If an exception occurs to a running kernel thread, the system automatically records the exception information.

Examples

# (In standalone mode.) Display brief information about the most recent kernel thread exception.

<Sysname> display kernel exception 1

----------------- Exception record 1 -----------------

Description          : Oops[#0]

Recorded at          : 2013-05-01  11:16:00.823018

Occurred at          : 2013-05-01  11:16:00.823018

Instruction address  : 0x4004158c

Thread               : comsh (TID: 16306)

Context              : thread context

Slot                 : 1

Cpu                  : 0

VCPU ID              : 0

Kernel module info   : module name (mrpnc) module address (0xe332a000)

                       module name (disk) module address (0xe00bd000)

# (In standalone mode.) Display detailed information about the most recent kernel thread exception.

<Sysname> display kernel exception 1 verbose

----------------- Exception record 1 -----------------

Description          : Oops[#0]

Recorded at          : 2013-05-01  11:16:00.823018

Occurred at          : 2013-05-01  11:16:00.823018

Instruction address  : 0x4004158c

Thread               : comsh (TID: 16306)

Context              : thread context

Slot                 : 1

Cpu                  : 0

VCPU ID              : 0

Kernel module info   : module name (mrpnc) module address (0xe332a000)

                       module name (12500) module address (0xe00bd000)

 

Last 5 thread switches : migration/0 (11:16:00.823018)-->

                         swapper (11:16:00.833018)-->

                         kthreadd (11:16:00.833518)-->

                         swapper (11:16:00.833550)-->

                         disk (11:16:00.833560)

 

Register content:

Reg:       r0, Val = 0x00000000 ; Reg:       r1, Val = 0xe2be5ea0 ;

Reg:       r2, Val = 0x00000000 ; Reg:       r3, Val = 0x77777777 ;

Reg:       r4, Val = 0x00000000 ; Reg:       r5, Val = 0x00001492 ;

Reg:       r6, Val = 0x00000000 ; Reg:       r7, Val = 0x0000ffff ;

Reg:       r8, Val = 0x77777777 ; Reg:       r9, Val = 0x00000000 ;

Reg:      r10, Val = 0x00000001 ; Reg:      r11, Val = 0x0000002c ;

Reg:      r12, Val = 0x057d9484 ; Reg:      r13, Val = 0x00000000 ;

Reg:      r14, Val = 0x00000000 ; Reg:      r15, Val = 0x02000000 ;

Reg:      r16, Val = 0xe2be5f00 ; Reg:      r17, Val = 0x00000000 ;

Reg:      r18, Val = 0x00000000 ; Reg:      r19, Val = 0x00000000 ;

Reg:      r20, Val = 0x024c10f8 ; Reg:      r21, Val = 0x057d9244 ;

Reg:      r22, Val = 0x00002000 ; Reg:      r23, Val = 0x0000002c ;

Reg:      r24, Val = 0x00000002 ; Reg:      r25, Val = 0x24000024 ;

Reg:      r26, Val = 0x00000000 ; Reg:      r27, Val = 0x057d9484 ;

Reg:      r28, Val = 0x0000002c ; Reg:      r29, Val = 0x00000000 ;

Reg:      r30, Val = 0x0000002c ; Reg:      r31, Val = 0x00000000 ;

Reg:       cr, Val = 0x84000028 ; Reg:      nip, Val = 0x057d9550 ;

Reg:      xer, Val = 0x00000000 ; Reg:       lr, Val = 0x0186eff0 ;

Reg:      ctr, Val = 0x682f7344 ; Reg:      msr, Val = 0x00784b5c ;

Reg:     trap, Val = 0x0000b030 ; Reg:      dar, Val = 0x77777777 ;

Reg:    dsisr, Val = 0x40000000 ; Reg:   result, Val = 0x00020300 ;

 

Dump stack (total 1024 bytes, 16 bytes/line):

0xe2be5ea0: 02 be 5e c0 24 00 00 24 00 00 00 00 05 7d 94 84

0xe2be5eb0: 00 00 00 04 00 00 00 00 00 00 00 28 05 8d 34 c4

0xe2be5ec0: 02 be 60 a0 01 86 ef f0 00 00 00 00 00 00 00 00

0xe2be5ed0: 02 04 05 b4 00 00 00 00 00 00 00 00 00 00 00 00

0xe2be5ee0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0xe2be5ef0: 95 47 73 35 00 00 00 00 00 00 00 00 00 00 00 00

0xe2be5f00: a0 e1 64 21 00 00 00 00 00 00 00 00 00 00 00 00

0xe2be5f10: 00 00 00 00 00 00 00 00 00 00 00 00 01 e9 00 00

0xe2be5f20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0xe2be5f30: 00 00 00 00 00 00 00 00 02 be 66 c0 02 be 66 d0

0xe2be5f40: 02 be 61 e0 00 00 00 02 00 00 00 00 02 44 b3 a4

0xe2be5f50: 02 be 5f 90 00 00 00 08 02 be 5f e0 00 00 00 08

0xe2be5f60: 02 be 5f 80 00 ac 1b 14 00 00 00 00 00 00 00 00

0xe2be5f70: 05 b4 5f 90 02 be 5f e0 00 00 00 30 02 be 5f e0

0xe2be5f80: 02 be 5f c0 00 ac 1b f4 00 00 00 00 02 45 00 00

0xe2be5f90: 00 03 00 00 00 00 00 00 02 be 5f e0 00 00 00 30

0xe2be5fa0: 02 be 5f c0 00 ac 1b 14 61 f1 2e ae 02 45 00 00

0xe2be5fb0: 02 44 b3 74 02 be 5f d0 00 00 00 30 02 be 5f e0

0xe2be5fc0: 02 be 60 60 01 74 ff f8 00 00 00 00 00 00 08 00

0xe2be5fd0: 02 be 5f f0 00 e8 93 7e 02 be 5f f8 02 be 5f fc

0xe2be5fe0: 00 00 00 00 00 00 00 00 00 00 00 00 02 be 60 18

0xe2be5ff0: 02 be 60 10 00 e9 65 98 00 00 00 58 00 00 2a 4f

0xe2be6000: 02 be 60 10 00 00 00 00 00 00 00 00 02 be 60 68

0xe2be6010: 02 be 60 40 00 e8 c6 a0 00 00 11 17 00 00 00 00

0xe2be6020: 02 be 60 40 00 00 00 00 00 00 00 00 02 be 60 98

0xe2be6030: 02 27 00 00 00 00 00 00 00 00 00 00 02 be 60 68

0xe2be6040: 02 be 60 60 00 00 00 01 00 00 b0 30 02 be 60 98

0xe2be6050: 00 00 00 04 02 21 00 00 00 00 00 00 01 e9 00 00

0xe2be6060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0xe2be6070: 00 00 00 00 00 00 00 00 02 be 66 c0 02 be 66 d0

0xe2be6080: 02 be 61 e0 00 00 00 02 00 00 00 00 02 be 61 70

0xe2be6090: 00 00 00 00 02 21 00 00 05 8d 34 c4 05 7d 92 44

 

Call trace:

Function Address = 0x8012a4b4

Function Address = 0x8017989c

Function Address = 0x80179b30

Function Address = 0x80127438

Function Address = 0x8012d734

Function Address = 0x80100a00

Function Address = 0xe0071004

Function Address = 0x8016ce0c

Function Address = 0x801223a0

  

Instruction dump:

41a2fe9c 812300ec 800200ec 7f890000 409efe8c 80010014 540b07b9 40a2fe80

4bfffe6c 80780290 7f64db78 4804ea35 <807f002c> 38800000 38a00080 3863000c

For more information about the command output, see Table 2.

Related commands

reset kernel exception

display kernel reboot

Use display kernel reboot to display reboot information for a slot.

Syntax

In standalone mode:

display kernel reboot show-number [ offset ] [ verbose ] [ slot slot-number [ cpu cpu-number ] ]

In IRF mode:

display kernel reboot show-number [ offset ] [ verbose ] [ chassis chassis-number slot slot-number [ cpu cpu-number ] ]

Views

Any view

Predefined user roles

network-admin

Parameters

show-number: Specifies the number of kernel thread reboots to display, in the range of 1 to 60.

offset: Specifies the offset between the starting reboot and the most recent reboot, in the range of 0 to 59. The default value is 0.

verbose: Displays detailed information. If you do not specify this keyword, the command displays brief information.

slot slot-number: Specifies an MPU by its slot number. If you do not specify this option, the command displays kernel thread reboot information for the active MPU. Reboot information for cards is recorded in the memory of the active MPU. If the active MPU is powered off, the reboot information is lost. (In standalone mode.)

chassis chassis-number slot slot-number: Specifies an MPU on an IRF member device. If you do not specify this option, the command displays kernel thread reboot information for the global active MPU. Reboot information for cards on an IRF member device is recorded in the memory of the active MPU on the IRF member device. If the active MPU is powered off, the reboot information is lost. (In IRF mode.)

cpu cpu-number: Specifies a CPU by its number.

Examples

# (In standalone mode.) Display brief information about the most recent reboot.

<Sysname> display kernel reboot 1

----------------- Reboot record 1 -----------------

Recorded at          : 2013-05-01  11:16:00.823018

Occurred at          : 2013-05-01  11:16:00.823018

Reason               : 0x31

Thread               : comsh (TID: 16306)

Context              : thread context

Slot                 : 1

Target Slot          : 0

Cpu                  : 0

VCPU ID              : 0

Kernel module info   : module name (mrpnc) module address (0xe332a000)

                       module name (12500) module address (0xe00bd000)

# (In standalone mode.) Display detailed information about the most recent reboot.

<Sysname> display kernel reboot 1 verbose

----------------- Reboot record 1 -----------------

Recorded at          : 2013-05-01  11:16:00.823018

Occurred at          : 2013-05-01  11:16:00.823018

Reason               : 0x31

Thread               : comsh (TID: 16306)

Context              : thread context

Slot                 : 1

Target Slot          : 0

Cpu                  : 0

VCPU ID              : 0

Kernel module info   : module name (mrpnc) module address (0xe332a000)

                       module name (12500) module address (0xe00bd000)

 

Last 5 thread switches : migration/0 (11:16:00.823018)-->

                         swapper (11:16:00.833018)-->

                         kthreadd (11:16:00.833518)-->

                         swapper (11:16:00.833550)-->

                         disk (11:16:00.833560)

 

Dump stack (total 1024 bytes, 16 bytes/line):

0xe2be5ea0: 02 be 5e c0 24 00 00 24 00 00 00 00 05 7d 94 84

0xe2be5eb0: 00 00 00 04 00 00 00 00 00 00 00 28 05 8d 34 c4

0xe2be5ec0: 02 be 60 a0 01 86 ef f0 00 00 00 00 00 00 00 00

0xe2be5ed0: 02 04 05 b4 00 00 00 00 00 00 00 00 00 00 00 00

0xe2be5ee0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0xe2be5ef0: 95 47 73 35 00 00 00 00 00 00 00 00 00 00 00 00

0xe2be5f00: a0 e1 64 21 00 00 00 00 00 00 00 00 00 00 00 00

0xe2be5f10: 00 00 00 00 00 00 00 00 00 00 00 00 01 e9 00 00

0xe2be5f20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0xe2be5f30: 00 00 00 00 00 00 00 00 02 be 66 c0 02 be 66 d0

0xe2be5f40: 02 be 61 e0 00 00 00 02 00 00 00 00 02 44 b3 a4

0xe2be5f50: 02 be 5f 90 00 00 00 08 02 be 5f e0 00 00 00 08

0xe2be5f60: 02 be 5f 80 00 ac 1b 14 00 00 00 00 00 00 00 00

0xe2be5f70: 05 b4 5f 90 02 be 5f e0 00 00 00 30 02 be 5f e0

0xe2be5f80: 02 be 5f c0 00 ac 1b f4 00 00 00 00 02 45 00 00

0xe2be5f90: 00 03 00 00 00 00 00 00 02 be 5f e0 00 00 00 30

0xe2be5fa0: 02 be 5f c0 00 ac 1b 14 61 f1 2e ae 02 45 00 00

0xe2be5fb0: 02 44 b3 74 02 be 5f d0 00 00 00 30 02 be 5f e0

0xe2be5fc0: 02 be 60 60 01 74 ff f8 00 00 00 00 00 00 08 00

0xe2be5fd0: 02 be 5f f0 00 e8 93 7e 02 be 5f f8 02 be 5f fc

0xe2be5fe0: 00 00 00 00 00 00 00 00 00 00 00 00 02 be 60 18

0xe2be5ff0: 02 be 60 10 00 e9 65 98 00 00 00 58 00 00 2a 4f

0xe2be6000: 02 be 60 10 00 00 00 00 00 00 00 00 02 be 60 68

0xe2be6010: 02 be 60 40 00 e8 c6 a0 00 00 11 17 00 00 00 00

0xe2be6020: 02 be 60 40 00 00 00 00 00 00 00 00 02 be 60 98

0xe2be6030: 02 27 00 00 00 00 00 00 00 00 00 00 02 be 60 68

0xe2be6040: 02 be 60 60 00 00 00 01 00 00 b0 30 02 be 60 98

0xe2be6050: 00 00 00 04 02 21 00 00 00 00 00 00 01 e9 00 00

0xe2be6060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0xe2be6070: 00 00 00 00 00 00 00 00 02 be 66 c0 02 be 66 d0

0xe2be6080: 02 be 61 e0 00 00 00 02 00 00 00 00 02 be 61 70

0xe2be6090: 00 00 00 00 02 21 00 00 05 8d 34 c4 05 7d 92 44

 

Call trace:

Function Address = 0x8012a4b4

Function Address = 0x8017989c

Function Address = 0x80179b30

Function Address = 0x80127438

Function Address = 0x8012d734

Function Address = 0x80100a00

Function Address = 0xe0071004

Function Address = 0x8016ce0c

Function Address = 0x801223a0

Table 4 Command output

Field

Description

Recorded at

Time when the reboot was recorded, with microsecond precision.

Occurred at

Time when the reboot occurred, with microsecond precision.

Reason

Reboot reason.

Thread

Name and number of the kernel thread that was running when the reboot occurred.

Context

Context where the reboot occurred.

Chassis

(In IRF mode.) Number of the IRF member device that triggered the reboot.

Target Chassis

(In IRF mode.) Member ID of the rebooted IRF member device.

Slot

Number of the slot that triggered the reboot.

Target Slot

Number of the rebooted slot.

Cpu

Number of the CPU that triggered the reboot.

VCPU ID

Number of the CPU core that triggered the reboot.

Kernel module info

Information about kernel modules that had been loaded when the kernel thread rebooted, including kernel module name and memory address.

Last 5 thread switches

Last five kernel thread switches on the CPU before the kernel thread rebooted, including kernel thread name and kernel thread switching time, with microsecond precision.

Dump stack

Stack information for the threads that were running when the reboot occurred.

Call trace

Function call stack information for the threads that were running when the reboot occurred.

No information to display

No reboot information exists.

 

Related commands

reset kernel reboot

display kernel starvation

Use display kernel starvation to display kernel thread starvation information.

Syntax

In standalone mode:

display kernel starvation show-number [ offset ] [ verbose ] [ slot slot-number [ cpu cpu-number ] ]

In IRF mode:

display kernel starvation show-number [ offset ] [ verbose ] [ chassis chassis-number slot slot-number [ cpu cpu-number ] ]

Views

Any view

Predefined user roles

network-admin

Parameters

show-number: Specifies the number of thread starvations to display, in the range of 1 to 60.

offset: Specifies the offset between the starting starvation and the most recent starvation, in the range of 0 to 59. The default value is 0.

verbose: Displays detailed information. If you do not specify this keyword, the command displays brief information.

slot slot-number: Specifies an MPU by its slot number. If you do not specify this option, the command displays kernel thread starvation information for the active MPU. (In standalone mode.)

chassis chassis-number slot slot-number: Specifies an MPU on an IRF member device. If you do not specify this option, the command displays kernel thread starvation information for the global active MPU. (In IRF mode.)

cpu cpu-number: Specifies a CPU by its number.

Examples

# (In standalone mode.) Display brief information about the most recent kernel thread starvation.

<Sysname> display kernel starvation 1

----------------- Starvation record 1 -----------------

Description          : INFO: task comsh: 16306 blocked for more than 10 seconds.

Recorded at          : 2013-05-01  11:16:00.823018

Occurred at          : 2013-05-01  11:16:00.823018

Instruction address  : 0x4004158c

Thread               : comsh (TID: 16306)

Context              : thread context

Slot                 : 1

Cpu                  : 0

VCPU ID              : 0

Kernel module info   : module name (mrpnc) module address (0xe332a000)

                       module name (12500) module address (0xe00bd000)

# (In standalone mode.) Display detailed information about the most recent kernel thread starvation.

<Sysname> display kernel starvation 1 verbose

----------------- Starvation record 1 -----------------

Description          : INFO: task comsh: 16306 blocked for more than 10 seconds.

Recorded at          : 2013-05-01  11:16:00.823018

Occurred at          : 2013-05-01  11:16:00.823018

Instruction address  : 0x4004158c

Thread               : comsh (TID: 16306)

Context              : thread context

Slot                 : 1

Cpu                  : 0

VCPU ID              : 0

Kernel module info   : module name (mrpnc) module address (0xe332a000)

                       module name (12500) module address (0xe00bd000)

 

Last 5 thread switches : migration/0 (11:16:00.823018)-->

                         swapper (11:16:00.833018)-->

                         kthreadd (11:16:00.833518)-->

                         swapper (11:16:00.833550)-->

                         disk (11:16:00.833560)

 

Register content:

Reg:       r0, Val = 0x00000000 ; Reg:       r1, Val = 0xe2be5ea0 ;

Reg:       r2, Val = 0x00000000 ; Reg:       r3, Val = 0x77777777 ;

Reg:       r4, Val = 0x00000000 ; Reg:       r5, Val = 0x00001492 ;

Reg:       r6, Val = 0x00000000 ; Reg:       r7, Val = 0x0000ffff ;

Reg:       r8, Val = 0x77777777 ; Reg:       r9, Val = 0x00000000 ;

Reg:      r10, Val = 0x00000001 ; Reg:      r11, Val = 0x0000002c ;

Reg:      r12, Val = 0x057d9484 ; Reg:      r13, Val = 0x00000000 ;

Reg:      r14, Val = 0x00000000 ; Reg:      r15, Val = 0x02000000 ;

Reg:      r16, Val = 0xe2be5f00 ; Reg:      r17, Val = 0x00000000 ;

Reg:      r18, Val = 0x00000000 ; Reg:      r19, Val = 0x00000000 ;

Reg:      r20, Val = 0x024c10f8 ; Reg:      r21, Val = 0x057d9244 ;

Reg:      r22, Val = 0x00002000 ; Reg:      r23, Val = 0x0000002c ;

Reg:      r24, Val = 0x00000002 ; Reg:      r25, Val = 0x24000024 ;

Reg:      r26, Val = 0x00000000 ; Reg:      r27, Val = 0x057d9484 ;

Reg:      r28, Val = 0x0000002c ; Reg:      r29, Val = 0x00000000 ;

Reg:      r30, Val = 0x0000002c ; Reg:      r31, Val = 0x00000000 ;

Reg:       cr, Val = 0x84000028 ; Reg:      nip, Val = 0x057d9550 ;

Reg:      xer, Val = 0x00000000 ; Reg:       lr, Val = 0x0186eff0 ;

Reg:      ctr, Val = 0x682f7344 ; Reg:      msr, Val = 0x00784b5c ;

Reg:     trap, Val = 0x0000b030 ; Reg:      dar, Val = 0x77777777 ;

Reg:    dsisr, Val = 0x40000000 ; Reg:   result, Val = 0x00020300 ;

 

Dump stack (total 1024 bytes, 16 bytes/line):

0xe2be5ea0: 02 be 5e c0 24 00 00 24 00 00 00 00 05 7d 94 84

0xe2be5eb0: 00 00 00 04 00 00 00 00 00 00 00 28 05 8d 34 c4

0xe2be5ec0: 02 be 60 a0 01 86 ef f0 00 00 00 00 00 00 00 00

0xe2be5ed0: 02 04 05 b4 00 00 00 00 00 00 00 00 00 00 00 00

0xe2be5ee0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0xe2be5ef0: 95 47 73 35 00 00 00 00 00 00 00 00 00 00 00 00

0xe2be5f00: a0 e1 64 21 00 00 00 00 00 00 00 00 00 00 00 00

0xe2be5f10: 00 00 00 00 00 00 00 00 00 00 00 00 01 e9 00 00

0xe2be5f20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0xe2be5f30: 00 00 00 00 00 00 00 00 02 be 66 c0 02 be 66 d0

0xe2be5f40: 02 be 61 e0 00 00 00 02 00 00 00 00 02 44 b3 a4

0xe2be5f50: 02 be 5f 90 00 00 00 08 02 be 5f e0 00 00 00 08

0xe2be5f60: 02 be 5f 80 00 ac 1b 14 00 00 00 00 00 00 00 00

0xe2be5f70: 05 b4 5f 90 02 be 5f e0 00 00 00 30 02 be 5f e0

0xe2be5f80: 02 be 5f c0 00 ac 1b f4 00 00 00 00 02 45 00 00

0xe2be5f90: 00 03 00 00 00 00 00 00 02 be 5f e0 00 00 00 30

0xe2be5fa0: 02 be 5f c0 00 ac 1b 14 61 f1 2e ae 02 45 00 00

0xe2be5fb0: 02 44 b3 74 02 be 5f d0 00 00 00 30 02 be 5f e0

0xe2be5fc0: 02 be 60 60 01 74 ff f8 00 00 00 00 00 00 08 00

0xe2be5fd0: 02 be 5f f0 00 e8 93 7e 02 be 5f f8 02 be 5f fc

0xe2be5fe0: 00 00 00 00 00 00 00 00 00 00 00 00 02 be 60 18

0xe2be5ff0: 02 be 60 10 00 e9 65 98 00 00 00 58 00 00 2a 4f

0xe2be6000: 02 be 60 10 00 00 00 00 00 00 00 00 02 be 60 68

0xe2be6010: 02 be 60 40 00 e8 c6 a0 00 00 11 17 00 00 00 00

0xe2be6020: 02 be 60 40 00 00 00 00 00 00 00 00 02 be 60 98

0xe2be6030: 02 27 00 00 00 00 00 00 00 00 00 00 02 be 60 68

0xe2be6040: 02 be 60 60 00 00 00 01 00 00 b0 30 02 be 60 98

0xe2be6050: 00 00 00 04 02 21 00 00 00 00 00 00 01 e9 00 00

0xe2be6060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0xe2be6070: 00 00 00 00 00 00 00 00 02 be 66 c0 02 be 66 d0

0xe2be6080: 02 be 61 e0 00 00 00 02 00 00 00 00 02 be 61 70

0xe2be6090: 00 00 00 00 02 21 00 00 05 8d 34 c4 05 7d 92 44

 

Call trace:

Function Address = 0x8012a4b4

Function Address = 0x8017989c

Function Address = 0x80179b30

Function Address = 0x80127438

Function Address = 0x8012d734

Function Address = 0x80100a00

Function Address = 0xe0071004

Function Address = 0x8016ce0c

Function Address = 0x801223a0

  

Instruction dump:

41a2fe9c 812300ec 800200ec 7f890000 409efe8c 80010014 540b07b9 40a2fe80

4bfffe6c 80780290 7f64db78 4804ea35 <807f002c> 38800000 38a00080 3863000c

For detailed information about the command output, see Table 2.

Related commands

reset kernel starvation

display kernel starvation configuration

Use display kernel starvation configuration to display kernel thread starvation detection configuration.

Syntax

In standalone mode:

display kernel starvation configuration [ slot slot-number [ cpu cpu-number ] ]

In IRF mode:

display kernel starvation configuration [ chassis chassis-number slot slot-number [ cpu cpu-number ] ]

Views

Any view

Predefined user roles

network-admin

Parameters

slot slot-number: Specifies a card by its slot number. If you do not specify this option, the command displays kernel thread starvation detection configuration on the active MPU. (In standalone mode.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device. If you do not specify this option, the command displays kernel thread starvation detection configuration for the global active MPU. (In IRF mode.)

cpu cpu-number: Specifies a CPU by its number.

Examples

# Display kernel thread starvation detection configuration.

<Sysname> display kernel starvation configuration

Thread starvation detection: Enabled

Starvation timer (in seconds): 10

Threads excluded from monitoring: 1

  TID:    123   Name: co0

Table 5 Command output

Field

Description

Starvation timer (in seconds): n

Time interval (in seconds) to identify a kernel thread starvation. A kernel thread starvation occurs if a kernel thread does not run within n seconds.

Threads excluded from monitoring

Kernel threads excluded from kernel thread starvation detection.

Name

Kernel thread name.

TID

Kernel thread number.

 

Related commands

monitor kernel starvation enable

monitor kernel starvation exclude-thread

monitor kernel starvation time

display process

Use display process to display process state information.

Syntax

In standalone mode:

display process [ all | job job-id | name process-name ] [ slot slot-number [ cpu cpu-number ] ]

In IRF mode:

display process [ all | job job-id | name process-name ] [ chassis chassis-number slot slot-number [ cpu cpu-number ] ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

all: Specifies all processes. With the all keyword or without any parameters, the command displays state information for all processes.

job job-id: Specifies a process by its job ID, in the range of 1 to 2147483647. Each process has a fixed job ID.

name process-name: Specifies a process by its name, a case-insensitive string of 1 to 15 characters that must not contain question marks or spaces.

slot slot-number: Specifies a card by its slot number. If you do not specify this option, the command displays process state information for the active MPU. (In standalone mode.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. If you do not specify a card, this command displays information for the global active MPU. (In IRF mode.)

cpu cpu-number: Specifies a CPU by its number.

Examples

# Display state information for the process scmd.

<Sysname> display process name scmd

                             Job ID: 1

                                PID: 1

                         Parent JID: 0

                         Parent PID: 0

                    Executable path: -

                           Instance: 0

                            Respawn: OFF

                      Respawn count: 1

             Max. spawns per minute: 0

                       Last started: Wed Jun  1 14:45:46 2013

                      Process state: sleeping

                          Max. core: 0

                               ARGS: -

    TID  LAST_CPU    Stack      PRI    State   HH:MM:SS:MSEC  Name

      1      0          0K      120      S     0:0:5:220      scmd

Table 6 Command output

Field

Description

Job ID

Job ID of the process. The job ID never changes.

PID

Number of the process. The number identifies the process, and it might change as the process restarts.

Parent JID

Job ID of the parent process.

Parent PID

Number of the parent process.

Executable path

Executable path of the process. For a kernel thread, this field displays a hyphen (-).

Instance

Instance number of the process. Whether a process can run multiple instances depends on the software implementation.

Respawn

Indicates whether the process restarts when an error occurs:

·         ON—The process automatically restarts.

·         OFF—The process does not automatically restarts.

Respawn count

Times that the process has restarted. The starting value is 1.

Max. spawns per minute

Maximum number of times that the process can restart within one minute. If the threshold is reached, the system automatically shuts down the process.

Last started

Time when the most recent restart occurred.

Process state

State of the process:

·         running—Running or waiting in the queue.

·         sleeping—Interruptible sleep.

·         traced or stopped—Stopped.

·         uninterruptible sleep—Uninterruptible sleep.

·         zombie—The process has quit, but some resources are not released.

Max. core

Maximum number of core dump files that the process can create. 0 indicates that the process never creates a core dump file. A process creates a core dump file after it abnormally restarts. If the number of core dump files reaches the maximum value, no more core dump files are created. core dump files are helpful for troubleshooting.

ARGS

Parameters carried by the process during startup. If the process carries no parameters, this field displays a hyphen (-).

TID

Thread ID.

LAST_CPU

Number of the CPU on which the process is last scheduled.

Stack

Stack size.

PRI

Thread priority.

State

Thread state:

·         R—Running.

·         S—Sleeping.

·         T—Traced or stopped.

·         D—Uninterruptible sleep.

·         Z—Zombie.

HH:MM:SS:MSEC

Running time since the most recent start.

Name

Process name.

 

# Display state information for all processes.

<Sysname> display process all

       JID        PID %CPU %MEM STAT PRI     TTY HH:MM:SS COMMAND

         1          1  0.0  0.0   S  120      -  00:00:59 scmd

         2          2  0.0  0.0   S  115      -  00:00:00 [kthreadd]

         3          3  0.0  0.0   S   99      -  00:00:00 [migration/0]

         4          4  0.0  0.0   S  115      -  00:00:11 [ksoftirqd/0]

         5          5  0.0  0.0   S   99      -  00:00:00 [watchdog/0]

         6          6  0.0  0.0   S   99      -  00:00:00 [migration/1]

         7          7  0.0  0.0   S  115      -  00:00:01 [ksoftirqd/1]

         8          8  0.0  0.0   S   99      -  00:00:00 [watchdog/1]

         9          9  0.0  0.0   S   99      -  00:00:00 [migration/2]

        10         10  0.0  0.0   S  115      -  00:00:03 [ksoftirqd/2]

        11         11  0.0  0.0   S   99      -  00:00:00 [watchdog/2]

        12         12  0.0  0.0   S   99      -  00:00:00 [migration/3]

        13         13  0.0  0.0   S  115      -  00:00:00 [ksoftirqd/3]

        14         14  0.0  0.0   S   99      -  00:00:00 [watchdog/3]

        15         15  0.0  0.0   S   99      -  00:00:00 [migration/4]

        16         16  0.0  0.0   S  115      -  00:00:00 [ksoftirqd/4]

        17         17  0.0  0.0   S   99      -  00:00:00 [watchdog/4]

        18         18  0.0  0.0   S   99      -  00:00:00 [migration/5]

---- More ----              

Table 7 Command output

Field

Description

JID

Job ID of a process. It never changes.

PID

Number of a process.

%CPU

CPU usage in percentage (%).

%MEM

Memory usage in percentage (%).

STAT

State of a process:

·         R—Running.

·         S—Sleeping.

·         T—Traced or stopped.

·         D—Uninterruptible sleep.

·         Z—Zombie.

PRI

Priority of a process for scheduling.

TTY

TTY used by a process.

HH:MM:SS

Running time since the most recent start. If the running time reaches or exceeds 100 hours, this field displays only the number of hours.

COMMAND

Name and parameters of a process. If square brackets ([ ]) exist in a process name, the process is a kernel thread.

 

display process cpu

Use display process cpu to display CPU usage for all processes.

Syntax

In standalone mode:

display process cpu [ slot slot-number [ cpu cpu-number ] ]

In IRF mode:

display process cpu [ chassis chassis-number slot slot-number [ cpu cpu-number ] ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

slot slot-number: Specifies a card by its slot number. If you do not specify this option, the command displays CPU usage for all processes on the active MPU. (In standalone mode.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. If you do not specify a card, this command displays information for the global active MPU. (In IRF mode.)

cpu cpu-number: Specifies a CPU by its number.

Examples

# Display CPU usage for all processes.

<Sysname> display process cpu

CPU utilization in 5 secs: 16.8%; 1 min: 4.7%; 5 mins: 4.7%

    JID      5Sec      1Min      5Min    Name

      1      0.0%      0.0%      0.0%    scmd

      2      0.0%      0.0%      0.0%    [kthreadd]

      3      0.1%      0.0%      0.0%    [ksoftirqd/0]

….

Table 8 Command output

Field

Description

CPU utilization in 5 secs: 16.8%; 1 min: 4.7%; 5 mins: 4.7%

System CPU usage within the last 5 seconds, 1 minute, and 5 minutes.

JID

Job ID of a process. It never changes.

5Sec

CPU usage of the process within the last 5 seconds.

1Min

CPU usage of the process within the last minute.

5Min

CPU usage of the process within the last 5 minutes.

Name

Name of the process. If square brackets ([ ]) exist in a process name, the process is a kernel thread.

 

display process log

Use display process log to display log information for all user processes.

Syntax

In standalone mode:

display process log [ slot slot-number [ cpu cpu-number ] ]

In IRF mode:

display process log [ chassis chassis-number slot slot-number [ cpu cpu-number ] ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

slot slot-number: Specifies a card by its slot number. If you do not specify this option, the command displays log information for all processes on the active MPU. (In standalone mode.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. If you do not specify a card, this command displays log information for the global active MPU. (In IRF mode.)

cpu cpu-number: Specifies a CPU by its number.

Examples

# Display log information for all user processes.

<Sysname> display process log

Process       JobID  PID    Abort Core Exit Kill StartTime      EndTime        

knotify       92     92     N     N    0    36   12-17 07:10:27 12-17 07:10:27 

knotify       93     93     N     N    0    --   12-17 07:10:27 12-17 07:10:27 

automount     94     94     N     N    0    --   12-17 07:10:27 12-17 07:10:28 

knotify       111    111    N     N    0    --   12-17 07:10:28 12-17 07:10:28 

comsh         121    121    N     N    0    --   12-17 07:10:30 12-17 07:10:30 

knotify       152    152    N     N    0    --   12-17 07:10:31 12-17 07:10:31 

autocfgd      155    155    N     N    0    --   12-17 07:10:31 12-17 07:10:31 

pkg_update    122    122    N     N    0    --   12-17 07:10:30 12-17 07:10:31

Table 9 Command output

Field

Description

Process

Name of a user process.

JobID

Job ID of a user process.

PID

ID of a user process.

Abort

Indicates whether the process exited abnormally:

·         Y—Yes.

·         N—No.

Core

Indicates whether the process can generate core dump files:

·         Y—Yes.

·         N—No.

Exit

Process exit code. This field displays two hyphens (--) if the process was killed by a signal.

Kill

Code of the signal that killed the process. This field displays two hyphens (--) if the process exited instead of being killed.

StartTime

Time when the user process started.

EndTime

Time when the user process ended.

 

display process memory

Use display process memory to display memory usage for all user processes.

Syntax

In standalone mode:

display process memory [ slot slot-number [ cpu cpu-number ] ]

In IRF mode:

display process memory [ chassis chassis-number slot slot-number [ cpu cpu-number ] ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

slot slot-number: Specifies a card by its slot number. If you do not specify this option, the command displays memory usage for all user processes on the active MPU. (In standalone mode.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. If you do not specify a card, this command displays information for the global active MPU. (In IRF mode.)

cpu cpu-number: Specifies a CPU by its number.

Usage guidelines

When a user process starts, it requests the following types of memory from the system:

·          Text memory—Stores code for the user process.

·          Data memory—Stores data for the user process.

·          Stack memory—Stores temporary data.

·          Dynamic memory—Heap memory dynamically assigned and released by the system according to the needs of the user process. To view dynamic memory information, execute the display process memory heap command.

Examples

# Display memory usage for all user processes.

<Sysname> display process memory

   JID       Text      Data      Stack    Dynamic    Name

     1        384      1800         16         36    scmd

     2          0         0          0          0    [kthreadd]

     3          0         0          0          0    [ksoftirqd/0]

     4          0         0          0          0    [watchdog/0]

     5          0         0          0          0    [events/0]

     6          0         0          0          0    [khelper]

    29          0         0          0          0    [kblockd/0]

    49          0         0          0          0    [vzmond]

    52          0         0          0          0    [pdflush]

---- More ----

Table 10 Command output

Field

Description

JID

Job ID of a process. It never changes.

Text

Text memory used by the user process, in KB. The value for a kernel thread is 0.

Data

Data memory used by the user process, in KB. The value for a kernel thread is 0.

Stack

Stack memory used by the user process, in KB. The value for a kernel thread is 0.

Dynamic

Dynamic memory used by the user process, in KB. The value for a kernel thread is 0.

Name

Name of the user process. If square brackets ([ ]) exist in a process name, the process is a kernel thread.

 

Related commands

display process memory heap

display process memory heap address

display process memory heap size

display process memory heap

Use display process memory heap to display heap memory usage for a user process.

Syntax

In standalone mode:

display process memory heap job job-id [ verbose ] [ slot slot-number [ cpu cpu-number ] ]

In IRF mode:

display process memory heap job job-id [ verbose ] [ chassis chassis-number slot slot-number [ cpu cpu-number ] ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

job job-id: Specifies a user process by its job ID, in the range of 1 to 2147483647.

verbose: Displays detailed information. If you do not specify this keyword, the command displays brief information.

slot slot-number: Specifies a card by its slot number. If you do not specify this option, the command displays heap memory usage for the user process on the active MPU.(In standalone mode.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. If you do not specify a card, this command displays information for the global active MPU. (In IRF mode.)

cpu cpu-number: Specifies a CPU by its number.

Usage guidelines

Heap memory comprises fixed-sized blocks such as 16-byte or 64-byte blocks. It stores data and variables used by the user process. When a user process starts, the system dynamically allocates heap memory to the process.

Each memory block has an address represented in hexadecimal format, which can be used to access the memory block. You can view memory block addresses by using the display process memory heap size command, and view memory block contents by using the display process memory heap address command.

Examples

# Display brief information about heap memory usage for the process identified by job ID 1.

<Sysname> display process memory heap job 1

Total virtual memory heap space(in bytes) :  2228224

Total physical memory heap space(in bytes) :  262144

Total allocated memory(in bytes)          :  161576

# Display detailed information about heap memory usage for the process identified by job ID 1.

<Sysname> display process memory heap job 1 verbose

Heap usage:

Size       Free      Used     Total     Free Ratio

16         8         52       60        13%

64         3         1262     1265      0.2%

128        2         207      209       1%

512        3         55       58        5.1%

4096       3         297      300       1%

8192       1         19       20        5%

81920      0         1        1         0%

Summary:

Total virtual memory heap space (in bytes)  :  2293760

Total physical memory heap space (in bytes) :  58368

Total allocated memory (in bytes)           :  42368

Table 11 Command output

Field

Description

Size

Size of each memory block, in bytes.

Free

Number of free memory blocks.

Used

Number of used memory blocks.

Total

Total number of memory blocks.

Free Ratio

Ratio of free memory to total memory. It helps identify fragment information.

 

Related commands

display process memory

display process memory heap address

display process memory heap size

display process memory heap address

Use display process memory heap address to display heap memory content starting from a specified memory block for a process.

Syntax

In standalone mode:

display process memory heap job job-id address starting-address length memory-length [ slot slot-number [ cpu cpu-number ] ]

In IRF mode:

display process memory heap job job-id address starting-address length memory-length [ chassis chassis-number slot slot-number [ cpu cpu-number ] ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

job job-id: Specifies a user process by its job ID, in the range of 1 to 2147483647.

address starting-address: Specifies the starting memory block by its address.

length memory-length: Specifies the memory block length in the range of 1 to 1024 bytes.

slot slot-number: Specifies a card by its slot number. If you do not specify this option, the command displays memory content information on the active MPU.(In standalone mode.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. If you do not specify a card, this command displays information for the global active MPU. (In IRF mode.)

cpu cpu-number: Specifies a CPU by its number.

Usage guidelines

When a user process runs abnormally, the command helps locate the problem.

Examples

# Display 128-byte memory block content starting from the memory block 0xb7e30580 for the process job 1.

<Sysname> display process memory heap job 1 address b7e30580 length 128

B7E30580:  14 00 EF FF 00 00 00 00 E4 39 E2 B7 7C 05 E3 B7  .........9..|...   

B7E30590:  14 00 EF FF 2F 73 62 69 6E 2F 73 6C 62 67 64 00  ..../sbin/slbgd.   

B7E305A0:  14 00 EF FF 00 00 00 00 44 3B E2 B7 8C 05 E3 B7  ........D;......   

B7E305B0:  14 00 EF FF 2F 73 62 69 6E 2F 6F 73 70 66 64 00  ..../sbin/ospfd.   

B7E305C0:  14 00 EF FF 00 00 00 00 A4 3C E2 B7 AC 05 E3 B7  .........<......   

B7E305D0:  14 00 EF FF 2F 73 62 69 6E 2F 6D 73 74 70 64 00  ..../sbin/mstpd.   

B7E305E0:  14 00 EF FF 00 00 00 00 04 3E E2 B7 CC 05 E3 B7  .........>......   

B7E305F0:  14 00 EF FF 2F 73 62 69 6E 2F 6E 74 70 64 00 00  ..../sbin/ntpd..

Related commands

display process memory heap

display process memory heap size

display process memory heap size

Use display process memory heap size to display the addresses of heap memory blocks with a specified size used by a process.

Syntax

In standalone mode:

display process memory heap job job-id size memory-size [ offset offset-size ] [ slot slot-number [ cpu cpu-number ] ]

In IRF mode:

display process memory heap job job-id size memory-size [ offset offset-size ] [ chassis chassis-number slot slot-number [ cpu cpu-number ] ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

job job-id: Specifies a process by its job ID, in the range of 1 to 2147483647.

size memory-size: Specifies the memory block size in the range of 1 to 4294967295.

offset offset-size: Specifies an offset in the range of 0 to 4294967295. The default value is 128. For example, suppose the system allocates 100 16-byte memory blocks to process job 1, and the process has used 66 blocks. Then if you execute the display process memory heap job 1 size 16 offset 50 command, the output shows the addresses of the 51st through 66th 16-byte blocks used by the process.

slot slot-number: Specifies a card by its slot number. If you do not specify this option, the command displays block address information on the active MPU. (In standalone mode.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. If you do not specify a card, this command displays information for the global active MPU. (In IRF mode.)

cpu cpu-number: Specifies a CPU by its number.

Usage guidelines

The command displays memory block addresses in hexadecimal format. To view memory block content, execute the display process memory heap address command.

Examples

# Display the addresses of 16-byte memory blocks used by process job 1.

<Sysname> display process memory heap job 1 size 16

0xb7e300c0  0xb7e300d0  0xb7e300e0  0xb7e300f0

0xb7e30100  0xb7e30110  0xb7e30120  0xb7e30130

0xb7e30140  0xb7e30150  0xb7e30160  0xb7e30170

0xb7e30180  0xb7e30190  0xb7e301a0  0xb7e301b0

0xb7e301c0  0xb7e301d0  0xb7e301e0  0xb7e301f0

0xb7e30200  0xb7e30210  0xb7e30220  0xb7e30230

# Display the addresses of 16-byte memory blocks starting from the fifth block used by process job 1.

<Sysname> display process memory heap job 1 size 16 offset 4

0xb7e30100  0xb7e30110  0xb7e30120  0xb7e30130

0xb7e30140  0xb7e30150  0xb7e30160  0xb7e30170

0xb7e30180  0xb7e30190  0xb7e301a0  0xb7e301b0

0xb7e301c0  0xb7e301d0  0xb7e301e0  0xb7e301f0

0xb7e30200  0xb7e30210  0xb7e30220  0xb7e30230

Related commands

display process memory heap

display process memory heap address

exception filepath

Use exception filepath to specify the directory for saving core dump files.

Use undo exception filepath to remove the specified directory.

Syntax

exception filepath directory

undo exception filepath directory

Default

The directory for saving core dump files is the root directory of the default file system.

Views

User view

Predefined user roles

network-admin

Parameters

directory: Specifies the directory for saving core dump files.

Usage guidelines

(In standalone mode.) The specified directory must be the root directory of a file system on the active MPU.

(In IRF mode.) The specified directory must be the root directory of a file system on the global active MPU.

You can use the command to change the directory if there are different kinds of storage media on the device.

The system saves core dump files to the core directory in the specified directory. If the core directory does not exist in the specified directory, the system creates the core directory before saving core dump files.

If no directory is specified or the specified directory is not accessible, the system cannot save core dump files.

Examples

# Set the directory for saving core dump files to flash:/.

<Sysname> exception filepath flash:/

Related commands

display exception filepath

process core

monitor kernel deadloop action

Use monitor kernel deadloop action to specify the action to be taken in response to a kernel thread deadloop.

Use undo monitor kernel deadloop action to restore the default.

Syntax

In standalone mode:

monitor kernel deadloop action { reboot | record-only } [ slot slot-number [ cpu cpu-number ] ]

undo monitor kernel deadloop action [ slot slot-number [ cpu cpu-number ] ]

In IRF mode:

monitor kernel deadloop action { reboot | record-only } [ chassis chassis-number slot slot-number [ cpu cpu-number ] ]

undo monitor kernel deadloop action [ chassis chassis-number slot slot-number [ cpu cpu-number ] ]

Default

The device logs the event and reboots the slot or CPU when a kernel thread deadloop occurs.

Views

System view

Predefined user roles

network-admin

Parameters

reboot: Logs the event and reboots the specified slot or CPU.  

record-only: Logs the event.

slot slot-number: Specifies a card by its slot number. If you do not specify this option, the command specifies the action for the active MPU. (In standalone mode.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device. If you do not specify a card, this command specifies the action for the global active MPU. (In IRF mode.)

cpu cpu-number: Specifies a CPU by its number.

Usage guidelines

Use this command only under the guidance of H3C technical support staff. Inappropriate configuration can cause system breakdown.

Examples

# (In standalone mode.) Set the kernel thread deadloop protection action to reboot for slot 3.

<Sysname> system-view

[Sysname] monitor kernel deadloop action reboot slot 3

Related commands

display kernel deadloop configuration

monitor kernel deadloop enable

monitor kernel deadloop enable

Use monitor kernel deadloop enable to enable kernel thread deadloop detection.

Use undo monitor kernel deadloop enable to disable kernel thread deadloop detection.

Syntax

In standalone mode:

monitor kernel deadloop enable [ slot slot-number [ cpu cpu-number [ core core-number&<1-64> ] ] ]

undo monitor kernel deadloop enable [ slot slot-number [ cpu cpu-number ] ]

In IRF mode:

monitor kernel deadloop enable [ chassis chassis-number slot slot-number [ cpu cpu-number [ core core-number&<1-64> ] ] ]

undo monitor kernel deadloop enable [ chassis chassis-number slot slot-number [ cpu cpu-number ] ]

Default

Kernel thread deadloop detection is disabled.

Views

System view

Predefined user roles

network-admin

Parameters

slot slot-number: Specifies a card by its slot number. If you do not specify this option, the command is applied to the active MPU. (In standalone mode.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device. If you do not specify this option, the command is applied to the global active MPU. (In IRF mode.)

cpu cpu-number: Specifies a CPU by its number.

core core-number&<1-64> ]: Specifies a maximum of 64 CPU cores.

Usage guidelines

Use this command only under the guidance of H3C technical support staff. Inappropriate configuration can cause system breakdown.

Kernel threads share resources in kernel space. If a kernel thread monopolizes the CPU for a long time, other threads cannot run, resulting in a deadloop.

The command enables the device to detect deadloops. If a thread occupies the CPU regularly, the device considers that a deadloop has occurred and outputs a deadloop message.

Examples

# Enable kernel thread deadloop detection.

<Sysname> system-view

[Sysname] monitor kernel deadloop enable

Related commands

display kernel deadloop

display kernel deadloop configuration

monitor kernel deadloop action

monitor kernel deadloop exclude-thread

monitor kernel deadloop time

monitor kernel deadloop exclude-thread

Use monitor kernel deadloop exclude-thread to disable kernel thread deadloop detection for a kernel thread.

Use undo monitor kernel deadloop exclude-thread to enable kernel thread deadloop detection for a kernel thread.

Syntax

In standalone mode:

monitor kernel deadloop exclude-thread tid [ slot slot-number [ cpu cpu-number ] ]

undo monitor kernel deadloop exclude-thread [ tid ] [ slot slot-number [ cpu cpu-number ] ]

In IRF mode:

monitor kernel deadloop exclude-thread tid [ chassis chassis-number slot slot-number [ cpu cpu-number ] ]

undo monitor kernel deadloop exclude-thread [ tid ] [ chassis chassis-number slot slot-number [ cpu cpu-number ] ]

Default

Kernel thread deadloop detection monitors all kernel threads.

Views

System view

Predefined user roles

network-admin

Parameters

tid: Specifies a kernel thread by its ID, in the range of 1 to 2147483647. If no kernel thread is specified for the undo command, the default is restored.

slot slot-number: Specifies a card by its slot number. If you do not specify this option, the command is applied to the active MPU. (In standalone mode.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device. If you do not specify this option, the command is applied to the global active MPU. (In IRF mode.)

cpu cpu-number: Specifies a CPU by its number.

Usage guidelines

Use this command only under the guidance of H3C technical support staff. Inappropriate configuration can cause system breakdown.

This command can be used multiple times to disable kernel thread deadloop detection for up to 128 kernel threads.

Examples

# Disable kernel thread deadloop detection for kernel thread 15.

<Sysname> system-view

[Sysname]monitor kernel deadloop exclude-thread 15

Related commands

display kernel deadloop configuration

display kernel deadloop

monitor kernel deadloop enable

monitor kernel deadloop time

monitor kernel deadloop time

Use monitor kernel deadloop time to set the interval for identifying a kernel thread deadloop.

Use undo monitor kernel deadloop time to restore the default.

Syntax

In standalone mode:

monitor kernel deadloop time time [ slot slot-number [ cpu cpu-number ] ]

undo monitor kernel deadloop time [ slot slot-number [ cpu cpu-number ] ]

In IRF mode:

monitor kernel deadloop time time [ chassis chassis-number slot slot-number [ cpu cpu-number ] ]

undo monitor kernel deadloop time [ chassis chassis-number slot slot-number [ cpu cpu-number ] ]

Default

The interval for identifying a kernel thread deadloop is 8 seconds.

Views

System view

Predefined user roles

network-admin

Parameters

time time: Specifies the interval for identifying a kernel thread deadloop, in the range of 1 to 65535 seconds.

slot slot-number: Specifies a card by its slot number. If you do not specify this option, the command is applied to the active MPU. (In standalone mode.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device. If you do not specify this option, the command is applied to the global active MPU. (In IRF mode.)

cpu cpu-number: Specifies a CPU by its number.

Usage guidelines

Use this command only under the guidance of H3C technical support staff. Inappropriate configuration can cause system breakdown.

If a kernel thread runs for the specified interval, kernel thread deadloop detection considers that a deadloop has occurred.

Examples

# Set the interval for identifying a kernel thread deadloop to 8 seconds.

<Sysname> system-view

[Sysname] monitor kernel deadloop time 8

Related commands

display kernel deadloop configuration

display kernel deadloop

monitor kernel deadloop enable

monitor kernel deadloop exclude-thread

monitor kernel starvation enable

Use monitor kernel starvation enable to enable kernel thread starvation detection.

Use undo monitor kernel starvation enable to disable kernel thread starvation detection.

Syntax

In standalone mode:

monitor kernel starvation enable [ slot slot-number [ cpu cpu-number ] ]

undo monitor kernel starvation enable [ slot slot-number [ cpu cpu-number ] ]

In IRF mode:

monitor kernel starvation enable [ chassis chassis-number slot slot-number [ cpu cpu-number ] ]

undo monitor kernel starvation enable [ chassis chassis-number slot slot-number [ cpu cpu-number ] ]

Default

Kernel thread starvation detection is disabled.

Views

System view

Predefined user roles

network-admin

Parameters

slot slot-number: Specifies a card by its slot number. If you do not specify this option, the command is applied to the active MPU. (In standalone mode.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device. If you do not specify this option, the command is applied to the global active MPU. (In IRF mode.)

cpu cpu-number: Specifies a CPU by its number.

Usage guidelines

Use this command only under the guidance of H3C technical support staff. Inappropriate configuration can cause system breakdown.

Starvation occurs when a thread is unable to access shared resources.

The command enables the system to detect and report thread starvation. If a thread is not executed within an interval, the system considers that a starvation has occurred, and outputs a starvation message.

Thread starvation does not impact system operation. A starved thread can automatically run when certain conditions are met.

Examples

# Enable kernel thread starvation detection.

<Sysname> system-view

[Sysname] monitor kernel starvation enable

Related commands

display kernel starvation configuration

display kernel starvation

monitor kernel starvation time

monitor kernel starvation exclude-thread

monitor kernel starvation exclude-thread

Use monitor kernel starvation exclude-thread to disable kernel thread starvation detection for a kernel thread.

Use undo monitor kernel starvation exclude-thread to enable kernel thread starvation detection for a kernel thread.

Syntax

In standalone mode:

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

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

In IRF mode:

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

undo monitor kernel starvation exclude-thread [ tid ] [ chassis chassis-number slot slot-number [ cpu cpu-number ] ]

Default

Kernel thread starvation detection, if enabled, monitors all kernel threads.

Views

System view

Predefined user roles

network-admin

Parameters

tid: Specifies a kernel thread by its ID, in the range of 1 to 2147483647. If no kernel thread is specified for the undo command, the default is restored.

slot slot-number: Specifies a card by its slot number. If you do not specify this option, the command is applied to the active MPU. (In standalone mode.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device. If you do not specify this option, the command is applied to the global active MPU. (In IRF mode.)

cpu cpu-number: Specifies a CPU by its number.

Usage guidelines

Use this command only under the guidance of H3C technical support staff. Inappropriate configuration can cause system breakdown.

This command can be used multiple times to disable kernel thread starvation detection for up to 128 kernel threads.

Examples

# Disable kernel thread starvation detection for kernel thread 15.

<Sysname> system-view

[Sysname] monitor kernel starvation exclude-thread 15

Related commands

display kernel starvation

display kernel starvation configuration

monitor kernel starvation time

monitor kernel starvation enable

monitor kernel starvation time

Use monitor kernel starvation time to set the interval for identifying a kernel thread starvation.

Use undo monitor kernel starvation time to restore the default.

Syntax

In standalone mode:

monitor kernel starvation time time [ slot slot-number [ cpu cpu-number ] ]

undo monitor kernel starvation time [ slot slot-number [ cpu cpu-number ] ]

In IRF mode:

monitor kernel starvation time time [ chassis chassis-number slot slot-number [ cpu cpu-number ] ]

undo monitor kernel starvation time [ chassis chassis-number slot slot-number [ cpu cpu-number ] ]

Default

The interval for identifying a kernel thread starvation is 120 seconds.

Views

System view

Predefined user roles

network-admin

Parameters

time time: Specifies the interval for identifying a kernel thread starvation, in the range of 1 to 65535 seconds.

slot slot-number: Specifies a card by its slot number. If you do not specify this option, the command is applied to the active MPU. (In standalone mode.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device. If you do not specify this option, the command is applied to the global active MPU. (In IRF mode.)

cpu cpu-number: Specifies a CPU by its number.

Usage guidelines

Use this command only under the guidance of H3C technical support staff. Inappropriate configuration can cause system breakdown.

If a thread is not executed within the specified interval, the system considers that a starvation has occurred, and outputs a starvation message.

Examples

# Set the interval for identifying a kernel thread starvation to 120 seconds.

<Sysname> system-view

[Sysname] monitor kernel starvation time 120

Related commands

display kernel starvation

display kernel starvation configuration

monitor kernel starvation enable

monitor kernel starvation exclude-thread

monitor process

Use monitor process to display process statistics.

Syntax

In standalone mode:

monitor process [ dumbtty ] [ iteration number ] [ slot slot-number [ cpu cpu-number ] ]

In IRF mode:

monitor process [ dumbtty ] [ iteration number ] [ chassis chassis-number slot slot-number [ cpu cpu-number ] ]

Views

Any view

Predefined user roles

network-admin

Parameters

dumbtty: Specifies dumbtty mode. In this mode, the command displays process statistics in descending order of CPU usage without refreshing statistics. If you do not specify this keyword, the command displays statistics for the top 10 processes in descending order of CPU usage in an interactive mode, and refreshes statistics every 5 seconds by default.

iteration number: Specifies the number of display times, in the range of 1 to 4294967295. If you specify the dumbtty keyword, the number argument is 1 by default. If neither the dumbtty keyword nor the number argument is specified, there is no limit to the display times and process statistics are refreshed every 5 seconds.

slot slot-number: Specifies a card by its slot number. If you do not specify this option, the command displays process statistics for the active MPU.(In standalone mode.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. If you do not specify a card, this command displays information for the global active MPU. (In IRF mode.)

cpu cpu-number: Specifies a CPU by its number.

Usage guidelines

If you do not specify the dumbtty keyword, the command displays process statistics in an interactive mode. In this mode, the system automatically determines the number of displayed processes according to the screen size, and does not display exceeding processes. You can also input interactive commands as shown in Table 12 to perform relevant operations.

Table 12 Interactive commands

Commands

Description

? or h

Displays help information that includes available interactive commands.

1

Displays state information for physical CPUs. For example, if you enter 1 for the first time, the state of each physical CPU is displayed in a separate row. If you enter 1 again, the average value of all CPU states is displayed. If you enter 1 for the third time, separate states are displayed.

By default, the average value of all CPU states is displayed.

c

Sorts processes by CPU usage in descending order, which is the default setting.

d

Sets the interval for refreshing process statistics, in the range of 1 to 2147483647 seconds. The default value is 5 seconds.

f

Sorts processes by the number of open files in descending order. Files are identified by file descriptors (FDs).

k

Kills a process. Because the command can impact system operation, be cautious to use it.

l

Refreshes the screen.

m

Sorts processes by memory usage in descending order.

n

Changes the maximum number of processes displayed within a screen, in the range of 0 to 2147483647. The default value is 10. A value of 0 means no limit. Only processes not exceeding the screen size can be displayed.

q

Quits the interactive mode.

t

Sorts processes by running time in descending order.

Moves sort field to the next left column.

Moves sort field to the next right column.

 

Examples

# Display process statistics in dumbtty mode. In this mode, the system displays process statistics once, and then returns to command view.

<Sysname> monitor process dumbtty

301 processes; 412 threads; 3140 fds

Thread states: 5 running, 407 sleeping, 0 stopped, 0 zombie

CPU0: 0.66% idle, 10.89% user, 65.38% kernel, 23.07% interrupt, 0.00% steal

CPU1: 81.03% idle, 4.43% user, 8.22% kernel, 6.32% interrupt, 0.00% steal

CPU2: 98.10% idle, 0.63% user, 0.00% kernel, 1.27% interrupt, 0.00% steal

CPU3: 0.00% idle, 0.00% user, 100.00% kernel, 0.00% interrupt, 0.00% steal

CPU4: 99.37% idle, 0.00% user, 0.63% kernel, 0.00% interrupt, 0.00% steal

CPU5: 100.00% idle, 0.00% user, 0.00% kernel, 0.00% interrupt, 0.00% steal

CPU6: 100.00% idle, 0.00% user, 0.00% kernel, 0.00% interrupt, 0.00% steal

CPU7: 64.76% idle, 2.56% user, 18.58% kernel, 14.10% interrupt, 0.00% steal

Memory: 3940M total, 2442M available, page size 4K

        JID        PID  PRI  State  FDs    MEM  HH:MM:SS    CPU   Name

        125        125  100    R     0      0K  02:17:03  12.48%  [MgtPktTask]

        364        364  125    R    15   2988K  02:01:04   8.60%  dpbackupd

        361        361  125    S    94 154072K  00:30:34   2.15%  dhcpd

        362        362  125    S    85 173272K  00:30:43   2.15%  dhcpd

        251        251  120    S    15  12116K  00:03:09   1.63%  diagd

          1          1  120    S    18  11204K  00:00:59   1.54%  scmd

...

# Display process statistics twice in dumbtty mode.

<Sysname> monitor process dumbtty iteration 2

301 processes; 412 threads; 3140 fds

Thread states: 4 running, 408 sleeping, 0 stopped, 0 zombie

CPU0: 0.65% idle, 9.43% user, 65.40% kernel, 24.52% interrupt, 0.00% steal

CPU1: 79.26% idle, 5.03% user, 8.80% kernel, 6.91% interrupt, 0.00% steal

CPU2: 77.51% idle, 1.25% user, 11.87% kernel, 9.37% interrupt, 0.00% steal

CPU3: 0.00% idle, 0.00% user, 100.00% kernel, 0.00% interrupt, 0.00% steal

CPU4: 98.76% idle, 0.00% user, 0.62% kernel, 0.62% interrupt, 0.00% steal

CPU5: 100.00% idle, 0.00% user, 0.00% kernel, 0.00% interrupt, 0.00% steal

CPU6: 100.00% idle, 0.00% user, 0.00% kernel, 0.00% interrupt, 0.00% steal

CPU7: 90.01% idle, 0.62% user, 5.62% kernel, 3.75% interrupt, 0.00% steal

Memory: 3940M total, 2442M available, page size 4K

        JID        PID  PRI  State  FDs    MEM  HH:MM:SS    CPU   Name

        125        125  100    R     0      0K  02:20:17  12.01%  [MgtPktTask]

        364        364  125    R    15   2988K  02:03:58   8.25%  dpbackupd

        361        361  125    S    94 154072K  00:31:18   2.12%  dhcpd

        362        362  125    R    85 173272K  00:31:27   2.12%  dhcpd

        251        251  120    S    15  12116K  00:03:15   1.63%  diagd

          1          1  120    S    18  11204K  00:00:59   1.30%  scmd

Five seconds later, the system refreshes process statistics as follows (which is the same as executing the monitor process dumbtty command twice at 5-second intervals):

301 processes; 412 threads; 3140 fds

Thread states: 4 running, 408 sleeping, 0 stopped, 0 zombie

CPU0: 0.58% idle, 12.45% user, 58.62% kernel, 28.35% interrupt, 0.00% steal

CPU1: 94.27% idle, 1.91% user, 3.63% kernel, 0.19% interrupt, 0.00% steal

CPU2: 62.97% idle, 2.11% user, 19.76% kernel, 15.16% interrupt, 0.00% steal

CPU3: 0.00% idle, 0.00% user, 100.00% kernel, 0.00% interrupt, 0.00% steal

CPU4: 99.81% idle, 0.00% user, 0.19% kernel, 0.00% interrupt, 0.00% steal

CPU5: 100.00% idle, 0.00% user, 0.00% kernel, 0.00% interrupt, 0.00% steal

CPU6: 100.00% idle, 0.00% user, 0.00% kernel, 0.00% interrupt, 0.00% steal

CPU7: 99.81% idle, 0.00% user, 0.00% kernel, 0.19% interrupt, 0.00% steal

Memory: 3940M total, 2442M available, page size 4K

        JID        PID  PRI  State  FDs    MEM  HH:MM:SS    CPU   Name

        125        125  100    R     0      0K  02:20:23  11.76%  [MgtPktTask]

        364        364  125    R    15   2988K  02:04:02  10.61%  dpbackupd

        361        361  125    R    94 154072K  00:31:19   2.63%  dhcpd

        362        362  125    S    85 173272K  00:31:28   2.63%  dhcpd

        251        251  120    S    15  12116K  00:03:16   0.63%  diagd

        156        156  116    D     0      0K  00:03:14   0.26%  [bLK0]

# Display process statistics in interactive mode.

<Sysname> monitor process

170 processes; 218 threads; 1170 fds

Thread states: 2 running, 216 sleeping, 0 stopped, 0 zombie

CPU: 73.79% idle, 0.81% user, 22.95% kernel, 2.45% interrupt, 0.00% steal

Memory: 500M total, 125M available, page size 4K

    JID    PID  PRI  State  FDs    MEM  HH:MM:SS    CPU   Name

    116    116  120    S    56  31840K  00:34:27   8.96%  apmgrd

      1      1  120    S    18   9828K  00:00:08   6.89%  scmd

     84     84  120    S    17  18320K  00:01:15   6.20%  diagd

    151    151  120    S   151  41024K  00:07:14   2.06%  stamgrd

     54     54  105    D     0      0K  00:00:16   0.68%  [hellopkt]

    118    118  120    S    18  72360K  00:00:11   0.68%  comsh

   4834   4834  120    S    27   1640K  00:00:00   0.68%  top

      2      2  115    S     0      0K  00:00:00   0.00%  [kthreadd]

      3      3   99    S     0      0K  00:00:00   0.00%  [migration/0]

      4      4  115    S     0      0K  00:00:05   0.00%  [ksoftirqd/0]

Press q to quit, or press ? or h for help.

The system refreshes process statistics every 5 seconds. You can enter interactive commands to perform operation as follows:

·          Enter h or a question mark (?) to display help information as follows:

Help for interactive commands:

      ?,h    Show the available interactive commands

        1    Toggle SMP view: '1' single/separate states

        c    Sort by the CPU field(default)

        d    Set the delay interval between screen updates

        f    Sort by number of open files

        k    Kill a job

        l    Refresh the screen

        m    Sort by memory used

        n    Set the maximum number of processes to display

        q    Quit the interactive display

        t    Sort by run time of processes since last restart

        <    Move sort field to the next left column

        >    Move sort field to the next right column

Press any key to continue

·          Enter d, and then enter a number to modify the refresh interval. If you enter 3, statistics are refreshed every 3 seconds.

Enter the delay interval between updates(1~2147483647):3

·          Enter n, and then enter a number to modify the maximum number of displayed processes. If you enter 5, statistics for five processes are displayed.

Enter the max number of processes to display(0 means unlimited):5

170 processes; 218 threads; 1170 fds

Thread states: 2 running, 216 sleeping, 0 stopped, 0 zombie

CPU0: 78.44% idle, 0.31% user, 18.75% kernel, 2.50% interrupt, 0.00% steal

Memory: 500M total, 125M available, page size 4K

    JID    PID  PRI  State  FDs    MEM  HH:MM:SS    CPU   Name

    116    116  120    S    56  31840K  00:34:33  12.00%  apmgrd

    151    151  120    S   151  41024K  00:07:15   2.20%  stamgrd

     84     84  120    S    17  18320K  00:01:16   1.95%  diagd

     86     86  120    S    28  14440K  00:00:59   0.24%  syslogd

    128    128  120    S    10   2804K  00:00:44   0.24%  hcld

    177    177  120    S    45  53128K  00:00:41   0.24%  xmlcfgd

     87     87  120    S    21  19888K  00:00:34   0.24%  devd

    166    166  120    S    52  44188K  00:00:26   0.24%  qosd

     70     70  105    S     0      0K  00:00:24   0.24%  [sock/1]

    123    123  120    S    44  34464K  00:00:18   0.24%  aaad

Press q to quit, or press ? or h for help.

·          Enter f to sort processes by FDs in descending order. (You can also enter command c, m, or t to sort processes.)

170 processes; 218 threads; 1170 fds

Thread states: 2 running, 216 sleeping, 0 stopped, 0 zombie

CPU: 89.55% idle, 0.32% user, 9.15% kernel, 0.98% interrupt, 0.00% steal

Memory: 500M total, 125M available, page size 4K

    JID    PID  PRI  State  FDs    MEM  HH:MM:SS    CPU   Name

    151    151  120    S   151  41024K  00:07:16   1.22%  stamgrd

     82     82  100    S    92  27204K  00:00:02   0.00%  dbmd

    116    116  120    S    56  31840K  00:34:37   6.14%  apmgrd

    166    166  120    S    52  44188K  00:00:26   0.00%  qosd

    177    177  120    S    45  53128K  00:00:42   0.00%  xmlcfgd

    123    123  120    S    44  34464K  00:00:18   0.00%  aaad

    135    135  120    S    42  26380K  00:00:08   0.00%  aclmgrd

    153    153  120    S    41  11808K  00:00:13   0.20%  ethd

     96     96  120    S    35  42536K  00:00:07   0.00%  pexd

Press q to quit, or press ? or h for help.

·          Enter k and then enter a JID to kill a process. If you enter 123, the process named aaad is killed.

Enter the JID to kill: 123

169 processes; 214 threads; 1110 fds

Thread states: 2 running, 212 sleeping, 0 stopped, 0 zombie

CPU: 89.11% idle, 0.66% user, 7.92% kernel, 2.31% interrupt, 0.00% steal

Memory: 500M total, 127M available, page size 4K

    JID    PID  PRI  State  FDs    MEM  HH:MM:SS    CPU   Name

   4132   4132  120    S    34  89932K  00:00:05   0.23%  comsh

    118    118  120    S    18  72360K  00:00:11   0.00%  comsh

    177    177  120    S    43  53128K  00:00:42   0.23%  xmlcfgd

    166    166  120    S    52  44188K  00:00:26   0.00%  qosd

     96     96  120    S    35  42536K  00:00:07   0.00%  pexd

    151    151  120    S   144  41024K  00:07:18   1.44%  stamgrd

    106    106  120    S    28  38424K  00:00:10   0.00%  evbd

    100    100  120    S    19  37652K  00:00:13   0.00%  ifmgr

    116    116  120    S    56  31840K  00:34:44   6.28%  apmgrd

    125    125  110    S    33  31568K  00:00:06   0.23%  laggd

Press q to quit, or press ? or h for help.

·          Enter q to quit interactive mode.

Table 13 Command output

Field

Description

xx processes; xx threads; xxx fds

Numbers of processes, threads, and open files.

JID

Job ID of a process, which never changes.

PID

ID of a process.

PRI

Priority level of a process.

State

State of a process:

·         R—Running.

·         S—Sleeping.

·         T—Traced or stopped.

·         D—Uninterruptible sleep.

·         Z—Zombie.

FDs

Number of open files for a process.

MEM

Memory usage. It displays 0 for a kernel thread.

HH:MM:SS

Running time of a process since last restart.

CPU

CPU usage of a process.

Name

Name of a process. If square brackets ([ ]) exist in a process name, the process is a kernel thread.

 

monitor thread

Use monitor thread to display thread statistics.

Syntax

In standalone mode:

monitor thread [ dumbtty ] [ iteration number ] [ slot slot-number [ cpu cpu-number ] ]

In IRF mode:

monitor thread [ dumbtty ] [ iteration number ] [ chassis chassis-number slot slot-number [ cpu cpu-number ] ]

Views

Any view

Predefined user roles

network-admin

Parameters

dumbtty: Specifies dumbtty mode. In this mode, the command displays all thread statistics in descending order of CPU usage without refreshing statistics. If you do not specify the keyword, the command displays statistics for top 10 processes in descending order of CPU usage in an interactive mode, and refreshes statistics every 5 seconds by default.

iteration number: Specifies the number of display times, in the range of 1 to 4294967295. If you specify the dumbtty keyword, the number argument is 1 by default. If neither the dumbtty keyword nor the number argument is specified, there is no limit to the display times.

slot slot-number: Specifies a card by its slot number. If you do not specify this option, the command displays thread statistics for the active MPU. (In standalone mode.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. If you do not specify a card, this command displays information for the global active MPU. (In IRF mode.)

cpu cpu-number: Specifies a CPU by its number.

Usage guidelines

If you do not specify the dumbtty keyword, the command displays thread statistics in an interactive mode. In this mode, the system automatically determines the number of displayed thread processes according to the screen size and does not display exceeding processes. You can also input interactive commands as shown in Table 14 to perform relevant operations.

Table 14 Interactive commands

Commands

Description

? or h

Displays help information that includes available interactive commands.

1

Displays one of the following items in turn when you press 1 again and again:

·         Values of parameters of physical CPUs.

·         Average values of parameters of all CPUs.

By default, the command displays the average values of parameters of all CPUs.

c

Sorts statistics by CPU usage in descending order. By default, the command sorts statistics by CPU usage in descending order.

d

Sets the interval for refreshing statistics. The default interval is 5 seconds.

k

Kills a process. Because the command can impact system operation, be cautious when you use it.

l

Refreshes the screen.

n

Changes the maximum number of threads displayed within a screen, in the range of 0 to 2147483647. The default value is 10. A value of 0 means no limit. Only threads not exceeding the screen size can be displayed.

q

Quits interactive mode.

t

Sorts statistics by the running time since the latest startup.

Moves sort field to the next left column.

Moves sort field to the next right column.

 

Examples

# Display thread statistics in dumbtty mode.

<Sysname> monitor thread dumbtty

425 processes; 567 threads

Thread states: 5 running, 562 sleeping, 0 stopped, 0 zombie

CPU0: 79.88% idle, 3.14% user, 11.32% kernel, 5.66% interrupt, 0.00% steal

CPU1: 73.43% idle, 4.43% user, 10.12% kernel, 12.02% interrupt, 0.00% steal

CPU2: 98.09% idle, 0.00% user, 1.91% kernel, 0.00% interrupt, 0.00% steal

CPU3: 0.00% idle, 0.00% user, 100.00% kernel, 0.00% interrupt, 0.00% steal

CPU4: 99.37% idle, 0.00% user, 0.63% kernel, 0.00% interrupt, 0.00% steal

CPU5: 0.00% idle, 0.00% user, 100.00% kernel, 0.00% interrupt, 0.00% steal

CPU6: 100.00% idle, 0.00% user, 0.00% kernel, 0.00% interrupt, 0.00% steal

CPU7: 100.00% idle, 0.00% user, 0.00% kernel, 0.00% interrupt, 0.00% steal

CPU8: 100.00% idle, 0.00% user, 0.00% kernel, 0.00% interrupt, 0.00% steal

CPU9: 100.00% idle, 0.00% user, 0.00% kernel, 0.00% interrupt, 0.00% steal

CPU10: 100.00% idle, 0.00% user, 0.00% kernel, 0.00% interrupt, 0.00% steal

CPU11: 100.00% idle, 0.00% user, 0.00% kernel, 0.00% interrupt, 0.00% steal

CPU12: 99.38% idle, 0.00% user, 0.62% kernel, 0.00% interrupt, 0.00% steal

CPU13: 99.37% idle, 0.00% user, 0.63% kernel, 0.00% interrupt, 0.00% steal

CPU14: 0.00% idle, 0.00% user, 100.00% kernel, 0.00% interrupt, 0.00% steal

CPU15: 0.00% idle, 0.00% user, 100.00% kernel, 0.00% interrupt, 0.00% steal

Memory: 7958M total, 5755M available, page size 4K

        JID        TID  LAST_CPU  PRI  State  HH:MM:SS   MAX    CPU    Name

        199        199      3     100    R    22:22:09     3   6.73%   [MgtPktT

        359        359      5     100    R    22:21:40     1   5.94%   [BFDP]

        360        360     14     100    R    22:21:40     1   5.94%   [BFDRX1]

        361        361     15     100    R    22:21:40     1   5.94%   [BFDRX2]

          1          1      0     120    S    00:01:14    69   1.21%   scmd

        347        347      4     119    D    01:38:48     2   1.02%   [IbcCntR

        371     111484      1     120    R    00:00:00     1   0.41%   diagd

          7          7      1     115    S    00:00:06     0   0.09%   [ksoftir

        256        256      2     116    D    00:19:58     1   0.09%   [bLK0]

        286        286      4     115    D    00:16:08     0   0.09%   [bRX_Cle

        207        207      0     115    D    00:00:11     0   0.04%   [DST3]

        253        253      2     130    D    00:11:06     1   0.04%   [bC.0]

        275        275      0     115    D    00:00:09     0   0.04%   [MARP]

        280        280      0     120    D    00:02:29     1   0.04%   [SCAR]

...

# Display thread statistics in interactive mode.

<Sysname> monitor thread

425 processes; 567 threads

Thread states: 6 running, 561 sleeping, 0 stopped, 0 zombie

CPU: 73.53% idle, 0.42% user, 26.00% kernel, 0.05% interrupt, 0.00% steal

Memory: 7958M total, 5755M available, page size 4K

        JID        TID  LAST_CPU  PRI  State  HH:MM:SS   MAX    CPU    Name

        199        199      3     100    R    22:23:41     3   6.18%   [MgtPktT

        359        359      5     100    R    22:23:12     1   6.18%   [BFDP]

        360        360     14     100    R    22:23:13     1   6.12%   [BFDRX1]

        361        361     15     100    R    22:23:13     1   6.12%   [BFDRX2]

        347        347      4     119    R    01:38:55     2   0.68%   [IbcCntR

        371     111673      1     120    R    00:00:00     1   0.47%   diagd

        253        253      2     130    D    00:11:07     1   0.10%   [bC.0]

        256        256      2     116    D    00:20:00     1   0.10%   [bLK0]

        286        286      4     115    D    00:16:09     0   0.10%   [bRX_Cle

        280        280      0     120    D    00:02:29     1   0.04%   [SCAR]

Press q to quit, or press ? or h for help.

The command refreshes the thread statistics at 5-second intervals.

·          Enter h or a question mark (?) to display help information as follows:

Help for interactive commands:

        ?,h      Show the available interactive commands

          c      Sort by the CPU field(default)

          d      Set the delay interval between screen updates

          k      Kill a job

          l      Refresh the screen

          n      Set the maximum number of threads to display

          q      Quit the interactive display

          t      Sort by run time of threads since last restart

          <      Move sort field to the next left column

          >      Move sort field to the next right column

Press any key to continue

·          Enter d, and then enter a number to modify the refresh interval. If you enter 3, statistics are refreshed every 3 seconds.

Enter the delay interval between screen updates (1~2147483647): 3

·          Enter n, and then enter a number to modify the maximum number of displayed threads. If you enter 5, statistics for five threads are displayed.

Enter the max number of threads to display(0 means unlimited): 5

425 processes; 567 threads

Thread states: 5 running, 562 sleeping, 0 stopped, 0 zombie

CPU: 74.18% idle, 0.20% user, 25.56% kernel, 0.06% interrupt, 0.00% steal

Memory: 7958M total, 5755M available, page size 4K

        JID        TID  LAST_CPU  PRI  State  HH:MM:SS   MAX    CPU    Name

        359        359      5     100    R    22:26:17     1   6.07%   [BFDP]

        199        199      3     100    R    22:26:46     3   6.06%   [MgtPktT

        360        360     14     100    R    22:26:17     1   6.06%   [BFDRX1]

        361        361     15     100    R    22:26:17     1   6.06%   [BFDRX2]

        347        347      4     119    S    01:39:08     2   0.47%   [IbcCntR

Press q to quit, or press ? or h for help.

·          Enter q to quit interactive mode.

Table 15 Command output

Field

Description

84 processes; 107 threads

Numbers of processes and threads.

JID

Job ID of a thread, which never changes.

TID

ID of a thread.

LAST_CPU

Number of the CPU on which the most recent thread scheduling occurs.

PRI

Priority level of a thread.

State

State of a thread:

·         R—Running.

·         S—Sleeping.

·         T—Traced or stopped.

·         D—Uninterruptible sleep.

·         Z—Zombie.

HH:MM:SS

Running time of a thread since last restart.

MAX

Longest time that a single thread scheduling occupies the CPU, in milliseconds.

CPU

CPU usage of a thread.

Name

Name of a thread. If square brackets ([ ]) exist in a thread name, the thread is a kernel thread.

 

process core

Use process core to enable core dump for a process and set the maximum number of core dump files or disable core dump for a process.

Syntax

In standalone mode:

process core { maxcore value | off } { job job-id | name process-name } [ slot slot-number [ cpu cpu-number ] ]

In IRF mode:

process core { maxcore value | off } { job job-id | name process-name } [ chassis chassis-number slot slot-number [ cpu cpu-number ] ]

Views

User view

Default

A process generates a core dump file for the first exception and does not generate any core dump files for subsequent exceptions.

Predefined user roles

network-admin

Parameters

off: Disables core dump.

maxcore value: Enables core dump and sets the maximum number of core dump files, in the range of 1 to 10.

name process-name: Specifies a process by its name, a case-insensitive string of 1 to 15 characters.

job job-id: Specifies a process by its job ID, in the range of 1 to 2147483647. The job ID does not change after the process restarts.

slot slot-number: Specifies a card by its slot number. If you do not specify this option, the command is applied to the active MPU. (In standalone mode.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. If you do not specify a card, the command is applied to the global active MPU. (In IRF mode.)

cpu cpu-number: Specifies a CPU by its number.

Usage guidelines

The command applies to all instances of a process.

The command enables the system to generate a core dump file each time the specified process crashes until the maximum number of core dump files is reached. A core dump file stores information about the process.

Core dump files consume storage resources. Enable core dump only for processes that might have problems

Examples

# Disable core dump for process routed.

<Sysname> process core off name routed

# Enable core dump for process routed and set the maximum number of core dump files to 5.

<Sysname> process core maxcore 5 name routed

Related commands

display exception context

exception filepath

reset exception context

Use reset exception context to clear context information for process exceptions.

Syntax

In standalone mode:

reset exception context [ slot slot-number [ cpu cpu-number ] ]

In IRF mode:

reset exception context [ chassis chassis-number slot slot-number [ cpu cpu-number ] ]

Views

User view

Predefined user roles

network-admin

Parameters

slot slot-number: Specifies an MPU by its slot number. If you do not specify this option, the command clears context information for process exceptions on the active MPU. (In standalone mode.)

chassis chassis-number slot slot-number: Specifies an MPU on an IRF member device. If you do not specify this option, the command clears context information for process exceptions on the global active MPU. (In IRF mode.)

cpu cpu-number: Specifies a CPU by its number.

Examples

# Clear context information for exceptions.

<Sysname> reset exception context

Related commands

display exception context

reset kernel deadloop

Use reset kernel deadloop to clear kernel thread deadloop information.

Syntax

In standalone mode:

reset kernel deadloop [ slot slot-number [ cpu cpu-number ] ]

In IRF mode:

reset kernel deadloop [ chassis chassis-number slot slot-number [ cpu cpu-number ] ]

Views

User view

Predefined user roles

network-admin

Parameters

slot slot-number: Specifies an MPU by its slot number. If you do not specify this option, the command clears kernel thread deadloop information for the active MPU. (In standalone mode.)

chassis chassis-number slot slot-number: Specifies an MPU on an IRF member device. If you do not specify this option, the command clears kernel thread deadloop information for the global active MPU. (In IRF mode.)

cpu cpu-number: Specifies a CPU by its number.

Examples

# Clear kernel thread deadloop information.

<Sysname> reset kernel deadloop

Related commands

display kernel deadloop

reset kernel exception

Use reset kernel exception to clear kernel thread exception information.

Syntax

In standalone mode:

reset kernel exception [ slot slot-number [ cpu cpu-number ] ]

In IRF mode:

reset kernel exception [ chassis chassis-number slot slot-number [ cpu cpu-number ] ]

Views

User view

Predefined user roles

network-admin

Parameters

slot slot-number: Specifies an MPU by its slot number. If you do not specify this option, the command clears kernel thread exception information for the active MPU. (In standalone mode.)

chassis chassis-number slot slot-number: Specifies an MPU on an IRF member device. If you do not specify this option, the command clears kernel thread exception information for the global active MPU. (In IRF mode.)

cpu cpu-number: Specifies a CPU by its number.

Examples

# Clear kernel thread exception information.

<Sysname> reset kernel exception

Related commands

display kernel exception

reset kernel reboot

Use reset kernel reboot to clear kernel thread reboot information.

Syntax

In standalone mode:

reset kernel reboot [ slot slot-number [ cpu cpu-number ] ]

In IRF mode:

reset kernel reboot [ chassis chassis-number slot slot-number [ cpu cpu-number ] ]

Views

User view

Predefined user roles

network-admin

Parameters

slot slot-number: Specifies an MPU by its slot number. If you do not specify this option, the command clears kernel thread reboot information for the active MPU. (In standalone mode.)

chassis chassis-number slot slot-number: Specifies an MPU on an IRF member device. If you do not specify this option, the command clears kernel thread reboot information for the global active MPU. (In IRF mode.)

cpu cpu-number: Specifies a CPU by its number.

Examples

# Clear kernel thread reboot information.

<Sysname> reset kernel reboot

Related commands

display kernel reboot

reset kernel starvation

Use reset kernel starvation to clear kernel thread starvation information.

Syntax

In standalone mode:

reset kernel starvation [ slot slot-number [ cpu cpu-number ] ]

In IRF mode:

reset kernel starvation [ chassis chassis-number slot slot-number [ cpu cpu-number ] ]

Views

User view

Predefined user roles

network-admin

Parameters

slot slot-number: Specifies an MPU by its slot number. If you do not specify this option, the command clears kernel thread starvation information for the active MPU. (In standalone mode.)

chassis chassis-number slot slot-number: Specifies an MPU on an IRF member device. If you do not specify this option, the command clears kernel thread starvation information for the global active MPU. (In IRF mode.)

cpu cpu-number: Specifies a CPU by its number.

Examples

# Clear kernel thread starvation information.

<Sysname> reset kernel starvation

Related commands

display kernel starvation

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become a Partner
  • Partner Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网