Adaptive Locking for Distributed Database Buffer Pool Contention

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

In distributed database systems, existing approaches face challenges in reducing contention and avoiding deadlocks, particularly in shared disk cluster environments where physical locks are retained across nodes, leading to suboptimal performance due to complex deadlock detection and costly repeated acquisition cycles.

Innovation Solution

The implementation of adaptive locking mechanisms that identify locking priorities for buffer pools, determine lock requests based on these priorities, and grant locks accordingly, allowing clients to control locking at the node level and adapt to inter-node contention, thereby minimizing deadlocks and optimizing resource access.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If physical locks are retained across nodes in shared disk cluster environments, then resource access efficiency is improved, but deadlock detection complexity and contention increase

Engineering Contradiction:
Improveresource access efficiencyVSAvoiddeadlock detection complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The patent segments the buffer pool into multiple parts or regions, allowing different locking strategies to be applied to different segments. This reduces the scope of locks that need to be coordinated across nodes, thereby reducing deadlock detection complexity while maintaining resource access efficiency in each segment

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent implements dynamic locking strategies where the locking behavior adapts based on current system conditions, contention levels, and access patterns. This allows the system to optimize between retaining locks for efficiency and releasing locks to reduce contention and deadlock complexity, depending on real-time requirements

Inventive Principle:
Principle #15Dynamics

2Productivity

If physical locks are retained across nodes, then resource access efficiency is improved, but contention and deadlocks increase

Engineering Contradiction:
Improveresource access efficiencyVSAvoidcontention and deadlocks
Core Design Contradiction:
ProductivityVSReliability

Solution Approach 1:

The patent applies locking only to the necessary portions of resources rather than entire buffer pools. By using partial locking on specific segments or pages, the system maintains efficiency for accessed resources while reducing contention on unaccessed portions, thereby reducing deadlocks without sacrificing resource access efficiency

Inventive Principle:
Principle #16Partial or excessive action

Solution Approach 2:

The patent implements feedback mechanisms that monitor contention levels and deadlock occurrences, dynamically adjusting locking strategies. When contention or deadlocks are detected, the system responds by modifying lock retention behavior, releasing locks strategically, or adjusting locking granularity to prevent future deadlocks while maintaining efficiency

Inventive Principle:
Principle #23Feedback

3Reliability

If repeated lock acquisition cycles are performed, then resource access is maintained, but system performance degrades

Engineering Contradiction:
Improveresource access continuityVSAvoidsystem performance
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The patent performs preliminary lock acquisition attempts and prepares alternative access strategies in advance. By anticipating potential lock unavailability and having pre-planned fallback mechanisms, the system reduces the need for repeated acquisition cycles, thereby maintaining resource access continuity while improving system performance through fewer retry operations

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS8392388B2Adaptive locking of retained resources in a distributed database processing environment
Publication Date: 2013.03.05 SYBASE INC
  • US8392388B2 patent drawing
  • US8392388B2 patent drawing
  • US8392388B2 patent drawing

AI summary

System, method, computer program product embodiments and combinations and sub-combinations thereof for adaptive locking of retained resources in a distributed database processing environment are provided. An embodiment includes identifying a locking priority for at least a portion of a buffer pool, determining lock requests based upon the identified locking priority, and granting locks for the lock requests.