- 最后登录
- 2023-8-16
- 在线时间
- 1686 小时
- 威望
- 2135
- 金钱
- 50532
- 注册时间
- 2011-10-12
- 阅读权限
- 200
- 帖子
- 5207
- 精华
- 39
- 积分
- 2135
- UID
- 2
|
10#
发表于 2012-5-20 17:52:06
- # Kernel sysctl configuration file for Oracle Enterprise Linux
- #
- # For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and
- # sysctl.conf(5) for more details.
- # Controls IP packet forwarding
- net.ipv4.ip_forward = 0
- # Controls source route verification
- net.ipv4.conf.default.rp_filter = 1
- # Do not accept source routing
- net.ipv4.conf.default.accept_source_route = 0
- # Controls the System Request debugging functionality of the kernel
- # Controls whether core dumps will append the PID to the core filename
- # Useful for debugging multi-threaded applications
- kernel.core_uses_pid = 1
- # Controls the use of TCP syncookies
- net.ipv4.tcp_syncookies = 1
- # Controls the maximum size of a message, in bytes
- # Controls the default maxmimum size of a mesage queue
- # Controls the maximum shared segment size, in bytes
- # Controls the maximum number of shared memory segments, in pages
- # For 11g, Oracle-Validated setting for fs.file-max is 6815744
- # For 10g, uncomment 'fs.file-max = 327679', and comment 'fs.file-max = 6553600' entry and re-run sysctl -p
- # fs.file-max = 327679
- fs.file-max = 6815744
- # Oracle-Validated setting for kernel.msgmni is 2878
- kernel.msgmni = 2878
- # Oracle-Validated setting for kernel.msgmax is 8192
- kernel.msgmax = 8192
- # Oracle-Validated setting for kernel.msgmnb is 65536
- kernel.msgmnb = 65536
- # Oracle-Validated setting for kernel.sem is '250 32000 100 142'
- kernel.sem = 250 32000 100 142
- # Oracle-Validated setting for kernel.shmmni is 4096
- kernel.shmmni = 4096
- # Oracle-Validated setting for kernel.shmall is 1073741824
- kernel.shmall = 1073741824
- # Oracle-Validated setting for kernel.shmmax is 4398046511104 on x86_64 and 4294967295 on i386 architecture. Refer Note id 567506.1
- kernel.shmmax = 4398046511104
- # Oracle-Validated setting for kernel.sysrq is 1
- kernel.sysrq = 1
- # Oracle-Validated setting for net.core.rmem_default is 262144
- net.core.rmem_default = 262144
- # For 11g, Oracle-Validated setting for net.core.rmem_max is 4194304
- # For 10g, uncomment 'net.core.rmem_max = 2097152', comment 'net.core.rmem_max = 4194304' entry and re-run sysctl -p
- # net.core.rmem_max = 2097152
- net.core.rmem_max = 4194304
- # Oracle-Validated setting for net.core.wmem_default is 262144
- net.core.wmem_default = 262144
- # For 11g, Oracle-Validated setting for net.core.wmem_max is 1048576
- # For 10g, uncomment 'net.core.wmem_max = 262144', comment 'net.core.wmem_max = 1048576' entry for this parameter and re-run sysctl -p
- # net.core.wmem_max = 262144
- net.core.wmem_max = 1048576
- # Oracle-Validated setting for fs.aio-max-nr is 3145728
- fs.aio-max-nr = 3145728
- # For 11g, Oracle-Validated setting for net.ipv4.ip_local_port_range is 9000 65500
- # For 10g, uncomment 'net.ipv4.ip_local_port_range = 1024 65000', comment 'net.ipv4.ip_local_port_range = 9000 65500' entry and re-run sysctl -p
- # net.ipv4.ip_local_port_range = 1024 65000
- net.ipv4.ip_local_port_range = 9000 65500
- # Oracle-Validated setting for vm.min_free_kbytes is 51200 to avoid OOM killer
- vm.min_free_kbytes = 51200
复制代码 用以上内容 彻底替换 sysctl.conf |
|