Linux Kernel Parameters related to Oracle

Source: Internet
Author: User
When installing Oracle, you need to adjust the linux kernel parameters. But what does each parameter mean? The following is a detailed explanation. Minimum: fs. aio-max-nr1048576fs.file-max6815744kernel.shmall2097152kernel.shmmax4294967295kernel.shmmni4096 given in Linux installation documentation

When installing Oracle, you need to adjust the linux kernel parameters. But what does each parameter mean? The following is a detailed explanation. The minimum value shown in the Linux installation documentation: fs. aio-max-nr = 1048576 fs. file-max = 6815744 kernel. shmall = 2097152 kernel. shmmax = 4294967295 kernel. shmmni = 4096

When installing Oracle, you need to adjust the linux kernel parameters. But what does each parameter mean? The following is a detailed explanation.

The minimum value in the Linux installation documentation:

Fs. aio-max-nr = 1048576

Fs. file-max = 6815744

Kernel. shmall = 2097152

Kernel. shmmax = 4294967295

Kernel. shmmni = 4096

Kernel. sem = 250 32000 100 128

Net. ipv4.ip _ local_port_range = 9000 65500

Net. core. rmem_default = 262144

Net. core. rmem_max = 4194304

Net. core. wmem_default = 262144

Net. core. wmem_max = 1048586


Parameters:

Kernel. shmmax:

It is one of the most important parameters in core parameters and is used to define the maximum value of a single shared memory segment. The setting should be large enough to accommodate the entire SGA under a shared memory segment. setting too low may lead to the creation of multiple shared memory segments, which may lead to a reduction in system performance. The main cause of system degradation is that when the instance is started and the ServerProcess is created, multiple small shared memory segments may cause slight system performance degradation at that time (you need to create multiple virtual address segments at startup, when a process is created, the process must be "identified" for multiple segments, which has some impact), but it will not be affected at other times.

Recommended values:

32-bit linux: the maximum value is 4 GB (4294967296 bytes)-1 byte, that is, 4294967295. The recommended value is half of the memory. Therefore, if 32 is the system, the value is generally 4294967295. The 32-bit system has a limit on the size of the SGA, so the SGA can certainly be included in a single shared memory segment.

64-bit linux: The recommended maximum value is physical memory-1 byte. The recommended value is half of physical memory. Generally, the value is greater than SGA_MAX_SIZE, and the physical memory can be-1 byte. For example, for 12 GB physical memory, 12*1024*1024*1024-1 = 12884901887 is recommended, and SGA will certainly be included in a single shared memory segment.

Kernel. shmall:

This parameter controls the total number of pages of shared memory that can be used. The size of the Linux Shared Memory Page is 4 kb, and the size of the shared memory segment is an integer multiple of the size of the shared memory page. The maximum size of a shared memory segment is 16 GB, so the number of pages to be shared is 16 GB/4KB = 16777216KB/4KB = 4194304 (PAGE), that is, 16 GB physical memory in 64 bit system, set kernel. shmall = 4194304 meets the requirements (almost twice the original 2097152 ). In this case, you can adjust the shmmax parameter to 16 GB, and modify SGA_MAX_SIZE and SGA_TARGET to 12 GB (the maximum SGA size you want to set, of course, can also be 2 GB ~ 14 GB, and other memory usage such as PGA parameters and OS must be coordinated. It cannot be set to be too full, such as 16 GB)

Kernel. shmmni:

This parameter is the maximum number of shared memory segments. The shmmni default value is 4096, which is generally enough.

Fs. file-max:

This parameter determines the maximum number of file handles allowed in the system. The file handle setting represents the number of files that can be opened in linux.

Fs. aio-max-nr:

This parameter limits the number of concurrent incomplete requests and should be set to avoid I/O subsystem faults.

Kernel. sem:

Take kernel. sem = 250 32000 100 128 as an example:

250 is the value of semmsl, indicating the maximum number of semaphores that can be included in a semaphore set.

32000 is the value of semmns, indicating the maximum number of semaphores allowed in the system.

100 is the value of semopm, indicating the number of operations that a single semopm () call can perform on a semaphore set.

128 is the semmni value, indicating the total number of system semaphores.

Net. ipv4.ip _ local_port_range:

Indicates the range of IPv4 ports that an application can use.

Net. core. rmem_default:

The default value of the buffer size for receiving sockets.

Net. core. rmem_max:

Indicates the maximum size of the socket receiving buffer.

Net. core. wmem_default:

The default value of the buffer size sent by the socket.

Net. core. wmem_max:

Indicates the maximum size of the buffer sent by the socket.
-------------------------------- End ------------------------------------

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.