日期:2014-05-16  浏览次数:20485 次

oarcle安装Check kernel parameters(转)

原文:http://shaoxi88888.blog.163.com/blog/static/67808691200991495630590/

?

Checking kernel parameters

Checking for semmsl=250; found semmsl=250.?? ?Passed

Checking for semmns=32000; found semmns=32000.?? ?Passed

Checking for semopm=100; found semopm=32.?? ?Failed <<<<

Checking for semmni=128; found semmni=128.?? ?Passed

Checking for shmmax=536870912; found shmmax=68719476736.?? ?Passed

Checking for shmmni=4096; found shmmni=4096.?? ?Passed

Checking for shmall=2097152; found shmall=4294967296.?? ?Passed

Checking for file-max=65536; found file-max=88989.?? ?Passed

Checking for VERSION=2.6.9; found VERSION=2.6.18-92.el5xen.?? ?Passed

Checking for ip_local_port_range=1024 - 65000; found ip_local_port_range=32768 - 61000.?? ?Failed <<<<

Checking for rmem_default=262144; found rmem_default=126976.??? Failed <<<<

Checking for rmem_max=262144; found rmem_max=131071.??? Failed <<<<

Checking for wmem_default=262144; found wmem_default=126976.??? Failed <<<<

Checking for wmem_max=262144; found wmem_max=131071.??? Failed <<<<

Check complete. The overall result of this check is: Failed <<<<

Problem: The kernel parameters do not meet the minimum requirements (see above).

Recommendation: Perform operating system specific instructions to update the kernel parameters.

修改 /etc/sysctl.conf 内核配置文件,增加/修改以下项目,如没有自己添加

?

kernel.shmall = 2097152 # 可以使用的共享内存的总量。

kernel.shmmax = 2147483648 # 最大共享内存段大小。

kernel.shmmni = 4096 # 整个系统共享内存段的最大数目。

kernel.sem = 250 32000 100 128 # 每个信号对象集的最大信号对象数;系统范围内最大信号对象数;每个信号对象支持的最大操作数;系统范围内最大信号对象集数。

fs.file-max = 65536 # 系统中所允许的文件句柄最大数目。

net.ipv4.ip_local_port_range = 1024 65000 # 应用程序可使用的IPv4端口范围。

net.core.rmem_default = 1048576 # 套接字接收缓冲区大小的缺省值

net.core.rmem_max = 1048576 # 套接字接收缓冲区大小的最大值

net.core.wmem_default = 262144 # 套接字发送缓冲区大小的缺省值

net.core.wmem_max = 262144 # 套接字发送缓冲区大小的最大值

?

运行下面的命令使得内核参数生效:

?

/sbin/sysctl -p /etc/sysctl.conf

?

注:内核参数并非必须修改,可以根据自己实际情况而定。