home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.sys.sun.admin:6305 comp.unix.admin:5022
- Path: sparky!uunet!sun-barr!news2me.ebay.sun.com!seven-up.East.Sun.COM!sungy!stasys!alanya!lupe
- From: lupe@ukw.uucp (Lupe Christoph)
- Newsgroups: comp.sys.sun.admin,comp.unix.admin
- Subject: Re: Number of semaphore
- Message-ID: <1992Sep13.073240.7937@ukw.uucp>
- Date: 13 Sep 92 07:32:40 GMT
- References: <9209121513.aa16033@q2.ics.uci.edu>
- Sender: uucp@stasys.sta.sub.org
- Organization: cic
- Lines: 34
-
- ahalim@ics.uci.edu writes:
-
-
- >Under SunOS 4.1.2 the default max number of semaphores is 60 (system-wide).
- >Is is possible to reconfigure the kernel with more than 60 semaphores?
-
- From /sys/sys/sem.h:
-
- /*
- * Configuration Parameters
- * These parameters are tuned by editing the system configuration file.
- * The following lines establish the default values.
- */
- #ifndef SEMMNI
- #define SEMMNI 10 /* # of semaphore identifiers */
- #endif
- #ifndef SEMMNS
- #define SEMMNS 60 /* # of semaphores in system */
- #endif
- #ifndef SEMUME
- #define SEMUME 10 /* max # of undo entries per process */
- #endif
- #ifndef SEMMNU
- #define SEMMNU 30 /* # of undo structures in system */
- #endif
-
- You change these in your sysgen file (i.e. GENERIC) like this:
-
- options SEMMNS=<whatever you like>
- --
- | ...!unido!ukw!lupe (German EUNet, "bang") | Disclaimer: |
- | lupe@ukw.UUCP (German EUNet, domain) | As I am self-employed, |
- | suninfo!alanya!lupe (Sun Germany) | this *is* the opinion |
- | Res non sunt complicanda praeter necessitatem. | of my employer. |
-