Method and system for deadlock detection in a distributed environment
First Claim
1. A method of deadlock detection, comprising:
- collecting statistics of frequency of deadlocks detected in a system;
adjusting a threshold timeout value for a lock based on the statistics; and
if a waiting time associated with the lock exceeds the threshold timeout value, initiating a deadlock detection based on the lock.
1 Assignment
0 Petitions
Accused Products
Abstract
A method of deadlock detection is disclosed which adjusts the detection technique based on statistics maintained for tracking the number of actual deadlocks that are detected in a distributed system, and for which types of locks are most frequently involved in deadlocks. When deadlocks occur rarely, the deadlock detection may be tuned down, for example, by reducing a threshold value which determines timeouts for waiting lock requests. When it is determined that actual deadlocks are detected frequently, the processing time for deadlock detection may be reduced, for example, by using parallel forward or backward search operations and/or by according higher priority in deadlock detection processing to locks which are more likely to involve deadlocks.
135 Citations
17 Claims
-
1. A method of deadlock detection, comprising:
-
collecting statistics of frequency of deadlocks detected in a system;
adjusting a threshold timeout value for a lock based on the statistics; and
if a waiting time associated with the lock exceeds the threshold timeout value, initiating a deadlock detection based on the lock. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A method of deadlock detection in a distributed system, comprising:
-
determining whether a waiting time for a lock request has exceeded a predetermined timeout time; and
if the waiting time has exceeded the timeout time, initiating a plurality of deadlock searches. - View Dependent Claims (9, 10, 11)
-
-
12. A method of deadlock detection, comprising:
-
determining whether a waiting time associated with a lock for a requested resource has exceeded a threshold timeout value; and
if the waiting time has exceeded the threshold timeout value, initiating a forward search for deadlock or initiating a backward search for deadlock based on statistics collected on a frequency of detected deadlocks. - View Dependent Claims (13, 14)
-
- 15. A computer-readable medium bearing an instance of a distributed lock manager including a resource object having a granted queue and a convert queue, and a communication means for communicating statistical information regarding a frequency of detected deadlocks associated with a waiting resource lock included in the convert queue, wherein a frequency of initiating deadlock detection searches is adjusted based on the statistical information.
Specification