User Space Pager Service for Kernel Memory Paging

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing operating systems face challenges in efficiently managing memory for mutable file systems, particularly in supporting demand paging and writeback operations, which can lead to increased complexity and vulnerabilities in the kernel.

Innovation Solution

A communication mechanism between the kernel and user space file systems is established, allowing for the creation of virtual memory objects (VMOs) backed by a user space pager service. This enables demand paging and writeback support, allowing only accessed file parts to be in memory and enabling direct file system modifications without kernel intervention.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If memory management and file system logic are controlled entirely by the kernel, then system control and security are improved, but device complexity and vulnerability surface increase

Engineering Contradiction:
Improvesystem securityVSAvoidkernel complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent extracts file system logic and pager service from the kernel into user space. A user-space pager service handles memory management tasks such as demand paging and writeback operations, while the kernel maintains only essential control structures and interfaces. This extraction reduces kernel complexity and vulnerability surface while preserving system control through standardized kernel-user space interfaces.

Inventive Principle:
Principle #2Taking out (Extraction)

2Reliability

If file system code is included in the kernel, then system control is improved, but the trusted computing base size and vulnerability exploitation risk increase

Engineering Contradiction:
Improvesystem controlVSAvoidvulnerability exploitation risk
Core Design Contradiction:
ReliabilityVSObject-affected harmful factors

Solution Approach 1:

The patent moves the file system pager service to user space, extracting potentially vulnerable file system logic from the kernel. The user-space pager handles demand paging, writeback, and file synchronization operations, isolating these functions from the kernel's trusted computing base. The kernel maintains control through structured interfaces and data structures, minimizing the attack surface while preserving system control.

Inventive Principle:
Principle #2Taking out (Extraction)

3Quantity of substance

If demand paging is implemented without writeback support, then memory efficiency is improved, but functionality for mutable file systems is lost

Engineering Contradiction:
Improvememory usageVSAvoidmutable file system support
Core Design Contradiction:
Quantity of substanceVSAdaptability or versatility

Solution Approach 1:

The user-space pager service autonomously manages writeback operations for dirty pages. When processes modify pages in memory, the pager tracks these changes and automatically writes modified data back to the underlying file system on demand. This self-service mechanism enables full mutable file system support while maintaining memory efficiency through selective paging and writeback.

Inventive Principle:
Principle #25Self-service

4Productivity

If direct writes to VMO contents are allowed without kernel intervention, then processing speed is improved, but system control may be compromised

Engineering Contradiction:
Improveprocessing speedVSAvoidsystem control
Core Design Contradiction:
ProductivityVSReliability

Solution Approach 1:

The user-space pager acts as an intermediary between processes and the kernel for memory operations. Processes can directly write to virtual memory objects (VMOs) in user space, achieving high-speed access without kernel intervention. The pager mediates these operations by tracking dirty pages and managing writeback to persistent storage, while the kernel maintains control through defined interfaces and data structures, balancing speed and control.

Inventive Principle:
Principle #24Intermediary (Mediator)

Data Source

PatentUS12306768B2Kernel support for memory paging
Publication Date: 2025.05.20 GOOGLE LLC
  • US12306768B2 patent drawing
  • US12306768B2 patent drawing
  • US12306768B2 patent drawing

AI summary

A memory management method is provided, which includes assigning separate virtual addresses to processes in user space, include to a file system configured to read/write to persistent storage. Virtual memory objects (VMOs) are created in user space that are backed by a user space pager service. Such objects including pages representing a file associated with information maintained in persistent storage. A pager manages reading/writing to persistent storage. The pager populates pages for a given VMO using data retrieved from persistent storage. Upon populating the pages, a state of the VMO is set to a clean state. Upon writing to the pages, the state of the VMO is set to a dirty state. Upon initiating writing back to persistent storage, the state of the VMO is set to an awaiting clean state. Upon ending the writing back, the state of the VMO is set to clean.