Viewing System Resource Information
This section explains how to access system resource statistics.
System Memory
Display the memory statistics for the system by using the show memory command. It displays the number of bytes, the number of blocks, the average block size in both free and allocated memory, and the maximum block size of free memory in table form. In addition, it displays the number of blocks currently allocated, the average allocated block size, and the maximum number of bytes allocated at any given time (peak use, for example).
ORACLE# show memory status bytes blocks avg block max block -------- ---------- --------- ---------- ---------- current free 826292736 179 4616160 825573472 alloc 211642160 3398 62284 - internal 448 2 224 - cumulative alloc 212286912 5105 41584 - peak alloc 211643792 - - - Memory Errors: Links Repaired 0 Padding Modified 0 Nodes Removed 0 Removal Failures 0 Fatal Errors 0
Listing Memory Subcommands
You can access a list of available show memory subcommands.
ORACLE# show memory ? application application memory usage statistics l2 layer 2 cache status l3 layer 3 cache status usage memory usage statistics
Application Object Allocation and Use
Display information about application object allocations and usage by displaying counters associated with the show memory application command.
ORACLE# show memory application 14:06:47-153 Memory Statistics -- Period -- -------- Lifetime -------- Active High Total Total PerMax High Processes 27 27 0 29 28 27 Messages 3 4 12 23768 298 27 Services 133 133 0 142 139 134 Sockets 120 120 0 129 126 121 Buffers 338 338 0 350 325 338 Transactions 0 0 0 22 11 11 Timed Objects 16164 16164 0 16486 16218 16176 TOQ Entries 25 25 1893 4178055 1334 37 SIP Messages 0 0 0 0 0 0 MBC Messages 0 0 0 0 0 0 Pipe Messages 30 30 0 30 30 30 Message Blocks 0 0 0 0 0 0 Mutexes 18492 18493 0 43732 18660 18494 Mutex Locks 68 73 186539 1096480k 117493 78 Mutex Waits 0 3 3 117461 173 9 Mutex Timeouts - - 0 0 0 - Rcr Mutex-Timeouts - - 0 499 166 -
The following table lists and defines the counters of the show memory application command.
show memory application Subcommand | Description |
---|---|
Processes | Process object statistics |
Message | Message class and all derived classes statistics |
Services | Service class and all derived classes statistics |
Sockets | ServiceSocket class and all derived classes statistics |
Buffers | Malloced buffers in various classes statistics |
Transactions | All classes derived from the transactions template statistics |
Timed Objects | TimedObject class and all derived classes statistics |
TOQ Entries | Timed out queue (TOQEntry) class statistics |
SIP Messages | Sip request (SipReq) and SIP response (SipResp) entry classes statistics |
MBC Messages | MbcpMessage class statistics |
Pipe Messages | Pipe message class statistics |
Mutex Messages | Mutually exclusive class statistics |
Worker Threads Deadlock Condition SNMP Trap
An SNMP trap is generated when a worker thread experiences a deadlock.
When a worker thread experiences a deadlock, the apMutexDeadLockTrap will be set. This trap contains the name of the thread on which the deadlock was encountered. Immediately following the above operation, the apMutexDeadLockClearTrap will be set. The operational setting of the trap and then immediate clearing of it functions more like a warning or alarm than the traditional SNMP trap functionality.
Memory Buffer
Display memory buffer statistics information by using the show buffers command.
ORACLE# show buffers type number --------- ------ FREE : 20990 DATA : 1 HEADER : 1 TOTAL : 20992 number of mbufs: 20992 number of times failed to find space: 0 number of times waited for space: 0 number of times drained protocols for space: 0 __________________ CLUSTER POOL TABLE __________________________________________________________________ size clusters free usage minsize maxsize empty ------------------------------------------------------------------ 64 8192 8192 116 4 56 0 128 8192 8191 169342 128 128 0 256 2048 2047 35893 131 255 0 512 2048 2048 20357 258 512 0 1024 256 256 4 595 718 0 2048 256 256 7 1444 2048 0 ------------------------------------------------------------------
The first column of the two column list shows the type of buffer, and the second column shows the number of buffers of that type. The first line of the list shows the number of buffers that are free; all subsequent lines show buffers of each type that are currently in use. Next you see four lines that describe the total number of buffers and how many times the system failed, waited, or had to empty a protocol to find space.
Following this information, the next section of the displayed information shows the cluster pool table. The size column lists the size of the clusters. The clusters column lists the total number of clusters of a certain size that have been allocated. The free column lists the number of available clusters of that size. The usage column lists the number of times that clusters have been allocated (and not the number of clusters currently in use).
Control and Maintenance Interfaces
Display all information concerning the system’s control and maintenance interfaces by using the show interfaces command.
ORACLE# show interfaces lo (unit number 0): Flags: (0xc8049) UP LOOPBACK MULTICAST TRAILERS ARP RUNNING INET_UP INET6_UP Type: SOFTWARE_LOOPBACK inet: 127.0.0.1 Netmask 0xff000000 Subnetmask 0xff000000 inet6: ::1 prefixlen 128 Metric is 0 Maximum Transfer Unit size is 1536 0 packets received; 5262 packets sent 0 multicast packets received 0 multicast packets sent 0 input errors; 0 output errors 0 collisions; 0 dropped 0 output queue drops wancom (unit number 0): Flags: (0xe8043) UP BROADCAST MULTICAST ARP RUNNING INET_UP INET6_UP Type: ETHERNET_CSMACD inet6: fe80::208:25ff:fe01:760%wancom0 scopeid 0x2 prefixlen 64 inet: 172.30.55.127 Broadcast address: 172.30.255.255 Netmask 0xffff0000 Subnetmask 0xffff0000 Ethernet address is 00:08:25:01:07:60 Metric is 0 Maximum Transfer Unit size is 1500 0 octets received 0 octets sent 259331 unicast packets received 2069 unicast packets sent 0 non-unicast packets received 5 non-unicast packets sent 0 incoming packets discarded 0 outgoing packets discarded 0 incoming errors 0 outgoing errors 0 unknown protos 0 collisions; 0 dropped 0 output queue drops f00 (media slot 0, port 0) Flags: Down Type: GIGABIT_ETHERNET Admin State: enabled Auto Negotiation: enabled Internet address: 10.10.0.10 Vlan: 0 Broadcast Address: 10.10.255.255 Netmask: 0xffff0000 Gateway: 10.10.0.1 Ethernet address is 00:08:25:01:07:64 Metric is 0 Maximum Transfer Unit size is 1500 0 octets received 0 octets sent 0 packets received 0 packets sent 0 non-unicast packets received 0 non-unicast packets sent 0 unicast packets received 0 unicast packets sent 0 input discards 0 input unknown protocols 0 input errors 0 output errors 0 collisions; 0 dropped f01 (media slot 1, port 0) Flags: Down Type: GIGABIT_ETHERNET Admin State: enabled Auto Negotiation: enabled Internet address: 10.10.0.11 Vlan: 0 Broadcast Address: 10.10.255.255 Netmask: 0xffff0000 Gateway: 10.10.0.1 Ethernet address is 00:08:25:01:07:6a Metric is 0 Maximum Transfer Unit size is 1500 0 octets received 0 octets sent 0 packets received 0 packets sent 0 non-unicast packets received 0 non-unicast packets sent 0 unicast packets received 0 unicast packets sent 0 input discards 0 input unknown protocols 0 input errors 0 output errors 0 collisions; 0 dropped
The following information is listed for each interface:
- Internet address
- broadcast address
- netmask
- subnet mask
- Ethernet address
- route metric
- maximum transfer unit
- number of octets sent and received
- number of packets sent and received
- number of input discards
- number of unknown protocols
- number of input and output errors
- number of collisions
- number of drops
- flags (such as loopback, broadcast, promiscuous, ARP, running, and debug)
This command also displays information for loopback (internal) interfaces, which are logical interfaces used for internal communications.
You can also view key running statistics about the interfaces within a single screen by using the show interfaces [brief] command.
For example:
ORACLE# show interfaces brief
Slot Port Vlan Interface IP Gateway Admin Oper
Num Num ID Name Address Address State State
---- ---- ---- ---------- ------------------- ---------------- ----- -----
lo (unit number 0):
Flags: (0xc8049) UP LOOPBACK MULTICAST TRAILERS ARP RUNNING INET_UP INET6_U
P
Type: SOFTWARE_LOOPBACK
inet: 127.0.0.1
Netmask 0xff000000 Subnetmask 0xff000000
inet6: ::1 prefixlen 128
Metric is 0
Maximum Transfer Unit size is 1536
238 packets received; 238 packets sent
0 multicast packets received
0 multicast packets sent
0 input errors; 0 output errors
0 collisions; 0 dropped
0 output queue drops
wancom (unit number 0):
Flags: (0xe8043) UP BROADCAST MULTICAST ARP RUNNING INET_UP INET6_UP
Type: ETHERNET_CSMACD
inet6: fe80::208:25ff:fe02:2280%wancom0 scopeid 0x2 prefixlen 64
inet: 172.30.1.186
Broadcast address: 172.30.255.255
Netmask 0xffff0000 Subnetmask 0xffff0000
Ethernet address is 00:08:25:02:22:80
Metric is 0
Maximum Transfer Unit size is 1500
0 octets received
0 octets sent
638311 unicast packets received
129 unicast packets sent
0 non-unicast packets received
5 non-unicast packets sent
0 incoming packets discarded
0 outgoing packets discarded
0 incoming errors
0 outgoing errors
21 unknown protos
0 collisions; 0 dropped
0 output queue drops
sp (unit number 0):
Flags: (0x68043) UP BROADCAST MULTICAST ARP RUNNING INET_UP
Type: ETHERNET_CSMACD
inet: 1.0.2.3
Broadcast address: 1.0.2.255
Netmask 0xff000000 Subnetmask 0xffffff00
Ethernet address is 00:08:25:02:22:84
Metric is 0
Maximum Transfer Unit size is 1500
0 octets received
0 octets sent
0 unicast packets received
0 unicast packets sent
0 non-unicast packets received
0 non-unicast packets sent
0 incoming packets discarded
0 outgoing packets discarded
0 incoming errors
0 outgoing errors
0 unknown protos
0 collisions; 0 dropped
0 output queue drops
0 0 0 lefty 192.168.50.1/24 192.168.0.1 up down
1 0 0 righty 192.168.50.5/24 192.168.0.1 up down
---------------------------------------------------------------------