Hybrid Container Image Pulling With FUSE-to-Overlay FS Handoff

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing methods for lazy pulling container images incur resource overhead due to file requests needing to go through a user-space file system (FUSE) even after the image is locally fetched, as the higher level logic is implemented in user space, causing inefficiency.

Innovation Solution

A hybrid approach where a file system in user space (FUSE) manages file requests during container image fetching, transitioning to kernel-based file system (Overlay FS) once the image is fully fetched, allowing the FUSE to unmount and reducing resource overhead.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Ease of operation

If a file system in user space (FUSE) is used to manage file requests during container image fetching, then the container can be started before the image is fully fetched, but resource overhead increases and performance decreases due to user-space processing

Engineering Contradiction:
Improvecontainer startup capabilityVSAvoidfile request processing efficiency
Core Design Contradiction:
Ease of operationVSProductivity

Solution Approach 1:

The patent segments the file system processing into two distinct phases: an initial user-space phase using FUSE to enable container startup before image completion, and a subsequent kernel-space phase using Overlay FS to handle file requests efficiently after image fetching completes. This segmentation allows the system to benefit from both approaches at different stages.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent implements a dynamic transition between file system implementations, switching from FUSE (user-space) to Overlay FS (kernel-space) based on the completion status of image fetching. This dynamic adaptation optimizes performance by using the appropriate file system type for each operational phase.

Inventive Principle:
Principle #15Dynamics

2Adaptability or versatility

If FUSE is used to intercept and fetch files on demand, then lazy pull is enabled, but resource overhead increases due to user-space file system processing

Engineering Contradiction:
Improvelazy pull capabilityVSAvoidresource overhead
Core Design Contradiction:
Adaptability or versatilityVSUse of energy by moving object

Solution Approach 1:

The patent performs preliminary file fetching actions through FUSE during container startup and initialization, enabling lazy pull functionality. Once the image is fully fetched and stored in the container registry, the system transitions to Overlay FS which handles subsequent file requests without the overhead of user-space processing.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent uses FUSE as an intermediary mechanism during the initial phase to enable lazy pull functionality, allowing the container to access files on demand before the complete image is available. After the image is fully fetched, this intermediary is removed by unmounting FUSE and transitioning to the native kernel-space Overlay FS.

Inventive Principle:
Principle #24Intermediary (Mediator)

3Adaptability or versatility

If higher level logic is implemented in user space for FUSE, then flexibility is improved, but resource overhead and processing time increase

Engineering Contradiction:
Improvefile system logic flexibilityVSAvoidfile request processing time
Core Design Contradiction:
Adaptability or versatilityVSLoss of time

Solution Approach 1:

The patent copies the file system logic from user-space FUSE to kernel-space Overlay FS after the initial fetching phase. This copying allows the system to eliminate the performance overhead of user-space processing while maintaining the functional capabilities needed for container operation.

Inventive Principle:
Principle #26Copying

Data Source

PatentUS12443401B2Hybrid approach to performing a lazy pull of container images
Publication Date: 2025.10.14 RED HAT LLC
  • US12443401B2 patent drawing
  • US12443401B2 patent drawing
  • US12443401B2 patent drawing

AI summary

Embodiments of the present disclosure provide a hybrid approach to performing a lazy pull of a container image. A file system in user space (FUSE) is utilized to lazy pull the container image, and manage file requests from the container while the container image is being fetched locally. During the retrieving, the FUSE may receive from the container, one or more file requests, and may temporarily block each of the one or more file requests until it can process them. Once the container image is fully fetched locally, the overlay structure of the container image expected by a file system in the kernel (e.g., Overlay FS) is created and control is passed to the file system in the kernel. The FUSE may then unmount itself, to expose the container to the underlying mount point.