To Tell If There Is An
OS Memory Shortage
And What To Do About It
craig@orapub.com / @orapubinc
About Me...
• Long time Oracle DBA
• Specialize in Oracle Database
performance and predictive analysis
• Performance researcher
• Blogger: A Wider View About Oracle
Performance Tuning
• Author: Oracle Performance Firefighting
and Forecasting Oracle Performance.
• Conference speaker
• Teacher and mentor
• Oracle ACE Director
$ vmstat 5 99999
procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu-----
r b swpd free buff cache si so bi bo in cs us sy id wa st
3 0 70256 3248140 23208 8109560 0 0 0 16 4080 2541 49 3 48 0 0
3 0 70256 2662240 23216 8109552 0 0 0 8 4296 2748 52 3 45 0 0
3 0 70256 2075596 23216 8109560 0 0 0 16 4076 2515 49 3 48 0 0
5 0 70256 1488332 23216 8109560 0 0 0 16 4069 2550 49 3 48 0 0
3 0 70256 902184 23224 8109552 0 0 0 8 4066 2565 49 3 48 0 0
3 0 70256 315788 23224 8109560 0 0 0 16 4051 2498 49 2 49 0 0
5 0 72708 123696 852 3062600 0 0 24 16 4174 3348 49 3 48 0 0
3 0 72708 124596 848 2480620 0 0 58 16 4250 3502 49 4 47 0 0
3 0 124484 127728 848 1902356 28 25898 7996 25906 5277 3783 49 6 36 9 0
1 12 370384 124436 840 1636872 56 133936 7074 133956 5436 2712 20 9 36 34 0
0 11 556592 131980 832 1514816 36 82142 1412 82158 1704 1395 6 3 7 85 0
0 12 730012 118624 832 1426524 50 86728 592 86728 1117 1266 0 3 24 72 0
0 19 1399456 117944 968 1113736 82 87676 1650 87710 2788 1529 0 3 33 64 0
0 15 1579932 130496 1232 1114588 76 84508 1486 84516 2221 1309 0 3 41 56 0
1 19 1743744 120616 1220 1115060 86 81966 1066 81974 1913 1301 0 3 34 62 0
0 20 1909104 121668 1216 1115664 78 82732 922 82766 1984 1413 0 3 25 72 0
0 21 2072248 119444 1212 1116772 68 81602 900 81602 2272 1349 0 3 37 60 0
0 19 2221332 118320 1564 1116744 78 74576 898 74604 2028 1188 0 3 55 42 0
1 27 2339572 126120 1624 1116692 130 59312 832 59342 1356 1188 0 3 26 71 0
1 31 2479024 118868 1576 1117336 132 69610 478 69610 1442 1210 0 3 17 80 0
1 26 2629444 7205164 1540 1117792 138 75274 1108 75290 2114 1133 0 7 2 91 0
1 12 876392 23222448 1692 1129932 950 0 6874 16 1110 1695 0 8 28 65 0
0 4 873148 23205632 2384 1142624 2272 0 8374 16 858 2676 0 1 39 60 0
Application
Oracle
Application
Oracle O/S
Application
Library Redo
Buffer Cache Shared Pool
Cache Buffer
Sharable Memory
(oracle exec, SGA) Re a l Me m or y
(pmap: shm, lib, etc) (RSS, RES)
(pmap –x, top)
Process
Virtual Memory
Private Memory (sar, vmstat, iostat)
(sort area, variables)
(pmap: anon, stack)
Oracle O/S
Application
Oracle O/S
Application
Thank You!
craig@orapub.com / @orapubinc