how do I increase SEMaphores, SHM

how do I increase SEMaphores, SHM

Post by Paul V. Aluk » Sat, 09 May 1998 04:00:00




>Could someone tell me how to increase the number of semaphores and shared-
>memory segments?
>I tried putting the following in the /etc/system file and rebooting, but it
>didn't seem to help. Could the "#" be a problem?
>#               set SHMSEG=15

Remove "#" at the beginning of these lines.

-Paul Alukal

 
 
 

how do I increase SEMaphores, SHM

Post by Andrew Gabri » Mon, 11 May 1998 04:00:00




Quote:>Could someone tell me how to increase the number of semaphores and shared-
>memory segments?

>I tried putting the following in the /etc/system file and rebooting, but it
>didn't seem to help. Could the "#" be a problem?

>#               set SHMSEG=15
>#               set SHMMAX=33554432
>#               set shmmax=33554432
>#               set SHMMNI=128
>#               set SEMMNS=500
>#               set SEMMNU=500
>#               set SEMMSL=256
>#               set SEMUME=256

set shmsys:shminfo_shmseg = 15
set shmsys:shminfo_shmmax = 33554432
set shmsys:shminfo_shmmni = 128
set semsys:seminfo_semmns = 500
set semsys:seminfo_semmnu = 500
set semsys:seminfo_semmsl = 256
set semsys:seminfo_semume = 256

Quote:>#               set SEMAPM=256

? dunno

Here are my notes on the defaults (from Solaris 2.4 admittedly):

set semsys:seminfo_semusz = 96
set semsys:seminfo_semopm = 10
set semsys:seminfo_semume = 10
set semsys:seminfo_semaem = 16384
set semsys:seminfo_semmap = 10
set semsys:seminfo_semvmx = 32767
set semsys:seminfo_semmsl = 25
set semsys:seminfo_semmni = 10
set semsys:seminfo_semmns = 60
set semsys:seminfo_semmnu = 30

set shmsys:shminfo_shmmin = 1
set shmsys:shminfo_shmseg = 6
set shmsys:shminfo_shmmax = 1048576
set shmsys:shminfo_shmmni = 100

--
Andrew Gabriel
Consultant Software Engineer

 
 
 

how do I increase SEMaphores, SHM

Post by Casper H.S. Dik - Network Security Engine » Tue, 12 May 1998 04:00:00


[[ PLEASE DON'T SEND ME EMAIL COPIES OF POSTINGS ]]


>Could someone tell me how to increase the number of semaphores and shared-
>memory segments?
>I tried putting the following in the /etc/system file and rebooting, but it
>didn't seem to help. Could the "#" be a problem?
>#               set SHMSEG=15

Well, this syntax is totally bogus; the # would seem to indicate a
comment (but /etc/system uses *)

Here's the correct syntax.

The solaris FAQ says:

3.52) How can I change the SYSV IPC parameters?

    The following parameters can be used to change the number of
    semaphores, the amount of shared memory and the number of IPC
    messages.  They're set in /etc/system, as usual.

    set semsys:seminfo_semusz = <value>
    set semsys:seminfo_semopm = <value>
    set semsys:seminfo_semume = <value>
    set semsys:seminfo_semaem = <value>
    set semsys:seminfo_semmap = <value>
    set semsys:seminfo_semvmx = <value>
    set semsys:seminfo_semmsl = <value>
    set semsys:seminfo_semmni = <value>
    set semsys:seminfo_semmns = <value>
    set semsys:seminfo_semmnu = <value>

    set shmsys:shminfo_shmmin = <value>
    set shmsys:shminfo_shmseg = <value>
    set shmsys:shminfo_shmmax = <value>
    set shmsys:shminfo_shmmni = <value>

    set msgsys:msginfo_msgseg = <value>
    set msgsys:msginfo_msgssz = <value>
    set msgsys:msginfo_msgtql = <value>
    set msgsys:msginfo_msgmap = <value>
    set msgsys:msginfo_msgmax = <value>
    set msgsys:msginfo_msgmnb = <value>
    set msgsys:msginfo_msgmni = <value>

    --- end of excerpt from the FAQ

Questions marked with a * or + have been changed or added since
the FAQ was last posted

The most recently posted version of the FAQ is available from
<http://www.wins.uva.nl/pub/solaris/solaris2/>
--
Expressed in this posting are my opinions.  They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.

 
 
 

how do I increase SEMaphores, SHM

Post by Peter Bunclar » Wed, 13 May 1998 04:00:00



> [[ PLEASE DON'T SEND ME EMAIL COPIES OF POSTINGS ]]


> >Could someone tell me how to increase the number of semaphores and shared-
> >memory segments?

> >I tried putting the following in the /etc/system file and rebooting, but it
> >didn't seem to help. Could the "#" be a problem?

> >#               set SHMSEG=15

> Well, this syntax is totally bogus; the # would seem to indicate a
> comment (but /etc/system uses *)

...
Which reminds me of one of my enhancement requests we desparately need
a /etc/system `lint' or at least a syntax-checker. Better still,
AUTOGEN.

Pete.

 
 
 

how do I increase SEMaphores, SHM

Post by Daniel Jam » Wed, 13 May 1998 04:00:00





>> [[ PLEASE DON'T SEND ME EMAIL COPIES OF POSTINGS ]]


>> >Could someone tell me how to increase the number of semaphores and shared-
>> >memory segments?

>> >I tried putting the following in the /etc/system file and rebooting, but it
>> >didn't seem to help. Could the "#" be a problem?

>> >#               set SHMSEG=15

>> Well, this syntax is totally bogus; the # would seem to indicate a
>> comment (but /etc/system uses *)
>...
>Which reminds me of one of my enhancement requests we desparately need
>a /etc/system `lint' or at least a syntax-checker. Better still,
>AUTOGEN.

>Pete.

How 'bout

set shmsys:shminfo_shmseg=15

--
Daniel James

 
 
 

1. Increasing # of semaphores in semaphore set?

Does anybody know if it is easy to increase the number of IPC semaphores that
can be contained within a set?

I think the limit right now is 250 semaphore per semid. Do I have to recompile
the kernel to up this number?

Thanks for any help!
Doug

2. services needed

3. Increase semaphore's number

4. Apache or Netscape Fastrack

5. increasing number of semaphore identifiers

6. (none)

7. increasing semaphores in solaris 2.3

8. Do inodes matter ???

9. Increasing semaphores

10. Increase number of semaphores in a MP AIX machine

11. Semaphores increase in vmunix

12. How to increase the number of semaphores on Solaris 2.3

13. ---------> SEMAPHORES INCREASE Help needed <---------------