home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / sun / admin / 6305 < prev    next >
Encoding:
Text File  |  1992-09-13  |  1.6 KB  |  47 lines

  1. Xref: sparky comp.sys.sun.admin:6305 comp.unix.admin:5022
  2. Path: sparky!uunet!sun-barr!news2me.ebay.sun.com!seven-up.East.Sun.COM!sungy!stasys!alanya!lupe
  3. From: lupe@ukw.uucp (Lupe Christoph)
  4. Newsgroups: comp.sys.sun.admin,comp.unix.admin
  5. Subject: Re: Number of semaphore
  6. Message-ID: <1992Sep13.073240.7937@ukw.uucp>
  7. Date: 13 Sep 92 07:32:40 GMT
  8. References: <9209121513.aa16033@q2.ics.uci.edu>
  9. Sender: uucp@stasys.sta.sub.org
  10. Organization: cic
  11. Lines: 34
  12.  
  13. ahalim@ics.uci.edu writes:
  14.  
  15.  
  16. >Under SunOS 4.1.2 the default max number of semaphores is 60 (system-wide).
  17. >Is is possible to reconfigure the kernel with more than 60 semaphores?
  18.  
  19. From /sys/sys/sem.h:
  20.  
  21. /*
  22.  *      Configuration Parameters
  23.  * These parameters are tuned by editing the system configuration file.
  24.  * The following lines establish the default values.
  25.  */
  26. #ifndef SEMMNI
  27. #define SEMMNI  10              /* # of semaphore identifiers */
  28. #endif
  29. #ifndef SEMMNS
  30. #define SEMMNS  60              /* # of semaphores in system */
  31. #endif
  32. #ifndef SEMUME
  33. #define SEMUME  10              /* max # of undo entries per process */
  34. #endif
  35. #ifndef SEMMNU
  36. #define SEMMNU  30              /* # of undo structures in system */
  37. #endif
  38.  
  39. You change these in your sysgen file (i.e. GENERIC) like this:
  40.  
  41.     options SEMMNS=<whatever you like>
  42. -- 
  43. | ...!unido!ukw!lupe  (German EUNet, "bang")     |  Disclaimer:            |
  44. | lupe@ukw.UUCP       (German EUNet, domain)     |  As I am self-employed, |
  45. | suninfo!alanya!lupe (Sun Germany)              |  this *is* the opinion  |
  46. | Res non sunt complicanda praeter necessitatem. |  of my employer.        |
  47.