Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: How to PERMANENTLY set semaphores in Linux - Suse Personal Edition 8.2?
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
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
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
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