Cache Line Segmentation for False Sharing Mitigation

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

In symmetric multiprocessing (SMP) systems, cache line contention leads to increased data transfer frequency and overhead, causing performance degradation due to false structure sharing, which is complex and costly to diagnose and mitigate.

Innovation Solution

Implementing an extended hot line table (eHLT) and virtual address intercept table (VIT) to track and dynamically segment cache lines into sub-lines, reducing contention by firmware and software intervention.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Difficulty of detecting and measuring

If cache line tracking is implemented to identify false sharing, then diagnostic capability is improved, but device complexity increases

Engineering Contradiction:
Improvefalse sharing detectionVSAvoidhot line table structure
Core Design Contradiction:
Difficulty of detecting and measuringVSDevice complexity

Solution Approach 1:

The cache line tracking structure is segmented into multiple independent tables: a hot line table that tracks frequently accessed cache lines, a false sharing detection table that identifies false sharing patterns, and a virtual address intercept table that remaps addresses. This segmentation allows each table to have a specific, simplified function while collectively providing comprehensive false sharing detection capability.

Inventive Principle:
Principle #1Segmentation

2Productivity

If cache line segmentation is implemented to reduce contention, then system performance is improved, but device complexity increases

Engineering Contradiction:
ImproveSMP system performanceVSAvoidcache line segmentation mechanism
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

Cache lines are segmented into smaller sub-lines, allowing independent tracking and management of different portions of the cache line. This segmentation enables the system to identify and mitigate false sharing at the sub-line level, reducing contention overhead while maintaining the ability to track cache behavior through simplified per-sub-line metadata.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent introduces intermediary data structures (hot line table, false sharing detection table, virtual address intercept table) that mediate between the cache memory and processors. These intermediaries track and manage cache line segmentation without requiring complex modifications to the underlying cache hardware, thereby improving performance while controlling complexity.

Inventive Principle:
Principle #24Intermediary (Mediator)

3Measurement precision

If extended hot line table with metadata is used to track cross-core contended cache lines, then contention information accuracy is improved, but loss of time increases

Engineering Contradiction:
Improvecontention information accuracyVSAvoidpolling and aggregation time
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The hot line table pre-identifies and tracks cache lines that are likely to be contended before actual false sharing occurs. By maintaining preliminary tracking information including sub-line access patterns and contention metadata, the system prepares detection data in advance, reducing the time required for actual false sharing detection and mitigation.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent replaces complex mechanical polling and aggregation mechanisms with streamlined table-based tracking. The extended hot line table structure organizes contention information in a format that enables efficient querying and analysis, substituting intricate detection procedures with simpler table lookups and metadata analysis, thereby improving accuracy while reducing time loss.

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

Data Source

PatentUS20250370933A1Detecting and mitigating false structure sharing within a cache line
Publication Date: 2025.12.04 INTERNATIONAL BUSINESS MACHINE CORPORATION
  • US20250370933A1 patent drawing
  • US20250370933A1 patent drawing
  • US20250370933A1 patent drawing

AI summary

Examples described herein provide a computer-implemented method that includes generating an extended hot line table that tracks cross-core contended cache lines for multiple processors of a processing system based on cache requests, the extended hot line table storing at least metadata for a cross-core contended cache line. The method further includes polling, using firmware, the extended hot line table in each of the multiple processors of the processing system to identify contention information. The method further includes aggregating the contention information from each of the multiple processors to generate aggregated contention information. The method further includes processing subsequent cache requests using the aggregated contention information.