home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / vms / 12612 < prev    next >
Encoding:
Internet Message Format  |  1992-07-21  |  2.3 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!wupost!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ucbvax!lrw.com!leichter
  2. From: leichter@lrw.com (JERRY LEICHTER)
  3. Newsgroups: comp.os.vms
  4. Subject: re: Help wanted : Running out of ENQLM
  5. Message-ID: <9207211738.AA00838@uu3.psi.com>
  6. Date: 21 Jul 92 17:15:05 GMT
  7. Sender: daemon@ucbvax.BERKELEY.EDU
  8. Organization: The Internet
  9. Lines: 44
  10.  
  11.  
  12.     We have COBOL programs which run out of ENQLM very quickly.
  13.  
  14.     I know that ENQLM is the number of locks you can have queued at any
  15.     one time, and that file i/o can use locks.  But I don't really know
  16.     much more than that, and I would like to understand what is going on.
  17.  
  18.     1.  What else besides file i/o uses locks ?  I imagine there are
  19.         operating system tables which require locks ?
  20.  
  21. Actually, file I/O doesn't (directly) involve locks.  You need ENQLM quota to
  22. queue a lock to the Lock Manager with the $ENQ system service.  ENQLM limits
  23. how many locks you can have queued at once.  File I/O enters into the picture
  24. indirectly, since RMS uses the Lock Manager to control access to shared files.
  25. (There are some other Lock Manager-controlled locks in the I/O system, too,
  26. but they are unlikely to ever be an issue.)
  27.  
  28.     2.  What is the effect on the system of a user having a high ENQLM ?
  29.  
  30. It costs you system memory - memory "in use by VMS" rather than available to
  31. applications.
  32.  
  33.         How high is high ?  Our default is 800.  Our COBOL user normally
  34.         has 2000.  We tried with 3000 and still didn't get very far.
  35.  
  36. 3000 sounds VERY high to me - not because the system can't handle it (memory
  37. is cheap these days) but because I find it hard to come up with legitimate
  38. uses for that many simultaneous locks.
  39.  
  40.                                       I
  41.         don't want to just keep on increasing it without understanding
  42.         that it is sensible and reasonable that a program might require
  43.         very large values.  Does anyone have guidelines on what are
  44.         sensible and reasonable ranges of values for ENQLM ?
  45.  
  46. It's hard to generalize.  For most purposes, the default of 800 should be just
  47. fine.
  48.  
  49. It sounds to me as if the affected program has a bug.  Perhaps it is locking
  50. hundreds of records in files without ever releasing any locks.  Perhaps it's
  51. just opening hundreds of files and locking records in each.
  52.  
  53. In any case, a closer examination is called for.
  54.                             -- Jerry
  55.