unix和linux区分参数,常见初始化参数与unix、Linux内核参数关系

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.

d675894c600baca4f2523b17fb19c940.pngCommon 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)。##单位为页。

shmmax - The maximum size(in bytes) of a single shared memory segment。##至少为物理内存一半。

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(见附件)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/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^64bytes. 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/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

摘自

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

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

Python网络爬虫与推荐算法新闻推荐平台:网络爬虫:通过Python实现新浪新闻的爬取,可爬取新闻页面上的标题、文本、图片、视频链接(保留排版) 推荐算法:权重衰减+标签推荐+区域推荐+热点推荐.zip项目工程资源经过严格测试可直接运行成功且功能正常的情况才上传,可轻松复刻,拿到资料包后可轻松复现出一样的项目,本人系统开发经验充足(全领域),有任何使用问题欢迎随时与我联系,我会及时为您解惑,提供帮助。 【资源内容】:包含完整源码+工程文件+说明(如有)等。答辩评审平均分达到96分,放心下载使用!可轻松复现,设计报告也可借鉴此项目,该资源内项目代码都经过测试运行成功,功能ok的情况下才上传的。 【提供帮助】:有任何使用问题欢迎随时与我联系,我会及时解答解惑,提供帮助 【附带帮助】:若还需要相关开发工具、学习资料等,我会提供帮助,提供资料,鼓励学习进步 【项目价值】:可用在相关项目设计中,皆可应用在项目、毕业设计、课程设计、期末/期中/大作业、工程实训、大创等学科竞赛比赛、初期项目立项、学习/练手等方面,可借鉴此优质项目实现复刻,设计报告也可借鉴此项目,也可基于此项目来扩展开发出更多功能 下载后请首先打开README文件(如有),项目工程可直接复现复刻,如果基础还行,也可在此程序基础上进行修改,以实现其它功能。供开源学习/技术交流/学习参考,勿用于商业用途。质量优质,放心下载使用。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值