Оптимизация RHEL 5.2 под Oracle
В /etc/sysctl.conf
# kernel.shmmax - Half the size of physical memory (in bytes) kernel.shmmax = 6170804224 kernel.shmmni = 4096 net.ipv4.ip_local_port_range = 1024 65000 net.core.rmem_default = 262144 net.core.rmem_max = 262144 net.core.wmem_default = 262144 net.core.wmem_max = 262144 kernel.sem = 250 32000 100 128 # Controls the maximum number of shared memory segments, in pages kernel.shmall = 2097152 # Enabling Large Page Support == SGA Address Space vm.nr_hugepages = 4096
В /etc/security/limits.conf
oracle soft nproc 16384 oracle hard nproc 16384 oracle soft nofile 65536 oracle hard nofile 65536 # должно коррелировать с параметром vm.nr_hugepages * 2048K oracle soft memlock 8388608 oracle hard memlock 8388608
Меняем ядру шедулер в /etc/grub.conf добавляем параметр elevator=deadline (Требует проверки)
title Red Hat Enterprise Linux Server (2.6.18-92.1.22.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-92.1.22.el5 ro root=/dev/VolGroup00/LogVol00Root elevator=deadline
initrd /initrd-2.6.18-92.1.22.el5.img
Своп:
For 10g R2, Oracle gives the following swap space requirement: RAM Swap Space -------------------------------------------- 1 GB - 2 GB 1.5 times the size of RAM 2 GB - 8 GB Equal to the size of RAM more than 8GB 0.75 times the size of RAM
Сеть:
В /etc/sysconfig/network-scripts/ifcfg-eth0 вписываем
ETHTOOL_OPTS="speed 1000 duplex full autoneg off"
При условии что сервер подключен к гигабитному порту.