Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-17-2005, 04:18 PM   #1
LQ Newbie
Registered: Jan 2005
Distribution: RHL9
Posts: 6

Rep: Reputation: 0
How to change shared memory and semaphore config on RHL9?

I am installing Oracle Applications 11.5.8 on RHL9 (which uses Oracle Although I have experience with other flavors of UNIX I am new to Linux. To set shared memory and semaphore kernel parameters on other flavors of UNIX such as Sun Solaris you edit /etc/system and reboot. How do you do this on RH Linux?
I found a reference to /etc/sysctl.conf and changed the value of “kernel.shmmax” to the desired value and ran “/sbin/sysctl –p” which seems to have worked. Was this the correct way to set shared memory values?
I tried adding “kernel.semopm = 100” but it returned an error when I ran “/sbin/sysctl –p” after making that change. From this I can only assume there is a different process for setting semaphore values??? Any help would be greatly appreciated.
Old 01-18-2005, 10:14 AM   #2
LQ Newbie
Registered: Jan 2005
Distribution: RHL9
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks but, forget about it. I found the answer which is:

To set semaphore values in RHL (appears to be all versions of RHL, not just 9 although not 100% sure on that) you change /etc/sysctl.conf just like you do for shared memory values. The format is:
kernel.sem = <SEMMSL> <SEMMNS> <SEMOPM> <SEMMNI>

You can then either reboot OR execute "/sbin/sysctl -p". Executing "/sbin/sysctl -a" will list all parameters that can be set in /etc/sysctl.conf and the current values set for those paramaters.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
is shared memory expandable in memory size? Thinking Programming 4 08-16-2005 09:57 AM
shared memory/semaphore problem V_Ganesh Programming 1 03-31-2005 10:58 PM
shared memory blackzone Programming 1 10-14-2004 11:52 AM
About Shared Memory...? aegis_shiva Programming 1 08-25-2004 05:05 AM
shared memory socket9001 Programming 4 02-06-2004 02:08 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:52 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration