Lock-less Multidimensional Database Index Cache Concurrency

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Multidimensional database systems face performance issues due to lock contention, which increases with the number of processing cores, leading to inefficiency and reduced concurrency.

Innovation Solution

Implementing lock-less algorithms and data structures using specific hardware-level instructions, such as compare-and-swap functions, to enable atomic operations and reduce contention, thereby improving concurrency.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If traditional locking mechanisms are used for data structure access, then data consistency is maintained, but concurrency is reduced and performance deteriorates with increased processing cores

Engineering Contradiction:
Improvedata consistencyVSAvoidconcurrency
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The patent extracts the locking mechanism entirely from the data structure access protocol and replaces it with lock-less algorithms. The locking function is removed and replaced with atomic operations using hardware instructions like compare-and-swap, allowing concurrent access without traditional locks while maintaining data consistency through atomicity guarantees.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The patent substitutes the mechanical locking system with hardware-level atomic instructions. Instead of using software-based locks that require thread blocking and context switching, the system uses CPU atomic instructions (compare-and-swap, fetch-and-add) that provide the necessary synchronization through hardware enforcement, eliminating the need for traditional locking mechanisms.

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

2Power

If the number of processing cores is increased to improve performance, then processing capacity increases, but lock contention increases leading to reduced efficiency

Engineering Contradiction:
Improveprocessing capacityVSAvoididle time due to lock contention
Core Design Contradiction:
PowerVSLoss of time

Solution Approach 1:

The patent segments the shared data structure into multiple independently accessible regions or uses per-core data structures that can be merged atomically. This segmentation allows multiple cores to operate on different segments simultaneously without interfering with each other, reducing lock contention while maintaining data integrity through periodic atomic merge operations.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent introduces an intermediary atomic operation layer between core access and data structure modification. Hardware atomic instructions act as intermediaries that coordinate access without requiring traditional locks, allowing multiple cores to proceed concurrently while ensuring only one core can modify a given data element at a time, thus reducing idle time.

Inventive Principle:
Principle #24Intermediary (Mediator)

3Productivity

If lock-less algorithms are implemented, then concurrency is improved and scalability increases, but implementation complexity increases

Engineering Contradiction:
ImproveconcurrencyVSAvoidimplementation complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The patent changes the fundamental parameter of synchronization from software-based locking to hardware-based atomic operations. By leveraging CPU atomic instructions that are natively supported by modern processors, the implementation complexity is reduced compared to software lock mechanisms, as the hardware provides the synchronization guarantees directly without requiring complex software protocols.

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS11698893B2System and method for use of lock-less techniques with a multidimensional database
Publication Date: 2023.07.11 ORACLE INT CORP
  • US11698893B2 patent drawing
  • US11698893B2 patent drawing
  • US11698893B2 patent drawing

AI summary

In accordance with an embodiment, described herein is a system and method for use of lock-less data structures and processes with a multidimensional database computing environment. Lock-less algorithms or processes can be implemented with specific hardware-level instructions so as to provide atomicity. A memory stores an index cache retaining a plurality of index pages of the multidimensional database. A hash table indexes index pages in the index cache, wherein the hash table is accessible by a plurality of threads in parallel through application of the lock-less process.