Abstract
Traditional multi-user systems often struggle with balancing user flexibility and system security. This paper introduces the Container-based User Environment (CUE), a lightweight virtualization layer designed for multi-user and High-Performance Computing (HPC) systems. CUE provides a "user container" that sits between application-specific containers and full OS containers, allowing non-root users to customize their environments with minimal performance overhead and significantly faster startup times than existing solutions.
Introduction
In shared computing environments, users frequently encounter limitations regarding privacy and system customization. Standard Linux multi-user systems often expose user processes and files to others, and non-root users are restricted from modifying system-wide configurations or libraries. While virtualization technologies like Virtual Machines (VMs) and application containers (e.g., Docker) offer solutions, they are often too resource-intensive or too narrowly focused for general user environment isolation.
CUE addresses these challenges by introducing a middle-ground virtualization layer. It ensures privacy, enables non-root customization, and protects against disruptive system upgrades by isolating the user's environment from the host and other users. Unlike heavy-weight alternatives, CUE is designed to be persistent and follow the user across different nodes in a cluster.
Methodology
The core of CUE's efficiency lies in its use of native Linux kernel features, primarily the Overlay File System (OverlayFS), to create a lightweight "user container."
Overlay File System (OverlayFS)
CUE utilizes OverlayFS to mount the host's root directory as a read-only "lower layer." An empty, private directory serves as the "upper layer." When a user attempts to modify a file, the system performs a "copy-up" operation, writing the change only to the user's private upper layer. This allows users to perceive full control over the system while the actual host files remain untouched. This mechanism also allows users to prioritize custom libraries over system versions while still receiving updates for unmodified components.
Isolation and Capabilities
To further isolate the environment, CUE employs Linux Namespaces (PID and UTS) to hide external processes and allow custom hostnames. Instead of granting full root access, CUE provides specific Linux Capabilities within the container. This allows users to bypass certain permission checks for their own environment without compromising the host kernel's integrity. Furthermore, CUE uses a non-daemon model, allowing for direct execution and easier integration with job schedulers like SLURM.
Experimental Evaluation
The researchers evaluated CUE on a login server for the Tianhe supercomputer using an FT-1500A 16-core CPU and 64GB RAM. Benchmarks included NPB (NAS Parallel Benchmarks) for HPC workloads, Sysbench for CPU/memory throughput, and Fio for file system overhead.
Performance Results
- Computational Overhead: CUE demonstrated less than 1% performance overhead in CPU and memory tests compared to bare-metal execution.
- Startup Latency: CUE significantly outperformed Docker in startup speed. In a test of 100 concurrent containers, CUE initialized in 4.07 seconds, whereas Docker required 29.06 seconds—a 7x improvement critical for large-scale HPC deployments.
- I/O Impact: A minor overhead of approximately 4% was observed during intense small-file write operations, which is a known characteristic of OverlayFS metadata handling but rarely impacts typical HPC applications.
Conclusion
CUE offers a pragmatic solution for multi-user and HPC environments by shifting the virtualization focus to the user level. By leveraging lightweight kernel features, it provides a customizable, private, and high-performance workspace. Currently deployed on the Tianhe E prototype, CUE balances the needs of system administrators for security and users for flexibility. Future work will explore network isolation and more granular device sharing for specialized hardware like GPUs.
Summary updated