 |
|
 |
|
Next: How to PERMANENTLY set semaphores in Linux - Suse..
|
| Author |
Message |
External

Since: Jan 26, 2004 Posts: 89
|
(Msg. 1) Posted: Wed Nov 12, 2003 7:01 pm
Post subject: How to PERMANENTLY set semaphores in Linux - Suse Personal Edition 8.2? Archived from groups: comp>databases>oracle>server, others (more info?)
|
|
|
HI all,
I'm using: Linux Suse personal edition 8.2
I am using the dbca with Oracle 9.2. It keeps
running out of memory with the ora-27123 error.
As the docs said, I did this:
echo `expr 2048 \* 1024 \* 1024` > /proc/sys/kernel/shmmax
cat /proc/sys/kernel/shmmax
2147483648
reboot
---------------
But, then I got the same symptom.
I checked the file.
cat /proc/sys/kernel/shmmax
33554432
So, it didn't keep the value!!!
ipcs -l
------ Shared Memory Limits --------
max number of segments = 4096
max seg size (kbytes) = 32768
max total shared memory (kbytes) = 8388608
min seg size (bytes) = 1
------ Semaphore Limits --------
max number of arrays = 1024
max semaphores per array = 250
max semaphores system wide = 256000
max ops per semop call = 32
semaphore max value = 32767
------ Messages: Limits --------
max queues system wide = 128
max size of message (bytes) = 8192
default max size of queue (bytes) = 16384
In Solaris, this was easy. Edit the file:
/etc/system
and reboot. The values stayed there forever.
But how to do this in Suse, and make it stick?
I don't want to put this in some script, so they
get changed while booting, and add yet another
layer of complexity.
Thanks |
|
| Back to top |
|
 |  |
External

Since: Nov 13, 2003 Posts: 3
|
(Msg. 2) Posted: Thu Nov 13, 2003 5:43 am
Post subject: Re: How to PERMANENTLY set semaphores in Linux - Suse Personal Edition 8.2? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
linuxquestion RemoveThis @yahoo.com wrote:
> HI all,
>
> I'm using: Linux Suse personal edition 8.2
>
> I am using the dbca with Oracle 9.2. It keeps
> running out of memory with the ora-27123 error.
>
> As the docs said, I did this:
>
> echo `expr 2048 \* 1024 \* 1024` > /proc/sys/kernel/shmmax
>
> cat /proc/sys/kernel/shmmax
> 2147483648
>
> reboot
>
> ---------------
>
> But, then I got the same symptom.
> I checked the file.
>
> cat /proc/sys/kernel/shmmax
> 33554432
Add echo `expr 2048 \* 1024 \* 1024` > /proc/sys/kernel/shmmax to
/etc/init.d/boot.local ( for example)
and create symlinks to this file in /etc/init.d/rc3.d and probably rc5.d
i.e.: ln -s /etc/init.d/boot.local /etc/init.d/rc3.d/S01boot.local
For this you don't need to create a K0X.... link
If you are not familiar with the SuSE Linux boot concept have a look at the
manuals. It is helpfull to understand how this works.
--
Jan Schledermann
Mierlo, The Netherlands |
|
| Back to top |
|
 |  |
External

Since: Nov 13, 2003 Posts: 7
|
(Msg. 3) Posted: Thu Nov 13, 2003 3:41 pm
Post subject: Re: How to PERMANENTLY set semaphores in Linux - Suse Personal Edition 8.2? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
<linuxquestion DeleteThis @yahoo.com> wrote in message
news:672ceaed.0311130006.36cf8f24@posting.google.com...
> HI all,
>
> I'm using: Linux Suse personal edition 8.2
>
> I am using the dbca with Oracle 9.2. It keeps
> running out of memory with the ora-27123 error.
>
> As the docs said, I did this:
>
> echo `expr 2048 \* 1024 \* 1024` > /proc/sys/kernel/shmmax
>
> cat /proc/sys/kernel/shmmax
> 2147483648
>
> reboot
>
> ---------------
>
> But, then I got the same symptom.
> I checked the file.
>
> cat /proc/sys/kernel/shmmax
> 33554432
Obviously so. /proc/sys/kernel is a virtual file system, and gets reset
every time you reboot.
The fix is either to compile the required values into the kernel to start
with (rather a long-winded approach) or to edit a script to make the 'echo'
command execute at each reboot. On Red Hat and Mandrake, that's done by
editing /etc/sysctl.conf. But it may well be a different name on SuSe.
Regards
HJR |
|
| Back to top |
|
 |  |
