show memory
Displays the memory usage for system tasks, transmission control protocol, and stack
units.
Parameters
Modes
User EXEC mode
The
show memory task command displays the following information:
| Output field | Description |
|---|---|
| Task | The name of the task. |
| Alloc | The amount memory allocated for the task. |
| Free | The amount of free memory available. |
| Used | The amount of memory used by the specific task. |
| TCB usage | The availability of Transmission Control Block for the TCP connection. |
| TCP QUEUE BUFFER usage | The availability of the Queue buffer used to hold the TCP messages that need to be sent. |
| TCP SEND BUFFER usage | The availability of buffers which will be used to send the TCP packets from the device. |
| TCP RECEIVE BUFFER usage | The availability of buffers which will be used to receive the TCP packets to the device. |
| TCP OUT OF SEQUENCE BUFFER usage | The availability of re-sequence buffer used for the TCP connection. |
Examples
The following example command displays the memory usage per task.
Task Memory Usage Info ------------------------------ Last clear : NA ----------------------------------------------------------------- Task Alloc Free Used ----------------------------------------------------------------- TimerTsk 144 0 144 FlashTsk 5552 0 5552 MainTsk 33153780 3411177 29742603 keygen 1468 0 1468 itc 9188 0 9188 bcmCNTR.0 17820 0 17820 bcmL2MOD.0 144 0 144 scp 232815 27166 205649 appl 676257682 637313495 38944187 snms 127713 52104 75609 rtm 9476869 17272 9459597 rtm6 321341 17272 304069 rip 574422 8636 565786 bgp 4048555 17272 4031283 ospf 2937465 8636 2928829 openflow_ofm 431242 14621 416621 openflow_opm 433909 17272 416637 mcast_fwd 1776859 17272 1759587 mcast 2614790 31233 2583557 msdp 221375 17272 204103 ripng 96181 8636 87545 ospf6 1989857 8636 1981221 mcast6 794175 22597 771578 ipsec 208381 8636 199745 dhcp6 134907 8636 126271 snmp 57140 17272 39868 rmon 74775 17272 57503 web 56915 17344 39571 acl 1291591 28243 1263348 flexauth 277607 8636 268971 ntp 56835 17272 39563 rconsole 48215 8636 39579 console 2059410 1476779 582631 ospf_msg_task 56035 17272 38763 auxTsk 4572 0 4572 bcmLINK.0 37152 37152 0 Total Memory Used: 97213162
The following example displays the TCP memory usage information.
device# show memory tcp TCP MEMORY USAGE TCB usage: total=73140, free=71300 TCP QUEUE BUFFER usage: total=19635, free=19635 TCP SEND BUFFER usage: total=192532, free=192532 TCP RECEIVE BUFFER usage: total=192532, free=192532 TCP OUT OF SEQUENCE BUFFER usage: total=25074, free=25074
The following example displays memory usage for stack unit 1.
device# show memory unit 1 Stack unit 1: Total DRAM: 268435456 bytes Dynamic memory: 3781353472 bytes total, 3563307008 bytes free, 5% used
The followind example displays information about shared memory.
device> show memory shmdb Stack unit 1: Layout :total_bytes=4194304 meta_data_bytes=286720 data_bytes=3907584 ObjKey :current_index=67 max_index=4000 used=1.67% ObjContext :current_index=67 max_index=4000 used=1.67% RegPID :current_index=3 max_index=1024 used=0.29% DataRegion :used_bytes=278940 free_bytes=3628644 used=7.13% All allocation in shmdb is fine.
History