CapBuddy: Efficient Physical Memory Management for Capability-based Resource-controlling Microkernel
Zhuang Lu, Guangtao Zhu, Shijun Zhao, Qianying Zhang, Lixin Chen, Zekun Xu, Wu Luo, Rui Hou
Abstract
Capability-based resource-controlling microkernels securely multiplex hardware by exposing low-level resource abstractions guarded by capability systems. Such a design helps provide an application-specific resource management policy to achieve high performance without sacrificing security. However, the misuse of capability-protected secure abstractions can introduce performance overhead in user-level resource management, affecting the runtime performance of dynamic applications in emerging scenarios. In this paper, we focus on the secure abstraction of physical memory in microkernels with capability-based resource management delegation to investigate an appropriate design for dynamic memory management. We propose CapBuddy, an approach to building an efficient buddy system on capability-protected secure abstractions of memory, to bypass the performance overhead of the capability system by offloading functionalities that can run offline from the critical path of serving a memory request. We implemented a prototype system on the seL4 library OS, and the evaluation results show that our approach improves the performance of the seL4 user-level buddy system by 20 to 54.5 times and achieves the same order of magnitude as Linux. Further burst experiments evaluate CapBuddy's scalability and show that it maintains low median allocation latency as the number of concurrent clients increases.
Create a lesson
Metadata
- Comments
- Accepted by ACM Transactions on Architecture and Code Optimization (TACO)
Related papers
Tideway: Phase-Aware Tiered Memory Management for MoE Inference on Consumer Devices
Shared title terminologycs.OSYifei Wang, Tsun-yu Yang, Yechen Xu et al.
ToolSched: Resource-Efficient Tool Scheduling for Shared-Host LLM Agents
Shared title terminologycs.OSShucheng Zou, Yuhao Gu, Long Chen et al.
Rimuru: Unified Memory Management for Modern LLM Serving via Elastic Expert Offloading
Shared title terminologycs.OSZhiyuan Fang, Dingyang Li, Jianfeng Zhong et al.
AgentLens: Framework-Aware Characterization and Resource Control for Heterogeneous LLM Agents
Shared title terminologycs.OSWentao Hong
Memorix: Managing Memory Selections for AI Agents
Shared title terminologycs.OSJing Zhang, Xiaguannan Song, Dong Du et al.
GMM: Generalized OS Memory Management for Programmable XPUs
Shared title terminologycs.OSWeixi Zhu, Bin Wang, Zhiyuan Fang et al.