External

Since: Jan 26, 2004 Posts: 89
|
(Msg. 4) Posted: Thu Nov 13, 2003 6:53 pm
Post subject: Re: How to PERMANENTLY set semaphores in Linux - Suse Personal Edition 8.2? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
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?
--------------
linuxquestion.DeleteThis@yahoo.com wrote in message news:<672ceaed.0311130006.36cf8f24.DeleteThis@posting.google.com>...
> HI all,
>
> I'm using: Linux Suse personal edition 8.2
>
> I am using the dbca with Oracle 9.2. It keeps
> running out of memory with the ora-27123 error.
>
> As the docs said, I did this:
>
> echo `expr 2048 \* 1024 \* 1024` > /proc/sys/kernel/shmmax
>
> cat /proc/sys/kernel/shmmax
> 2147483648
>
> reboot
>
> ---------------
>
> But, then I got the same symptom.
> I checked the file.
>
> cat /proc/sys/kernel/shmmax
> 33554432
>
> So, it didn't keep the value!!!
>
>
> ipcs -l
>
> ------ Shared Memory Limits --------
> max number of segments = 4096
> max seg size (kbytes) = 32768
> max total shared memory (kbytes) = 8388608
> min seg size (bytes) = 1
>
> ------ Semaphore Limits --------
> max number of arrays = 1024
> max semaphores per array = 250
> max semaphores system wide = 256000
> max ops per semop call = 32
> semaphore max value = 32767
>
> ------ Messages: Limits --------
> max queues system wide = 128
> max size of message (bytes) = 8192
> default max size of queue (bytes) = 16384
>
>
> In Solaris, this was easy. Edit the file:
> /etc/system
> and reboot. The values stayed there forever.
>
> But how to do this in Suse, and make it stick?
>
> I don't want to put this in some script, so they
> get changed while booting, and add yet another
> layer of complexity.
>
> Thanks |
|
| Back to top |
|
 |  |
External

