Collecting information on resource locks
This section describes the data that you should find if the resource locks are being managed correctly.
About this task
Procedure
Example
Figure 1. Lock manager summary information
The following table describes each of the fields in the lock manager summary information.
LOCK LOCK OWNER MODE COUNT # LOCK # LOCK -> QUEUE
NAME TOKEN REQUESTS SUSPENDS
---- ----- ----- ---- ----- -------- -------- --------
SMLOCK 03B051D8 0 0
DSITLOCK 03B05208 4 0
LD_GBLOK 03B05238 03B0AAD0 EXCL 1 1 03B09378
LD_LBLOK 03B05268 0 0
DMLOCKNM 03B05298 03B0B690 EXCL 35 0
CCSERLCK 03B052C8 0 0
==LM: LOCK WAIT QUEUE
LOCK ADDRESS -> NEXT OWNER MODE SUSPEND STATUS
NAME TOKEN
---- ------- ------- ----- ---- ------- ------
LD_GBLOK 03B09378 00000000 03B0B3A0 EXCL 010B0001
| Field | Description |
|---|---|
| LOCK NAME | The name given to the lock by the domain that originally issued the ADD_LOCK command. |
| LOCK TOKEN | The token assigned by the lock manager to uniquely identify the lock. |
| OWNER | A token that uniquely identifies the owner of the lock. It is blank unless a task currently holds the lock, in which case the KE_TAS number of the task is given. |
| MODE | The lock mode. It can be:
|
| COUNT | Blank unless the lock mode is SHR, when it shows the number of tasks currently holding the shared lock. |
| # LOCK REQUESTS | The cumulative total of the number of times a lock has been requested—that is, the number of times the LOCK request has been issued for the lock. |
| # LOCK SUSPENDS | The cumulative total of the number of tasks that have been suspended when requesting this lock because the lock is held by another task. |
| -> QUEUE | Blank unless tasks are currently suspended, awaiting the lock. If this is the case, this field contains the address of the first such task. Further information about the task is given in the ‘LOCK WAIT QUEUE’ section of the information. |
| ADDRESS | The address of the lock manager LOCK_ELEMENT that represents the suspended task. |
| -> NEXT | The address of the next task in the queue awaiting the lock. If this field is zeros, this is the last task in the queue. |
| OWNER | The KE_TAS number of the task that is currently suspended, awaiting the lock. |
| MODE | The lock mode. It can be:
|
| SUSPEND TOKEN | The dispatcher suspend token for the suspended task. |
| STATUS | The status of the suspended task. It can be:
|