Call now: 252-767-6166  
Oracle Training Oracle Support Development Oracle Apps

 
 Home
 E-mail Us
 Oracle Articles
New Oracle Articles


 Oracle Training
 Oracle Tips

 Oracle Forum
 Class Catalog


 Remote DBA
 Oracle Tuning
 Emergency 911
 RAC Support
 Apps Support
 Analysis
 Design
 Implementation
 Oracle Support


 SQL Tuning
 Security

 Oracle UNIX
 Oracle Linux
 Monitoring
 Remote s
upport
 Remote plans
 Remote
services
 Application Server

 Applications
 Oracle Forms
 Oracle Portal
 App Upgrades
 SQL Server
 Oracle Concepts
 Software Support

 Remote S
upport  
 Development  

 Implementation


 Consulting Staff
 Consulting Prices
 Help Wanted!

 


 Oracle Posters
 Oracle Books

 Oracle Scripts
 Ion
 Excel-DB  

Don Burleson Blog 


 

 

 


 

 

 
 

Oracle Server RAM Paging


Oracle Tips by Burleson Consulting

Server RAM and Oracle

Today, 100 gigabytes of RAM-disk can be purchased for as little as $100,000 and can deliver access times 6,000 times faster than traditional disk devices.  By 2015, a gigabyte of RAM is projected to cost the same as a gigabyte of disk today, which is approximately $200.

 

RAM I/O bandwidth is projected to grow one bit every 18 months, making 128 bit architecture due in about 2015 according to the data in Table 12.1.

 

8    bit

1970’s

16   bit

1980’s

32   bit

1990’s

64   bit

2000’s

128  bit

2010’s

Table 12.1:  RAM bandwidth evolution

 

The fact that RAM does not get faster means that CPU speed continues to outpace memory speed.  This means that RAM sub-systems must be localized close to the processors to keep the CPUs running at full capacity, and this architecture impacts Oracle performance.

 

Traditionally, the Oracle DBA measured RAM page-in operations to judge RAM utilization on the database server as shown in Figure 12.5.  All virtual memory servers (VM) anticipate RAM shortages and asynchronously page-out RAM frames in case the RAM is required for an upcoming task.

 

Figure 12.5:  Long-term measurements of Oracle server RAM page-in operations

 

When the real RAM on the server is exceeded, the OS will overlay the RAM and must then page-in the saved memory frames from the swap disk on the Oracle server.  However, measuring RAM usage based solely on page-ins is a mistake, because the page-ins are a normal part of program start-up.

 

To be effective as an Oracle metric, the page-in operations (from vmstat, glance) must be correlated with the OS scan rate.  When an Oracle server begins to run low on RAM, the page-stealing daemon process awakens and UNIX begins to treat the RAM memory as a sharable resource by moving memory frames to the swap disk with paging operations.

 

In most UNIX and Linux implementations, the page-stealing daemon operates in two modes.  When the real RAM capacity is exceeded, the page-stealing daemon will steal small chunks of least recently used RAM memory from a program.  If RAM resource demands continue to increase beyond the real capacity of the Oracle server, the daemon escalates and begins to page-out entire programs’ RAM regions.  Unfortunately, on Linux kernel 2.6 users have no control over it. Every parameter available for tuning kernel has been taken away from the system administrators.

 

Because of this, it is not always clear if the page-in operations are normal housekeeping or a serious memory shortage unless the activity of the page-stealing daemon is correlated with the page-in output.  Paging occurs in kernel mode. Generally speaking, if the system exhibits more than 10% of kernel mode CPU usage, for a prolonged period of time, there is a problem with paging.

 

To aid in measuring real page-ins, the UNIX and Linux vmstat utility yields the scan rate (sr) column which designates the memory page scan rate. If the scan rate rises steadily, the page-stealing daemon's first threshold will be identified, indicating that that particular program’s entire RAM memory regions are being paged-out to the swap disk.  This behavior can then be correlated with the vmstat page-in (pi) metric.

 

The following is an example from a vmstat output.  The spike in the scan rate immediately precedes an increase in page-in operations.

 

oracle > vmstat 2

 

         procs           memory                   page                       

    r     b     w      avm    free   re   at    pi   po    fr   de    sr   

    3     0     0   144020   12778   17    9     0   14    29    0     3 

    3     0     0   144020   12737   15    0     1   34     4    0     8 

    3     0     0   144020   12360    9    0     1   46     2    0    13 

    1     0     0   142084   12360    5    0     3   17     0    0    21 

    1     0     0   142084   12360    3    0    18    0     0    0     8 

    1     0     0   140900   12360    1    0    34    0     0    0     0 

    1     0     0   140900   12360    0    0    39    0     0    0     0 

    1     0     0   140900   12204    0    0     3    0     0    0     0 

    1     0     0   137654   12204    0    0     0    0     0    0     0 

 

Fortunately, the AWR can be used to track these important external server metrics.

 
Get the Complete
Oracle SQL Tuning Information 

The landmark book "Advanced Oracle SQL Tuning  The Definitive Reference"  is filled with valuable information on Oracle SQL Tuning. This book includes scripts and tools to hypercharge Oracle 11g performance and you can buy it for 30% off directly from the publisher.

 


 

 

��  
 
 
Oracle Training at Sea
 
 
 
 
oracle dba poster
 

 
Follow us on Twitter 
 
Oracle performance tuning software 
 
Oracle Linux poster
 
 
 

 

Burleson is the American Team

Note: This Oracle documentation was created as a support and Oracle training reference for use by our DBA performance tuning consulting professionals.  Feel free to ask questions on our Oracle forum.

Verify experience! Anyone considering using the services of an Oracle support expert should independently investigate their credentials and experience, and not rely on advertisements and self-proclaimed expertise. All legitimate Oracle experts publish their Oracle qualifications.

Errata?  Oracle technology is changing and we strive to update our BC Oracle support information.  If you find an error or have a suggestion for improving our content, we would appreciate your feedback.  Just  e-mail:  

and include the URL for the page.


                    









Burleson Consulting

The Oracle of Database Support

Oracle Performance Tuning

Remote DBA Services


 

Copyright © 1996 -  2017

All rights reserved by Burleson

Oracle ® is the registered trademark of Oracle Corporation.

Remote Emergency Support provided by Conversational