LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   How to permanently set shmmax (https://www.linuxquestions.org/questions/linux-server-73/how-to-permanently-set-shmmax-813419/)

tikit 06-10-2010 03:47 PM

How to permanently set shmmax
 
Hi,

for Oracle installation, I need to set kernel.shmmax parameter to 8416559104

According to the manual I did the following:
Code:

vi /etc/sysctl.conf
shmmax = 8416559104
/sbin/chkconfig boot.sysctl on
/sbin/sysctl -p

when I check the value
Code:

cat /proc/sys/kernel/shmmax
8416559104

it looks OK, but after reboot there is the default value 3294967296 again.

What am I doing wrong?

The system is 64-bit SLES11.

Thanks for helping

harry edwards 06-10-2010 04:31 PM

Can you post the content of /etc/sysctl.conf

Also,does thishelp.

tikit 06-11-2010 01:24 AM

Hi,

here is my /etc/sysctl.conf
Code:

# Disable response to broadcasts.
# You don't want yourself becoming a Smurf amplifier.
net.ipv4.icmp_echo_ignore_broadcasts = 1
# enable route verification on all interfaces
net.ipv4.conf.all.rp_filter = 1
# enable ipV6 forwarding
#net.ipv6.conf.all.forwarding = 1
# increase the number of possible inotify(7) watches
fs.inotify.max_user_watches = 65536
# avoid deleting secondary IPs on deleting the primary IP
net.ipv4.conf.default.promote_secondaries = 1
net.ipv4.conf.all.promote_secondaries = 1
# Oracle Database Kernel Parameters
kernel.shmmax = 8416559104
kernel.sem = 250  256000  128 1024
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

The link did not work for me.

Thanks

tikit 06-11-2010 01:39 AM

Hi,

I solved it. The default value of 3294967296 was set in /etc/sysconfig/oracle, that is why it was being rewritten after reboot.


All times are GMT -5. The time now is 01:11 PM.