Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: How to PERMANENTLY set semaphores in Linux - Suse Personal Edition 8.2?

Re: How to PERMANENTLY set semaphores in Linux - Suse Personal Edition 8.2?

From: <linuxquestion_at_yahoo.com>
Date: 14 Nov 2003 10:24:28 -0800
Message-ID: <672ceaed.0311141024.1436f7dc@posting.google.com>


HI,

Thanks for your response. I'll show you what I did.

file /etc/sysctl.conf
/etc/sysctl.conf: can't stat `/etc/sysctl.conf' (No such file or directory).

touch /etc/sysctl.conf

ls -l /etc/sysctl.conf
-rw-r--r-- 1 root root 0 Nov 14 12:36 /etc/sysctl.conf

echo `expr 2048 \* 1024 \* 1024`
2147483648

Edit empty /etc/sysctl.conf, and add one line only:

/etc/sysctl.conf:
kernel.shmmax=2147483648

sysctl -p
kernel.shmmax = 2147483648

cat /proc/sys/kernel/shmmax
2147483648

Edit /etc/init.d/boot.local. Add:
sysctl -p



Reboot.

cat /proc/sys/kernel/shmmax
33554432
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

No link to boot.local anywhere.

modify and also put debug statements into: /etc/rc.d/boot.local

/etc/rc.d/boot.local:

echo "start: /etc/init.d/boot.local" > /etc/init.d/bootlog.txt

echo "Setting size for /proc/sys/kernel/shmmax" echo `expr 2048 \* 1024 \* 1024` > /proc/sys/kernel/shmmax echo "Value for shmmax is now: `cat /proc/sys/kernel/shmmax`"

sysctl -p

cat /proc/sys/kernel/shmmax >> /etc/init.d/bootlog.txt

echo "end: /etc/init.d/boot.local" >> /etc/init.d/bootlog.txt



reboot.

Look at the bootlog.txt

cat bootlog.txt
start: /etc/init.d/boot.local
33554432
end: /etc/init.d/boot.local

cat /proc/sys/kernel/shmmax
33554432

!!!!!!!!!!!!

Am I missing something here? Maybe some fundamental files?

Thanks a lot

Reinhold Fischer <no-spam_at_no-spam> wrote in message news:<3fb4a860$0$26192$91cee783_at_newsreader02.highway.telekom.at>...
> Hi!
>
> I use sysctl(8):
>
> o) Edit /etc/sysctl.conf
> add/change: kernel.shmmax=129654784
>
> o) Edit /etc/init.d/boot.local
> sysctl -p
>
> o) Activate settings
> root# sysctl -p
> kernel.shmmax = 129654784
>
>
> A reboot for this is on linux not necessary (only in solaris).
>
> --
> Mit freundlichen Grüßen,
> Ing. Reinhold Fischer
>

> Received on Fri Nov 14 2003 - 12:24:28 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US