LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   kernel parameters (https://www.linuxquestions.org/questions/linux-software-2/kernel-parameters-443018/)

salmanucit 05-09-2006 01:26 AM

kernel parameters
 
Hi
I am trying to install oracle application server on redhat advance server 4.
The installer checks the installaiton requirements and following is the output of that check in which its showing faiure while testing the values of msgmnb, msgmni, file-max
How to set correct values of these???

=======================================================================

Checking security kernel parameters
Checking for shmall=2097152; found shmall=2097152. Passed
Checking for msgmnb=65535; found msgmnb=16384. Failed <<<<
Checking for semmns=32000; found semmns=32000. Passed
Checking for semopm=100; found semopm=100. Passed
Checking for msgmni=2878; found msgmni=16. Failed <<<<
Checking for shmmax=4294967295; found shmmax=2147483648. Failed <<<<
Checking for hardnofiles=1024; found hardnofiles=16384. Passed
Checking for VERSION=2.6.9-11.EL; found VERSION=2.6.9-22.ELsmp. Passed
Checking for file-max=206173; found file-max=65536. Failed <<<<
Checking for msgmax=8192; found msgmax=8192. Passed
Checking for shmmni=4096; found shmmni=4096. Passed
Checking for softnofiles=1024; found softnofiles=16384. Passed
Check complete. The overall result of this check is: Failed <<<<
Problem: The security parameters in the kernel do not meet the minimum requirements (see above).
Recommendation: Perform operating system specific instructions to update the kernel parameters, namely BIT_SIZE and noexec_user_stack.
=======================================================================
Where to set these parameter against which i am being returned FAILED?
Regards

bathory 05-09-2006 02:48 AM

You should read this howto, and espacially this section

Regards

MOS JEFF-INITELY 09-12-2006 03:28 PM

Alright there are two ways to set these values...
first these values are kernel parameters so you will need admin to change them as the command is stored in sbin.

once you are admin you can check/view these values by using the command sysctl -a | grep kernel

Checking for msgmnb=65535; found msgmnb=16384. Failed <<<<
Checking for msgmni=2878; found msgmni=16. Failed <<<<
Checking for shmmax=4294967295; found shmmax=2147483648. Failed <<<<


and you can check this value by using the command sysctl -a | grep fs.file-max

Checking for file-max=206173; found file-max=65536. Failed <<<<

to change these you can either change the file /etc/sysctl.conf and reboot the machine or you can use sysctl -w which changes the configuration immediately, except if using sysctl -w the values will return to default when the machine is rebooted unless you change the file /etc/sysctl.conf which runs on boot.

if the file /etc/sysctl.conf is not started with the boot you may need to run the command sysctl -p to run it.

an example of changing a value would be:
sysctl -w kernel.msgmnb=65535
sysctl -w fs.file-max=206173
you can either use these at command line or create a script and run them all at once.
It's always smart to save the orignial parameters before changing them sysctl -a > original.kernel.parameters

peace.

shogun1234 10-26-2006 08:29 AM

I also have problem with kernel parameter (before installing Oracle 10g 2), but mine is a bit different.



When issuing command like '/sbin/sysconf -a | grep shm'. The system return with the message as below:
Code:

error: "Success" reading key "dev.parport.parport0.autoprobe3"
error: "Success" reading key "dev.parport.parport0.autoprobe2"
error: "Success" reading key "dev.parport.parport0.autoprobe1"
error: "Success" reading key "dev.parport.parport0.autoprobe0"
error: "Success" reading key "dev.parport.parport0.autoprobe"
error: "Operation not permitted" reading key "net.ipv6.route.flush"
error: "Operation not permitted" reading key "net.ipv4.route.flush"

What's wrong with it? How can I get rid of such error?

Any my env is Debian Sarge testing. kernel 2.6.16 manually built.

I sincerely appreciate suggestion.

Roman K. 08-27-2008 01:19 AM

If you have correctly executed this action:
Add the following lines to /etc/security/limits.conf file:
* soft nproc 4096
* hard nproc 16384
* soft nofile 16384
* hard nofile 65536

delete "Oracle" user, create "Oracle" agane and start installation anew.

_______
Roman Kolechenkov


All times are GMT -5. The time now is 05:45 PM.