RDMA Copy-on-Write Memory Page Management

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Conventional systems trigger a copy-break at RDMA registration time when memory pages are shared using copy-on-write methods, preventing memory overcommitment but limiting the ability to run multiple virtual machines efficiently.

Innovation Solution

Implementing RDMA with copy-on-write support by delaying the copy-break until a memory page is actually modified, allowing for write protection and subsequent copying and re-registration of the memory page to a new physical address, enabling efficient memory management and overcommitment in systems with multiple virtual machines.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If a copy-break is triggered at RDMA registration time for shared memory pages, then memory corruption is prevented, but memory overcommitment is prevented and resource utilization is reduced

Engineering Contradiction:
Improvememory corruption preventionVSAvoidmemory overcommitment
Core Design Contradiction:
ReliabilityVSQuantity of substance

Solution Approach 1:

The patent applies preliminary action by setting up write protection and copy-on-write mappings before RDMA operations occur. The memory page is prepared with protective mechanisms in advance, but the actual copy is deferred until a write operation is detected, thus preventing corruption while allowing overcommitment.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent implements dynamics by making the memory mapping flexible - it starts as a shared copy-on-write mapping that can dynamically transition to a private copy only when necessary. This dynamic adjustment allows the system to adapt between memory efficiency and safety based on actual operation needs.

Inventive Principle:
Principle #15Dynamics

2Reliability

If a copy-break is triggered at RDMA registration time, then memory safety is ensured, but resource utilization and efficiency are reduced

Engineering Contradiction:
Improvememory safetyVSAvoidresource utilization
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The patent uses copying selectively - instead of always creating a private copy at registration time, it maintains a shared mapping and only creates a copy when a write operation is detected. This selective copying approach ensures safety while maximizing resource utilization by avoiding unnecessary duplicates.

Inventive Principle:
Principle #26Copying

3Quantity of substance

If memory pages are shared using copy-on-write methods without RDMA support, then memory overcommitment is enabled, but memory corruption may occur during RDMA operations

Engineering Contradiction:
Improvememory overcommitmentVSAvoidmemory corruption prevention
Core Design Contradiction:
Quantity of substanceVSReliability

Solution Approach 1:

The patent introduces an intermediary mechanism - a page fault handler that acts as a mediator between the RDMA operation and the memory page. When a write operation is detected, the handler intercepts the operation, creates a private copy, and then allows the write to proceed, thus preventing corruption while maintaining overcommitment capabilities.

Inventive Principle:
Principle #24Intermediary (Mediator)

4Quantity of substance

If no copy-break is triggered for shared memory pages, then memory overcommitment is enabled, but detection of modification attempts becomes difficult

Engineering Contradiction:
Improvememory overcommitmentVSAvoidmodification detection
Core Design Contradiction:
Quantity of substanceVSDifficulty of detecting and measuring

Solution Approach 1:

The patent applies preliminary anti-action by preemptively setting write protection on shared memory pages before any RDMA operations occur. This preliminary protective measure prevents unauthorized modifications without requiring active monitoring or detection mechanisms, thus enabling overcommitment while maintaining security.

Inventive Principle:
Principle #9Preliminary anti-action

Data Source

PatentUS9841927B2Remote direct memory access with copy-on-write support
Publication Date: 2017.12.12 RED HAT ISRAEL
  • US9841927B2 patent drawing
  • US9841927B2 patent drawing
  • US9841927B2 patent drawing

AI summary

Systems and methods for implementing remote direct memory access (RDMA) with copy-on-write support. An example method may comprise: registering, with an RDMA adapter, by a first computer system, a mapping of a first virtual address to a first physical address, for transmitting a memory page identified by the first virtual address to a second computer system; registering, with the RDMA adapter, a mapping of a second virtual address to the first physical address; detecting an attempt to modify the memory page; copying the memory page to a second physical address; and registering, with the RDMA adapter, a mapping of a first virtual address to the second physical address.