Since: Nov 14, 2003 Posts: 1
|
(Msg. 5) Posted: Fri Nov 14, 2003 5:03 am
Post subject: Re: How to PERMANENTLY set semaphores in Linux - Suse Personal Edition [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Hi!
I use sysctl(  :
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
linuxquestion DeleteThis @yahoo.com schrieb am 2003-11-13 10:01 folgendes:
> HI all,
>
> I'm using: Linux Suse personal edition 8.2
>
> I am using the dbca with Oracle 9.2. It keeps
> running out of memory with the ora-27123 error.
>
> As the docs said, I did this:
>
> echo `expr 2048 \* 1024 \* 1024` > /proc/sys/kernel/shmmax
>
> cat /proc/sys/kernel/shmmax
> 2147483648
>
> reboot
>
> ---------------
>
> But, then I got the same symptom.
> I checked the file.
>
> cat /proc/sys/kernel/shmmax
> 33554432
>
> So, it didn't keep the value!!!
>
>
> ipcs -l
>
> ------ Shared Memory Limits --------
> max number of segments = 4096
> max seg size (kbytes) = 32768
> max total shared memory (kbytes) = 8388608
> min seg size (bytes) = 1
>
> ------ Semaphore Limits --------
> max number of arrays = 1024
> max semaphores per array = 250
> max semaphores system wide = 256000
> max ops per semop call = 32
> semaphore max value = 32767
>
> ------ Messages: Limits --------
> max queues system wide = 128
> max size of message (bytes) = 8192
> default max size of queue (bytes) = 16384
>
>
> In Solaris, this was easy. Edit the file:
> /etc/system
> and reboot. The values stayed there forever.
>
> But how to do this in Suse, and make it stick?
>
> I don't want to put this in some script, so they
> get changed while booting, and add yet another
> layer of complexity.
>
> Thanks |
|
| Back to top |
|
 |  |
External

Since: Nov 13, 2003 Posts: 7
|
(Msg. 6) Posted: Fri Nov 14, 2003 3:22 pm
Post subject: Re: How to PERMANENTLY set semaphores in Linux - Suse Personal Edition 8.2? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
<linuxquestion RemoveThis @yahoo.com> wrote in message
news:672ceaed.0311140053.9aa959e@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 |
|
| Back to top |
|
 |  |
External

Since: Jan 26, 2004 Posts: 89
|
(Msg. 7) Posted: Fri Nov 14, 2003 3:22 pm
Post subject: Re: How to PERMANENTLY set semaphores in Linux - Suse Personal Edition 8.2? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
HI,
Sorry, I should have mentioned that I did look for
those files. But they don't exist on my edition
of Linux. Suse Personal 8.2
Note that I haven't installed any databases yet. I've
managed to install Oracle, but not created any databases.
First, I want the OS to behave properly, so that I
can rely on it.
file /etc/sysctl.conf
/etc/sysctl.conf: can't stat `/etc/sysctl.conf' (No such file or
directory).
(I have since created this file, but I'm not sure if it's right.
See my other post.)
file /etc/sysconfig/oracle
/etc/sysconfig/oracle: can't stat `/etc/sysconfig/oracle' (No such
file or directory).
linux:/etc/init.d #
file /etc/rc.config
/etc/rc.config: can't stat `/etc/rc.config' (No such file or
directory).
file /etc/profile.d/oracle.sh
/etc/profile.d/oracle.sh: can't stat `/etc/profile.d/oracle.sh' (No
such file or directory).
file /etc/oratab
/etc/oratab: ASCII English text
cat /etc/oratab
*:/oracle/ora92:N
file /proc/sys/fs/file-max
/proc/sys/fs/file-max: empty
cat /proc/sys/fs/file-max
78587
---------------
Do you think that there are there some fundamental
things that are missing on my system?
Thanks for all your help.
"Howard J. Rogers" <hjr.TakeThisOut@dizwell.com> wrote in message news:<3fb4acfe$0$13681$afc38c87@news.optusnet.com.au>...
> <linuxquestion.TakeThisOut@yahoo.com> wrote in message
> news:672ceaed.0311140053.9aa959e@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 |
|
| Back to top |
|
 |  |
External

Since: Oct 17, 2003 Posts: 354
|
(Msg. 8) Posted: Fri Nov 14, 2003 9:15 pm
Post subject: Re: How to PERMANENTLY set semaphores in Linux - Suse Personal Edition [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
linuxquestion DeleteThis @yahoo.com wrote:
> 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
Add it to "rc.local" to have it loaded during system boot.
/sbin/sysctl -p
--
Confucius: He who play in root, eventually kill tree.
Registered with The Linux Counter. http://counter.li.org/
Slackware 9.1.0 Kernel 2.4.22 SMP i686 (GCC) 3.3.2
Uptime: 39 days, 8:56, 1 user, load average: 1.03, 1.34, 1.51 |
|
| Back to top |
|
 |  |
External

Since: Nov 13, 2003 Posts: 7
|
(Msg. 9) Posted: Sat Nov 15, 2003 7:40 am
Post subject: Re: How to PERMANENTLY set semaphores in Linux - Suse Personal Edition 8.2? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
No, you're going down a deep dark hole there. Clearly, SuSe doesn't use the
same way of setting these things as Red Hat or Mandrake, so I can be of no
further assistance (I wish I could download the ISO images from SuSe, Novell
or whoever it is these days!)
Regards
HJR
<linuxquestion RemoveThis @yahoo.com> wrote in message
news:672ceaed.0311141017.594e61d6@posting.google.com...
> HI,
>
> Sorry, I should have mentioned that I did look for
> those files. But they don't exist on my edition
> of Linux. Suse Personal 8.2
>
> Note that I haven't installed any databases yet. I've
> managed to install Oracle, but not created any databases.
> First, I want the OS to behave properly, so that I
> can rely on it.
>
>
> file /etc/sysctl.conf
> /etc/sysctl.conf: can't stat `/etc/sysctl.conf' (No such file or
> directory).
>
> (I have since created this file, but I'm not sure if it's right.
> See my other post.)
>
>
> file /etc/sysconfig/oracle
> /etc/sysconfig/oracle: can't stat `/etc/sysconfig/oracle' (No such
> file or directory).
> linux:/etc/init.d #
>
>
> file /etc/rc.config
> /etc/rc.config: can't stat `/etc/rc.config' (No such file or
> directory).
>
>
> file /etc/profile.d/oracle.sh
> /etc/profile.d/oracle.sh: can't stat `/etc/profile.d/oracle.sh' (No
> such file or directory).
>
> file /etc/oratab
> /etc/oratab: ASCII English text
>
> cat /etc/oratab
> *:/oracle/ora92:N
>
>
> file /proc/sys/fs/file-max
> /proc/sys/fs/file-max: empty
>
> cat /proc/sys/fs/file-max
> 78587
>
>
> ---------------
>
> Do you think that there are there some fundamental
> things that are missing on my system?
>
> Thanks for all your help.
>
>
>
> "Howard J. Rogers" <hjr RemoveThis @dizwell.com> wrote in message
news:<3fb4acfe$0$13681$afc38c87@news.optusnet.com.au>...
> > <linuxquestion RemoveThis @yahoo.com> wrote in message
> > news:672ceaed.0311140053.9aa959e@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 |
|
| Back to top |
|
 |  |
External

Since: Oct 29, 2003 Posts: 212
|
(Msg. 10) Posted: Sat Nov 15, 2003 2:24 pm
Post subject: Re: How to PERMANENTLY set semaphores in Linux - Suse Personal Edition 8.2? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
<linuxquestion.RemoveThis@yahoo.com> wrote in message
news:672ceaed.0311130006.36cf8f24@posting.google.com
> I'm using: Linux Suse personal edition 8.2
[...]
> As the docs said, I did this:
> echo `expr 2048 \* 1024 \* 1024` > /proc/sys/kernel/shmmax
[...]
> reboot
[...]
> But, then I got the same symptom.
[...]
> So, it didn't keep the value!!!
Of course not; you rebooted and rebuilt the entire /proc structure.
> In Solaris, this was easy. Edit the file:
> /etc/system and reboot. The values stayed there forever.
>
> But how to do this in Suse, and make it stick?
> I don't want to put this in some script, so they
> get changed while booting, and add yet another
> layer of complexity.
So you want to edit a file in Solaris that is parsed on a boot, but you
don't want to add a simple one-line command (which you've already
demonstrated that you know) to a file in Suse that is parsed on a boot? Or
even to the Oracle startup script?
Why are you even asking for help then? Do you think *any* computer system is
able to read your mind?
--
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =----- |
|
| Back to top |
|
 |  |
External

Since: Nov 09, 2003 Posts: 135
|
(Msg. 11) Posted: Sun Nov 16, 2003 2:55 am
Post subject: Re: How to PERMANENTLY set semaphores in Linux - Suse Personal Edition 8.2? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
linuxquestion.TakeThisOut@yahoo.com wrote:
> HI all,
>
> I'm using: Linux Suse personal edition 8.2
>
> I am using the dbca with Oracle 9.2. It keeps
> running out of memory with the ora-27123 error.
>
> As the docs said, I did this:
>
> echo `expr 2048 \* 1024 \* 1024` > /proc/sys/kernel/shmmax
>
> cat /proc/sys/kernel/shmmax
> 2147483648
>
> reboot
>
> ---------------
>
> But, then I got the same symptom.
> I checked the file.
>
> cat /proc/sys/kernel/shmmax
> 33554432
>
> So, it didn't keep the value!!!
>
>
> ipcs -l
>
> ------ Shared Memory Limits --------
> max number of segments = 4096
> max seg size (kbytes) = 32768
> max total shared memory (kbytes) = 8388608
> min seg size (bytes) = 1
>
> ------ Semaphore Limits --------
> max number of arrays = 1024
> max semaphores per array = 250
> max semaphores system wide = 256000
> max ops per semop call = 32
> semaphore max value = 32767
>
> ------ Messages: Limits --------
> max queues system wide = 128
> max size of message (bytes) = 8192
> default max size of queue (bytes) = 16384
>
>
> In Solaris, this was easy. Edit the file:
> /etc/system
> and reboot. The values stayed there forever.
>
> But how to do this in Suse, and make it stick?
>
> I don't want to put this in some script, so they
> get changed while booting, and add yet another
> layer of complexity.
>
> Thanks
Might be on the wrong track here but have you looked at powertweak, you can
pass sysctl commands here, there are some already set up for the oracle
memory limits, if the setting is not there you can always add it to the /etc
powertweak/tweaks file with your preferred editor.
HTH
--
Mark
Twixt hill and high water.
N.Wales, UK.
Email is spam trap try baskitcaise at gmx dot co dot uk |
|
| Back to top |
|
 |  |
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|
 |
|
|