Process and Memory Management Commands on Cisco IOS-XR Software This chapter describes the commands used to manage processes and memory on the Cisco IOS-XR software.
Process and Memory Management Commands on Cisco IOS-XR Software monitor processes monitor processes To display auto-updating statistics on processes in a full-screen mode, use the monitor processes command in EXEC mode. monitor processes [dumbtty] [location node-id] Syntax Description dumbtty (Optional) Displays the output of the command as if on a dumb terminal (the screen is not refreshed). location node-id (Optional) Displays the output of the command from the designated node.
Process and Memory Management Commands on Cisco IOS-XR Software monitor processes Table 14 Interactive Display Commands for the monitor processes Command (continued) Command Description Examples m Sorts display by memory used. c Sorts display by number of open channels. f Sorts display by number of open files. monitor processes RP/0/RP1/CPU0:router# monitor processes 195 processes; 628 threads; 3300 channels, 4579 fds CPU states: 47.6% idle, 1.2% user, 51.
Process and Memory Management Commands on Cisco IOS-XR Software monitor processes 180 304 55 70 153 303 121 15 3 11 22 2 3 3 82 14 24 91 35 25 10 42 29 14 8 18 34 8 6 7 5 3 4 5 2 5M 304K 16M 1M 120K 292K 564K 0:00:26 0:00:02 0:00:32 0:00:31 0:00:01 0:00:00 0:00:06 0.10% 0.06% 0.03% 0.03% 0.03% 0.03% 0.03% gsp statsd_manager eth_server qnet dsc statsd_server bcm_process 195 processes; 628 threads; 3409 channels, 4601 fds CPU states: 46.5% idle, 0.5% user, 52.
Process and Memory Management Commands on Cisco IOS-XR Software monitor threads monitor threads To display auto-updating statistics on threads in a full-screen mode, use the monitor threads command in EXEC mode. monitor threads [dumbtty] [iteration number] [location node-id] Syntax Description dumbtty (Optional) Displays the output of the command as if on a dumb terminal (the screen is not refreshed).
Process and Memory Management Commands on Cisco IOS-XR Software monitor threads Table 15 Interactive Display Commands for the monitor threads Command (continued) Command Description Examples d Changes the delay interval between updates. l Refreshes the screen. monitor threads RP/0/RP1/CPU0:router# monitor threads 195 processes; 628 threads; CPU states: 98.2% idle, 0.9% user, 0.
Process and Memory Management Commands on Cisco IOS-XR Software monitor threads 1 553049 58 1 69 1 159 160 157 160 6 1 3 3 1 5 2 1 1 9 10 10 10 10 10 10 10 10 10 10 Run Rply Rcv Rcv Rcv Rcv Rcv Rcv NSlp Intr 0:00:10 0:00:00 0:00:24 0:00:21 0:00:20 0:00:20 0:00:05 0:00:05 0:00:04 0:00:04 10.92% 4.20% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.
Process and Memory Management Commands on Cisco IOS-XR Software process process To start, terminate, or restart a process, use the process command in EXEC mode. process {blocked | kill | restart | start} [executable-name | job-id] [location {node-id | all}] Syntax Description blocked Collects debug information. The node will be restarted if the mandatory reboot flag is set. kill Kills (stops) a process. The process will not be restarted even if considered “mandatory”. restart Restarts a process.
Process and Memory Management Commands on Cisco IOS-XR Software process process kill The process kill command will shut down (terminate) the specified process and copies associated with the specified process. The process is not restarted, even if considered “mandatory.” Use the show processes command to display a list of executable processes running on the system. Caution Killing a process can result in an RP failover, system failure or both.
Process and Memory Management Commands on Cisco IOS-XR Software process core process core To change the core dump options for a process, use the process core command in EXEC mode. process {executable-name | job-id} core {mainmem | mainmem-sharedmem | mainmem-text | mainmem-text-sharedmem | sharedmem | copy | off} [maxcore value] [location node-id] Syntax Description executable-name Executable name of the process for which you want to change core dump options.
Process and Memory Management Commands on Cisco IOS-XR Software process core Specifying the process name (executable-name) changes the core dumping option for all instances of the process. Specifying a job-id value changes the core dumping option for a single instance of a running process.
Process and Memory Management Commands on Cisco IOS-XR Software process mandatory process mandatory To set the mandatory reboot options for a process, use the process mandatory command in EXEC mode.
Process and Memory Management Commands on Cisco IOS-XR Software process mandatory • Examples If the process is not mandatory and cannot be restarted, it will stay down and the node will not reboot.
Process and Memory Management Commands on Cisco IOS-XR Software show memory show memory To display the available physical memory on the networking device and the memory usage of processes on the networking device, use the show memory command in EXEC mode. show memory [job-id | location node-id | summary] Syntax Descriptionl job-id (Optional) Displays the memory available and memory usage information for only the process associated with this job identifier.
Process and Memory Management Commands on Cisco IOS-XR Software show memory 48207000 48208000 4096 4096 ANON FIXED ELF SYSRAM ANON FIXED ELF SYSRAM The following is sample output from the show memory command entered with the job ID 7 to show the memory usage information for the process associated with this job identifier: RP/0/RP1/CPU0:router# show memory 7 Physical Memory: 256M total Application Memory : 249M (217M available) Image: 2M (bootram: 2M) Reserved: 4M, IOMem: 0, flashfsys: 0 sbin/pipe: jid 7
Process and Memory Management Commands on Cisco IOS-XR Software show memory heap show memory heap To display information about the heap space for a process, use the show memory heap command in EXEC mode. show memory heap [allocated] [dllname] [failure] [free] [summary] job-id Syntax Description allocated (Optional) Displays a list of all allocated heap blocks. dllname (Optional) Displays heaps with DLL names. failure (Optional) Displays a summary of heap failures.
Process and Memory Management Commands on Cisco IOS-XR Software show memory heap The following is sample output from the show memory heap command, specifying the allocated and free keywords and the job identifier: RP/0/RP1/CPU0:router# show memory heap allocated free 5 Block Allocated List Usize Size Address Name/ID/Caller 0x000008c1 0x000008cc 0x08029e7c 0x7c018a10 0x000004fc 0x00000504 0x08029554[0x18 0x30-byte objects: 0x1 allocd, 0x17 free] caller(id)/usize/addr: 0x7c019278/0x28/0x8029574 0x000004f0
Process and Memory Management Commands on Cisco IOS-XR Software show memory heap blocks: 2, blknodes: 96 Band size 24, element per block 34, nbuint 1 Completely free blocks: 0 Block alloced: 1, Block freed: 0 allocs: 243, frees: 223 allocmem: 480, freemem: 336, overhead: 168 blocks: 1, blknodes: 34 Band size 32, element per block 26, nbuint 1 Completely free blocks: 0 Block alloced: 1, Block freed: 0 allocs: 107, frees: 97 allocmem: 320, freemem: 512, overhead: 136 blocks: 1, blknodes: 26 Band size 40, ele
Process and Memory Management Commands on Cisco IOS-XR Software show processes show processes To display information about active processes, use the show processes command in EXEC mode.
Process and Memory Management Commands on Cisco IOS-XR Software show processes The show processes command displays general information on the active processes. To view more detailed information for a process, include the job-id or process-name. You can also use the monitor command to determine the top users of the CPU.
Process and Memory Management Commands on Cisco IOS-XR Software show processes The show processes memory command displays details of memory usage for a given process or for all processes, as shown in the following example: RP/0/RP1/CPU0:router# show processes memory JID Text 55 28672 164 143360 317 167936 122 512000 265 57344 254 40960 63 8192 314 4096 341 495616 259 53248 189 32768 69 77824 348 323584 347 323584 346 323584 345 323584 344 323584 261 323584 --More-- Data 4096 4096 4096 4096 4096 4096 4096
Process and Memory Management Commands on Cisco IOS-XR Software show processes 65545 pkgfs 65546 ksh 66 pipe 56 devf-scrp 61 mqueue 64 pci_bus_mgr 65 pcmciad 65552 cardmgrd 70 syslogd_helper 63 nvram 55 eth_server --More-- 1 65546 1 1 1 1 1 1 1 1 1 65545 65546 66 56 61 64 65 65 70 63 55 67 52 71 71 71 71 71 65 71 71 71 0 0 52 61 66 56 64 0 65 70 63 0 0 0 0 0 0 65559 0 0 0 0 The following is partial sample output from the show processes files command: RP/0/RP1/CPU0:router# show processes files JID 1 7
Process and Memory Management Commands on Cisco IOS-XR Software show processes 999.0 FINAL 177.738 0.000% 172 9.371 fm_script_dir Started Level JID Inst Ready Process ------- ----- -------- ---- ------- ------------------------------0.000 0.5 72 1 0.000 wd-mbi 0.000 1.0 53 1 0.000 dllmgr 0.000 2.0 67 1 0.000 pkgfs 0.000 3.0 52 1 0.000 devc-conaux 0.000 3.0 68 1 0.000 devc-pty 0.000 6.0 66 1 0.000 pipe 0.000 8.0 61 1 0.000 mqueue 0.000 16.0 56 1 0.000 devf-scrp 0.000 20.0 64 1 0.
Process and Memory Management Commands on Cisco IOS-XR Software show processes 01/01 00:00:03.211 1 read_init_startup_list: t 01/01 00:00:03.213 1 read_init_startup_list: it pcb->name=devc-conaux 01/01 00:00:03.213 1 read_init_startup_list: 01/01 00:00:03.215 1 read_init_startup_list: b->name=dllmgr 01/01 00:00:03.215 1 read_init_startup_list: --More-- Opening /pkg/init.d/devc_conaux.ini finished /pkg/init.d/devc_conaux.in Opening /pkg/init.d/dllmgr.init finished /pkg/init.d/dllmgr.