home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ucbvax!NSCVAX.PRINCETON.EDU!dragon
- From: dragon@NSCVAX.PRINCETON.EDU (Mighty Firebreather)
- Newsgroups: comp.os.vms
- Subject: RE: Help wanted : Running out of ENQLM
- Message-ID: <0095DE6A.39D2BE60.6497@nscvax.princeton.edu>
- Date: 21 Jul 92 14:38:54 GMT
- Sender: daemon@ucbvax.BERKELEY.EDU
- Distribution: world
- Organization: The Internet
- Lines: 44
-
-
- Martyn Brown <brown@lincoln.ac.nz> writes:
- >
- >We have COBOL programs which run out of ENQLM very quickly.
- >
- >I know that ENQLM is the number of locks you can have queued at any
- >one time, and that file i/o can use locks. But I don't really know
- >much more than that, and I would like to understand what is going on.
- >
- >1. What else besides file i/o uses locks ? I imagine there are operating
- > system tables which require locks ?
- >
- >2. What is the effect on the system of a user having a high ENQLM ?
- > How high is high ? Our default is 800. Our COBOL user normally has
- > 2000. We tried with 3000 and still didn't get very far. I don't want
- > to just keep on increasing it without understanding that it is
- > sensible and reasonable that a program might require very large values.
- > Does anyone have guidelines on what are sensible and reasonable ranges
- > of values for ENQLM ?
- >
- >Any hints or tips would be much appreciated. We are running VMS V5.4-2 on
- >a VAX 4000 model 200, and using COBOL V4.3.
- >
-
-
- I think you had better check the coding of your COBOL programs. I
- have gotten along for years with the default ENQLM of 200. 3000 is
- ridiculous! It sure looks as if the code is creating a new lock each time
- rather than reusing old ones and, further, never dequeuing the old ones.
- If this is the case, fixing the problem should markedly improve the
- performance of your application.
-
- See chapter 12 of "Introduction to VMS System Services" order
- number AA-LA68A-TE for a tutorial on locks and locking.
-
-
- *************************************************************************
- * *
- * Here, there be dragons! *
- * dragon@nscvax.princeton.edu *
- * *
- * Richard B. Gilbert *
- *************************************************************************
-
-