Oracle7 Server Tuning | ![]() Library |
![]() Product |
![]() Contents |
![]() Index |
If you have tuned the Oracle instance performance and still need faster performance you should verify your work, or try to reduce system time. Make sure there is enough I/O bandwidth, CPU power, and swap space. Do not expect, however, that further tuning of the operating system tuning will have a big effect on application performance.
Sometimes there is simply not a lot of room for improvement on the operating system side. Changes in the Oracle configuration or in the application itself are likely to make a bigger difference in operating system efficiency than changing the O/S directly.
For example, if your application gives rise to a lot of buffer busy waits, the number of system calls will increase. If you reduce the buffer busy waits by tuning the application, then the number of system calls will go down. Similarly, if you turn on the Oracle initialization parameter TIMED_STATISTICS, then the number of system calls will increase; if you turn it off, then system calls will decrease.
See Also: For detailed information on operating system tuning, see your Oracle platform-specific documentation, and your operating system vendor's documentation.
On NT this is not an issue. All file requests by the database bypass the caches in the file system.
Raw devices impose a penalty on full table scans, but may be essential on UNIX-based systems if the UNIX implementation does not support write through cache. The UNIX file system speeds up full table scans by reading ahead when the server starts requesting contiguous data blocks. It also caches full table scans. If your UNIX-based system does not support the write-through option on writes to the file system, then it is essential to use raw devices to ensure that at commit and checkpoint, the data which the server assumes is safely established on disk has actually gotten there. If this is not the case then recovery from a UNIX or system crash may not be possible.
Raw devices on NT are similar to UNIX raw devices, however all NT devices support write through cache.
Be sure that all Oracle processes, both background processes and user processes, have the same process priority. When you install Oracle, all background processes are given the default priority for your operating system. Do not change the priorities of background processes, and do make sure that all user processes have the default operating system priority.
Assigning different priorities to Oracle processes may exacerbate the effects of contention. Your operating system may not grant processing time to a low priority process if a high priority process also requests processing time. If a high priority process needs access to a memory resource held by a low priority process, the high priority process may wait indefinitely for the low priority process to obtain the CPU, process, and release the resource.
See Also: Your Oracle platform-specific documentation, and your operating system vendor's documentation.
Familiarize yourself with platform-specific issues, so that you know what performance options your operating system provides. For example, some platforms have post wait drivers, which allow you to map system time and thus reduce system calls, enabling faster I/O.
See Also: Your Oracle platform-specific documentation, and your operating system vendor's documentation.
The ratio of time spent in each mode is only a symptom of the underlying problem, which might have to do with:
Free memory in a VAX/VMS environment is actually memory which is not currently mapped to any operating system process. On a busy system free memory is likely to contain a page which belongs to one or more currently active process. When that access occurs a "soft page fault" will take place, and the page will be included in the working set for the process. If the process cannot expand its working set, then one of the pages currently mapped by the process will have to be moved to the free set.
Any number of processes may have pages of shared memory within their working sets. The sum of the sizes of the working sets can thus markedly exceed the available memory. When Oracle Server is running, the SGA, the Oracle kernel code, and the Oracle*Forms runtime executable are normally all shareable and account for perhaps 80% or 90% of the pages accessed.
Adding more buffers is not necessarily better. Each application has a threshold number of buffers at which the cache hit ratio stops rising. This is typically quite low (approximately 1500 buffers). Setting higher values simply increases the management load for both Oracle and the operating system.
![]() ![]() Prev Next |
![]() Copyright © 1996 Oracle Corporation. All Rights Reserved. |
![]() Library |
![]() Product |
![]() Contents |
![]() Index |