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?
<linuxquestion_at_yahoo.com> wrote in message
news:672ceaed.0311140053.9aa959e_at_posting.google.com...
> Thanks for your responses.
>
> I created a script. The script was made up of
> commands that worked perfectly at the dot prompt (bash).
>
> --------------------
>
> #! /bin/sh
> # File to set shmmax during boot.
>
> 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` "
>
>
> ----------
>
> But when I run this file, it doesn't want to work:
>
> Setting size for /proc/sys/kernel/shmmax
> : No such file or directoryne 5: /proc/sys/kernel/shmmax
> Value for shmmax is now: 33554432
>
>
> This occured in both bash, and sh.
>
> Any ideas?
>
Well, as I posted elsewhere, the better way is to edit /etc/sysctl.conf. But I used to find that
cd /proc/sys/kernel
echo 9876 9876 9876 > shmmax (insert appropriate numbers)
...used to work fine.
Regards
HJR
Received on Fri Nov 14 2003 - 04:22:47 CST