home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / vmsnet / internal / 1186 < prev    next >
Encoding:
Internet Message Format  |  1992-08-25  |  1.8 KB

  1. Path: sparky!uunet!europa.asd.contel.com!emory!sol.ctr.columbia.edu!hamblin.math.byu.edu!arizona.edu!mvb.saic.com!macro32
  2. From: RSPECTOR@vax4.bear.com
  3. Newsgroups: vmsnet.internals
  4. Subject: Searching the lock list for locks associated with a file
  5. Message-ID: <920825142952.20201d28@vax4>
  6. Date: 25 Aug 92 18:29:52 GMT
  7. Organization: Macro32<==>Vmsnet.Internals Gateway
  8. Lines: 30
  9. X-Gateway-Source-Info: Mailing List
  10.  
  11. I am trying to create a utility that will search the lock list database on all
  12. systems in a cluster and return lock information about all the locks for a
  13. specified file or records within the file.
  14.  
  15. I wrote a program that runs on every system in the cluster.  It executes the
  16. system service $GETLKI in kernal mode to search all the locks on a given system.
  17. This program looks for a matching resource name.  If one is found, the lock
  18. information will be displayed.  If there is no match, the lock could possibly
  19. be for a record within the specified file.  The program will check to see if
  20. this lock has a parent lock id.  If the id exists, the parent's resource name
  21. will be checked for a match.  If a match is found, then the lock information
  22. will be displayed.  If there is no match, then the lock will be skipped.
  23.  
  24. This solution will not work.  It is very slow.  There are about 30,000 locks
  25. at any one time in use.  It also appears that my process uses a lot of the CPU
  26. and goes into RWSCS state quite often.  Therefore, I am looking for an
  27. alternative.
  28.  
  29. I would like to be able to write some privileged code to calculate a hash value
  30. for the specified file and find the resource block from the hash table.
  31. Once I have this I will be able to find the sub resource blocks and all the
  32. locks associated with the resource and sub resources.
  33.  
  34. I would appreciate any help with this matter.
  35.  
  36.  
  37. Robin Spector
  38. Bear Stearns Inc. & Co.
  39. New York, N.Y. 10167
  40. (212) 272-3696
  41.