Virtual Machine Swap File Reorganization for Read Latency Reduction

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Double-paging issues in virtual machines lead to increased read I/O latency due to the need to access and swap content between guest and host swap files, resulting in inefficient memory management and multiple read requests.

Innovation Solution

The virtualization software reorganizes guest content in swap files to store it contiguously, reducing the number of I/O requests needed for retrieval by copying or migrating blocks between swap files, and communicating with the I/O scheduler to optimize resource usage.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If the hypervisor accesses content on both the guest swap file and the host swap file to resolve double-paging, then the double-paging problem is solved, but the read I/O latency increases due to multiple read requests

Engineering Contradiction:
Improvedouble-paging resolutionVSAvoidread I/O latency
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The system performs preliminary actions by pre-positioning content in the guest swap file before it is needed. When the hypervisor needs content, it first checks the guest swap file and finds the content already there, avoiding the need to read from the host swap file. This preliminary placement of content resolves the double-paging issue while preventing the latency penalty of multiple read requests.

Inventive Principle:
Principle #10Preliminary action

2Reliability

If the hypervisor performs multiple read requests to the same swap file to retrieve content, then all required content is obtained, but the I/O operations become inefficient and latency increases

Engineering Contradiction:
Improvecontent retrieval completenessVSAvoidI/O operation efficiency
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The system merges the content retrieval operations by consolidating multiple potential read requests into a single read operation. The hypervisor first reads from the guest swap file, which now contains the needed content, thereby combining what would have been separate read operations into one efficient I/O call.

Inventive Principle:
Principle #5Merging (Combining)

Solution Approach 2:

The system uses copying to create a local copy of content in the guest swap file. Instead of repeatedly reading from the host swap file, the content is copied to the guest swap file where it can be served locally, eliminating redundant read operations and improving I/O efficiency.

Inventive Principle:
Principle #26Copying

Data Source

PatentUS9342248B2Techniques for reducing read I/O latency in virtual machines
Publication Date: 2016.05.17 VMWARE INC
  • US9342248B2 patent drawing
  • US9342248B2 patent drawing
  • US9342248B2 patent drawing

AI summary

A computer implemented method for reducing the latency of an anticipated read of disk blocks from a swap file in a virtualized environment. The environment includes a host swap file maintained by a host operating system and a guest swap file maintained but a guest operating system. First, the method identifies a sequence of disk blocks that was written in the guest swap file. The method then detects within the sequence of blocks a first disk block that contains a reference to a second disk block that is stored in the host swap file. The method then replaces the first disk block in the guest swap file with the second disk block.