![]() |
Table Of Contents
Process Interrupt Mask Profiler Enhancement
Information About the Process Interrupt Mask Profiler Enhancement
Process Interrupt Mask Profiler Detail Collection
How to Use the Process Interrupt Mask Profiler
Configuring the Process Interrupt Mask Profiler
Configuration Example for the Process Interrupt Mask Profiler Enhancment
Displaying Process Interrupt Mask Profiling Details
clear processes interrupt mask detail
scheduler interrupt mask profile
show processes interrupt mask buffer
show processes interrupt mask detail
Process Interrupt Mask Profiler Enhancement
The Process Interrupt Mask Profiler Enhancement feature collects information about processes that have masked interrupts. This feature is useful in identifying how many times a process has masked interrupts and how much time a process has spent in an interrupt masked state since the profiling was enabled.
History for the Process Interrupt Mask Profiler Enhancement Feature
Contents
•
Information About the Process Interrupt Mask Profiler Enhancement
•
How to Use the Process Interrupt Mask Profiler
Information About the Process Interrupt Mask Profiler Enhancement
To configure the Process Interrupt Mask Profiler Enhancement feature, you should understand the following concept:
•
Process Interrupt Mask Profiler Detail Collection
Process Interrupt Mask Profiler Detail Collection
The Process Interrupt Mask Profiler Enhancement feature improves the diagnostic ability of the Process Interrupt Mask Profiler tool by including the collection of the following details:
•
The total amount of time a process has masked interrupts (either by calling disable_interrupts or raise_interrupt_level, or emt_call) since the Process Interrupt Mask Profiler has been enabled.
•
The number of times a process has masked interrupts (either by calling disable_interrupts or raise_interrupt_level, or emt_call) since the Process Interrupt Mask Profiler has been enabled.
In addition, the Process Interrupt Mask Profiler feature adds ability to account for the time spent in emt_call.
How to Use the Process Interrupt Mask Profiler
This section contains the following tasks:
•
Configuring the Process Interrupt Mask Profiler
•
Displaying Process Interrupt Mask Profiling Details
Configuring the Process Interrupt Mask Profiler
Perform this task to configure the Process Interrupt Mask Profiler Enhancement feature.
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
scheduler interrupt mask time threshold-time
4.
scheduler interrupt mask size buffersize
5.
scheduler interrupt mask profile
6.
exit
DETAILED STEPS
Configuration Example for the Process Interrupt Mask Profiler Enhancment
The following example show enabling the process interrupt mask profiler, setting the amount of time a process can run with interrupts masked to 100 microseconds, and the maximum number of entries in the interrupt mask buffer to 100.
Router(config)# scheduler interrupt mask time 100Router(config)# scheduler interrupt mask size 100Router(config)# scheduler interrupt mask profile
Displaying Process Interrupt Mask Profiling Details
Perform this task to display the contents of the interrupt mask buffer.
SUMMARY STEPS
1.
enable
2.
show processes interrupt mask buffer
3.
show processes interrupt mask detail [pid]
DETAILED STEPS
Example
To display the contents of the interrupt mask buffer, use the following command:
Router# show processes interrupt mask bufferAllowable interrupt mask time : 50 micro secondsAllowable number of half pipeline ticks for this platform : 5000Buffer Size : 50 entriesNETS Disable : 3TTY Disable : 4ALL Disable : 4emt_call : 11disable_interrupts : 12PID Level Time Spent(us) Count Stack Trace3 11 60 1 0x608C3C14 0x60894748 0x6089437C 0x608943AC 0x609CEC88 0x609CECFC 0x609C85243 11 322 1 0x608C3C14 0x608943BC 0x609CEC88 0x609CECFC 0x609C8524 0x60867C28 0x607C70B03 4 147 1 0x6078AED4 0x6078BE94 0x6078C750 0x6078C8D4 0x607E27F0 0x607E27C0 0x607E50B0To display information about total amount of time and number of times interrupts have been masked by all processes, use the following command:
Router# show processes interrupt mask detailPID Time Spent(us) Count Process Name2 6388 1791 Load Meter3 7957 16831 Exec5 6710 2813 Check heapsTo display total time (accumulative) and number of times interrupts have been masked by aprocess with the PID 2, use the following command:
Router# show processes interrupt mask detail 2Process ID : 2Process Name : Load MeterTotal Interrupt Masked Time : 6586 (us)Total Interrupt Masked Count : 1845Additional References
The following sections provide references related to the Process Interrupt Mask Profiler Enhancement feature.
Related Documents
Related Topic Document TitleBasic router configuration information
Cisco IOS Configuration Fundamentals Configuration Guide, Release 12.4
Standards
MIBs
MIB MIBs LinkNone
To locate and download MIBs for selected platforms, Cisco IOS releases, and feature sets, use Cisco MIB Locator found at the following URL:
RFCs
Technical Assistance
Command Reference
This section documents the following new commands only.
•
clear processes interrupt mask detail
•
scheduler interrupt mask profile
•
scheduler interrupt mask size
•
scheduler interrupt mask time
•
show processes interrupt mask buffer
•
show processes interrupt mask detail
clear processes interrupt mask detail
To clear interrupt mask details for all processes in the interrupt mask buffer, use the clear processes interrupt mask detail command in privileged EXEC mode.
clear processes interrupt mask detail
Syntax Description
This command has no arguments or keywords.
Command Modes
Privileged EXEC
Command History
Examples
The following example how to the clear interrupt mask details for all processes:
Router# clear processes interrupt mask detail
Related Commands
scheduler interrupt mask profile
To start interrupt mask profiling for all processes running on the system, use the scheduler interrupt mask profile command in global configuration mode. To stop interrupt mask profiling, use the no form of this command.
scheduler interrupt mask profile
no scheduler interrupt mask profile
Syntax Description
This command has no arguments or keywords.
Defaults
Interrupt mask profiling is disabled by default.
Command Modes
Global configuration
Command History
Usage Guidelines
This command enables the collection of details regarding the total amount of time a process has masked interrupts since the interrupt mask profiler was enabled.
Examples
The following example shows how to enable interrupt mask profiling:
Router(config)# scheduler interrupt mask profileRelated Commands
scheduler interrupt mask size
To configure the maximum number of entries that can exist in the interrupt mask buffer, use the scheduler interrupt mask size command in global configuration mode. To reset the maximum number of entries that can exist in the interrupt mask buffer to the default, use the no form of this command.
scheduler interrupt mask size buffersize
no scheduler interrupt mask size
Syntax Description
Defaults
The default buffer size is 50 entries.
Command Modes
Global configuration
Command History
Examples
The following example shows how to configure 100 entries the maximum number of entries that can exist in the interrupt mask buffer:
Router(config)# scheduler interrupt mask size 100Related Commands
scheduler interrupt mask time
To configure the maximum time that a process can run with interrupts masked before another entry is created in the interrupt mask buffer, use the scheduler interrupt mask time command in global configuration mode. To reset the threshold time to the default, use the no form of this command.
scheduler interrupt mask time threshold-time
no scheduler interrupt mask time
Syntax Description
threshold-time
Specifies the maximum amount of time a process can be in interrupt masked state without creating an entry in the interrupt mask buffer.
Defaults
The default threshold time value is 50 microseconds.
Command Modes
Global configuration
Command History
Usage Guidelines
This command configures the maximum time allowed that a process can run with interrupts masked.
Examples
The following shows how to configure 100 microseconds as the maximum time a process can run with interrupts masked before another entry is created in the interrupt mask buffer:
Router(config)# scheduler interrupt mask time 100Related Commands
show processes interrupt mask buffer
To display information in the interrupt mask buffer, use the show processes interrupt mask buffer command in privileged EXEC mode.
show processes interrupt mask buffer
buffer
Displays stack trace and information about the places where interrupts have been masked more than the configured threshold time.
Command Modes
Privileged EXEC
Command History
Examples
The following is sample output from the show processes interrupt mask buffer command. The output displays stack trace and relevant information about the places where interrupts have been masked more than the configured threshold time:
Router# show processes interrupt mask bufferAllowable interrupt mask time : 50 micro secondsAllowable number of half pipeline ticks for this platform : 5000Buffer Size : 50 entriesNETS Disable : 3TTY Disable : 4ALL Disable : 4emt_call : 11disable_interrupts : 12PID Level Time Spent(us) Count Stack Trace3 11 360 1 0x608C3C14 0x60894748 0x6089437C 0x608943AC 0x609CEC88 0x609CECFC 0x609C85243 11 322 1 0x608C3C14 0x608943BC 0x609CEC88 0x609CECFC 0x609C8524 0x60867C28 0x607C70B03 4 147 1 0x6078AED4 0x6078BE94 0x6078C750 0x6078C8D4 0x607E27F0 0x607E27C0 0x607E50B0Related Commands
show processes interrupt mask detail
To display information about interrupt masking, use the show processes interrupt mask detail command in privileged EXEC mode.
show processes interrupt mask detail [pid]
Syntax Description
Command Modes
Privileged EXEC
Command History
Examples
The following is sample output from the show processes interrupt mask detail command. the output displays information about the total amount of time and number of times interrupts have been masked by all processes:
Router# show processes interrupt mask detailPID Time Spent(us) Count Process Name2 6388 1791 Load Meter3 7957 16831 Exec5 6710 2813 Check heapsThe following is sample output from the show processes interrupt mask detail command with the process ID specified. The output displays the total time (accumulative), number of times interrupts have been masked by a specific process:
Router# show processes interrupt mask detail 2Process ID : 2Process Name : Load MeterTotal Interrupt Masked Time : 6586 (us)Total Interrupt Masked Count : 1845Related Commands
© 2005 Cisco Systems, Inc. All rights reserved.