Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Relationship between common initialization parameters and unix, Linux kernel parameters

2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

The following table documents Unix and Linux kernel parameters that should be monitored and possibly increased after changes are made to the related init.ora parameter. Please check with your Operating System documentation for specific details on the parameter changes.

Common Kernel Parameter Definitions

The following Kernel Parameters tend to be generic across most Unix and Linux platforms. However, their names may be different on your platform. Consult your Installation and Configuration Guide (ICG) for the exact names.

Maxfiles-Soft file limit per process.

Maxuprc-Maximum number of simultaneous user processes per userid.

Nfile-Maximum number of simultaneously open files systemwide at any given time.

Nproc-Maximum number of processes that can exist simultaneously in the system.

Shmall-This parameter sets the total amount of shared memory pages that can be used system wide. Hence, shmall should always be at least ceil (shmmax/page_size). # # units are pages.

Shmmax-The maximum size (in bytes) of a single shared memory segment. # # at least half of the physical memory.

Shmmin-The minimum size (in bytes) of a single shared memory segment.

Shmmni-The number of shared memory identifiers.

Shmseg-The maximum number of shared memory segments that can be attached by a process.

Semmns-The number of semaphores in the system.

Semmni-The number of semaphore set identifiers in the system; determines the number of semaphore sets that can be created at any one time.

Semmsl-The maximum number of sempahores that can be in one semaphore set. It should be same size as maximum number of Oracle processes.

SHMMAX-kernel parameter controlling maximum size of one shared memory

Segment

32-bit Linux Systems

Maximum: A value that is 1 byte less than 4 GB, or 4294967295

Recommended: More than half the physical memory

64-bit Linux Systems

Maximum: A value that is 1 byte less than the physical memory

Recommended: More than half the physical memory

See My Oracle Support Note 567506.1 (see annex) for additional information about configuring shmmax.

SHMMNI-kernel parameter controlling maximum number of shared memory segments

In the system

SHMSEG-kernel parameter controlling maximum number of shared memory segments

A process can attach

SEMMNS-kernel parameter controlling maximum number of semphores in

The system

SEMMNI-kernel parameter controlling maximum number of semaphore

Sets. Semphores in Unix are allocated in sets of 1 to SEMMSL.

SEMMSL-kernel parameter controlling maximum number of semaphores in a

Semphore set.

SHMLBA-kernel parameter controlling alignment of shared memory

Segments; all segments must be attached at multiples of this value.

Typically, non-tunable.

What is the maximum value of SHMMAX for a 32-bit (x86) Linux system?

Oracle Global Customer Support officially recommends a "maximum" for SHMMAX of just less than 4Gb, or 4294967295.

The maximum size of a shared memory segment is limited by the size of the available user address space. On 32-bit systems, this is a theoretical 4GB. The maximum possible value for SHMMAX is just less than 4Gb, or 4294967295. Setting SHMMAX to 4GB exactly will give you 0 bytes as max, as this value is interpreted as a 32-bit number and it wraps around.

What is the maximum value of SHMMAX for a 64-bit (x86-64) Linux system?

Oracle Global Customer Support officially recommends a "maximum" for SHMMAX of "1 ram 2 of physical RAM".

The maximum size of a shared memory segment is limited by the size of the available user address space. On 64-bit systems, this is a theoretical 2 ^ 64 bytes. So the "theoretical limit" for SHMMAX is the amount of physical RAM that you have. However, to actually attempt to use such a value could potentially lead to a situation where no system memory is available for anything else. Therefore a more realistic "physical limit" for SHMMAX would probably be "physical RAM-2Gb".

In an Oracle RDBMS application, this "physical limit" still leaves inadequate system memory for other necessary functions. Therefore, the common "Oracle maximum" for SHMMAX that you will often see is "1 prime 2 of physical RAM". Many Oracle customers chose a higher fraction, at their discretion.

Occasionally, Customers may erroneously think that that setting the SHMMAX as recommended in this NOTE limits the total SGA. That is not true. Setting the SHMMAX as recommended only causes a few more "shared memory segments" to be used for whatever total SGA that you subsequently configure in Oracle. For additional detail, please see

Document 15566.1, "SGA, SHMMAX, Semaphores and Shared Memory Explained"

Also to be taken into consideration for memory configuration is the kernel parameter for kernel.shmall which is the total amount of shared memory, in pages, that the system can use at one time. Review:

Document 301830.1 Upon startup of Linux database get ORA-27102: out of memory Linux-X86_64 Error: 28: No space left on device

Extracted from

Relationship Between Common Init.ora Parameters and Unix, Linux Kernel Parameters (document ID 144638.1)

Maximum SHMMAX values for Linux x86 and x86-64 (document ID 567506.1)

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report