show cpu histogram
Displays the CPU usage histogram for the device, and optionally, clears the hold time
and wait time.
Parameters
Modes
User EXEC mode
Usage Guidelines
Use this command to display the CPU hold time and wait time usage histogram.
The
show cpu histogram command displays the following information:
| Output field | Description |
|---|---|
| No. of buckets | The CPU usage histogram is presented in the form of buckets. Usage is divided into different intervals called buckets. |
| Bucket granularity | The time interval at which the CPU usage information is collected for each bucket. |
| Last clear | The datestamp when the task was cleared last. |
Examples
The following command displays the CPU hold time usage histogram.
device# show cpu histogram holdtime
CPU Histogram Info
------------------
No. of Buckets : 11
Bucket Granularity : 50 msec
No. of Tasks : 14
Last clear : Jan 1 18:11:39.414
----------------------------------------------------------------------------------------------------
Task | Bkt | Bkt | Total | Last | Max | Max Hold at |
Name | Num | Time(ms)| Count | HoldTime(ms)| HoldTime(ms)|
|
----------------------------------------------------------------------------------------------------
appl 1 000-050 758226345 9.521 46.543
Jan 1 18:50:16.857
appl 2 050-100 4 50.967 52.324
Jan 1 18:46:00.638
rtm 1 000-050 44197 0.008 0.283
Jan 1 18:33:37.651
rtm6 1 000-050 44197 0.005 0.415
Jan 1 18:18:31.476
ospf 1 000-050 44197 0.004 1.177
Jan 1 19:02:29.746
openflow_opm 1 000-050 9118 0.007 0.239
Jan 1 18:15:01.952
mcast 1 000-050 90565 0.004 0.143
Jan 1 18:29:04.325
msdp 1 000-050 4425 0.007 0.201
Jan 1 19:15:34.419
ospf6 1 000-050 44197 0.007 0.257
Jan 1 18:44:58.033
mcast6 1 000-050 90565 0.004 0.181
Jan 1 18:36:38.346
rmon 1 000-050 4425 0.028 5.787
Jan 1 19:24:47.464
web 1 000-050 88335 0.010 0.368
Jan 1 18:29:48.222
acl 1 000-050 2360 0.015 0.177
Jan 1 18:22:40.049
ntp 1 000-050 4425 0.007 0.011
Jan 1 18:11:40.713
console 1 000-050 88337 0.008 35.227
Jan 1 18:11:39.498
--------------------------------------------------------------------------------
--------------------
The following example displays the CPU wait time usage histogram.
device# show cpu histogram waittime
CPU Histogram Info
------------------
No. of Buckets : 11
Bucket Granularity : 50 msec
No. of Tasks : 14
Last clear : Jan 1 18:11:39.414
----------------------------------------------------------------------------------------------------
Task | Bkt | Bkt | Total | Last | Max | Max Wait at |
Name | Num | Time(ms)| Count | WaitTime(ms)| WaitTime(ms)|
|
----------------------------------------------------------------------------------------------------
rtm 1 000-050 44876 0.008 0.283
Jan 1 18:50:16.857
rtm6 1 000-050 44876 0.005 0.415
Jan 1 18:50:16.857
ospf 1 000-050 44876 0.065 1.177
Jan 1 18:50:16.857
openflow_opm 1 000-050 9258 0.006 0.239
Jan 1 19:07:56.599
mcast 1 000-050 91957 0.005 0.143
Jan 1 18:50:16.857
msdp 1 000-050 4493 0.008 0.201
Jan 1 18:28:40.956
ospf6 1 000-050 44876 0.007 0.257
Jan 1 18:50:16.857
mcast6 1 000-050 91957 0.004 0.181
Jan 1 18:50:16.857
rmon 1 000-050 4493 0.030 5.787
Jan 1 18:28:40.956
web 1 000-050 89691 0.009 0.368
Jan 1 18:50:16.857
acl 1 000-050 2397 0.018 0.177
Jan 1 18:33:17.172
ntp 1 000-050 4493 0.007 0.011
Jan 1 18:28:40.956
console 1 000-050 89693 0.010 35.227
Jan 1 18:50:16.857
--------------------------------------------------------------------------------
The following example clears the CPU usage histogram information.
device# show cpu histogram clear
CPU Histogram Info
------------------
No. of Buckets : 11
Bucket Granularity : 50 msec
No. of Tasks : 14
Last clear : Jan 1 18:11:39.414
----------------------------------------------------------------------------------------------------
Task | Bkt | Bkt | Total | Last | Max | Max Hold at |
Name | Num | Time(ms)| Count | HoldTime(ms)| HoldTime(ms)|
|
----------------------------------------------------------------------------------------------------
appl 1 000-050 793262215 0.003 46.543
Jan 1 18:50:16.857
appl 2 050-100 4 50.967 52.324
Jan 1 18:46:00.638
rtm 1 000-050 46242 0.009 0.283
Jan 1 18:33:37.651
rtm6 1 000-050 46242 0.005 0.415
Jan 1 18:18:31.476
ospf 1 000-050 46242 0.006 1.177
Jan 1 19:02:29.746
openflow_opm 1 000-050 9540 0.007 0.239
Jan 1 18:15:01.952
mcast 1 000-050 94771 0.003 0.143
Jan 1 18:29:04.325
msdp 1 000-050 4629 0.008 0.201
Jan 1 19:15:34.419
ospf6 1 000-050 46242 0.006 0.257
Jan 1 18:44:58.033
mcast6 1 000-050 94771 0.003 0.181
Jan 1 18:36:38.346
rmon 1 000-050 4629 0.137 5.787
Jan 1 19:24:47.464
web 1 000-050 92421 0.007 0.368
Jan 1 18:29:48.222
acl 1 000-050 2470 0.006 0.177
Jan 1 18:22:40.049
ntp 1 000-050 4629 0.006 0.011
Jan 1 18:11:40.713
console 1 000-050 92423 0.008 35.227
Jan 1 18:11:39.498
----------------------------------------------------------------------------------------------------
CPU Histogram Info
------------------
No. of Buckets : 11
Bucket Granularity : 50 msec
No. of Tasks : 14
Last clear : Jan 1 18:11:39.414
----------------------------------------------------------------------------------------------------
Task | Bkt | Bkt | Total | Last | Max | Max Wait at |
Name | Num | Time(ms)| Count | WaitTime(ms)| WaitTime(ms)|
|
----------------------------------------------------------------------------------------------------
rtm 1 000-050 46242 0.009 0.283
Jan 1 18:50:16.857
rtm6 1 000-050 46242 0.005 0.415
Jan 1 18:50:16.857
ospf 1 000-050 46242 0.006 1.177
Jan 1 18:50:16.857
openflow_opm 1 000-050 9540 0.007 0.239
Jan 1 19:07:56.599
mcast 1 000-050 94771 0.003 0.143
Jan 1 18:50:16.857
msdp 1 000-050 4629 0.008 0.201
Jan 1 18:28:40.956
ospf6 1 000-050 46242 0.006 0.257
Jan 1 18:50:16.857
mcast6 1 000-050 94771 0.003 0.181
Jan 1 18:50:16.857
rmon 1 000-050 4629 0.137 5.787
Jan 1 18:28:40.956
web 1 000-050 92421 0.007 0.368
Jan 1 18:50:16.857
acl 1 000-050 2470 0.006 0.177
Jan 1 19:28:22.095
ntp 1 000-050 4629 0.006 0.011
Jan 1 18:28:40.956
console 1 000-050 92423 0.008 35.227
Jan 1 18:50:16.857
----------------------------------------------------------------------------------------------------
CPU Histogram data cleared
History
| Release version | Command history |
|---|---|
| 08.0.30 | This command was introduced. |