2011-11-12

oracle kernel parameters in suse

How to permanently set kernel parameters on Linux [ID 242529.1]


SUSE SLES / United Linux

On SUSE SLES / United Linux another way to set kernel parameter modifications permanently is to use the '/etc/init.d/boot.local' file.

You can put in that file the commands setting the kernel parameters. At the boot time 'boot.local' is started and the these setting processed

Example:
#! /bin/sh
#
# Copyright (c) 2002 SuSE Linux AG Nuernberg, Germany. All rights reserved.
#
# Author: Werner Fink <werner@suse.de>, 1996
# Burchard Steinbild <feedback@suse.de>, 1996
#
# /etc/init.d/boot.local
#
# script with local commands to be executed from init on system startup
#
# Here you should add things, that should happen directly after booting
# before we're going to the first run level.
#
echo -n $"Start Setting kernel parameters on "
echo 250 32000 100 128 > /proc/sys/kernel/sem #This sets SEMMSL, SEMMNS, SEMOPM, SEMMNI
echo 2097152 > /proc/sys/kernel/shmall
echo 2147483648 > /proc/sys/kernel/shmmax
echo 4096 > /proc/sys/kernel/shmmni
#
echo 65536 > /proc/sys/fs/file-max
#
echo 1024 65000 > /proc/sys/net/ipv4/ip_local_port_range
#
echo 4194304 > /proc/sys/net/core/rmem_default
echo 4194304 > /proc/sys/net/core/rmem_max
echo 262144 > /proc/sys/net/core/wmem_default
echo 262144 > /proc/sys/net/core/wmem_max
#
ulimit -n 65536 >/dev/null 2>&1
ulimit -u 16384 >/dev/null 2>&1
#
echo -n $"End Setting kernel parameters on "
echo

Again on SUSE SLES / United Linux (with orarun-XXXX.rpm) you can use '/etc/sysconfig/oracle' file to set kernel parameter modifications permanently.

Example:
SET_ORACLE_KERNEL_PARAMETERS="yes"
SHMMAX=3294967296
SHMMNI=4096
SHMALL=2097152
SEMMSL=1250
SEMMNS=32000
SEMOPM=128
SEMMNI=4096
IP_LOCAL_PORT_RANGE="1024 65000"
FILE_MAX_KERNEL=131072
FILE_MAX_SHELL=65536
PROCESSES_MAX_SHELL=16384

Note:
the orarun rpm places /etc/sysconfig/oracle file and could be over writing the parameters set by boot.sysctl on startup.

Niciun comentariu:

Trimiteți un comentariu