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: Howard J. Rogers <hjr_at_dizwell.com>
Date: Fri, 14 Nov 2003 21:22:47 +1100
Message-ID: <3fb4acfe$0$13681$afc38c87@news.optusnet.com.au>


<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

Original text of this message

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