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