Serverless computing relies on extreme multi-tenancy to remain economically viable, driving providers to rely on virtual machines (VMs) that ensure strong isolation and seamless ecosystem compatibility with the FaaS programming model. However, current architectures tightly couple application processing logic with I/O processing, forcing every VM to duplicate a heavy communication fabric (cloud SDK, RPC, and TCP/IP). Our analysis reveals this duplication consumes over 25% of a function's memory footprint, and may double the CPU cycles in VMs compared to bare-metal execution. While prior systems attempt to solve this using WebAssembly or library OSes, they naively sacrifice ecosystem compatibility, forcing developers to migrate code and dependencies to new languages. We introduce Nexus, a serverless-native KVM-based hypervisor that transparently decouples compute from I/O. Nexus shifts the execution model by intercepting communication fabric at the API boundary and offloading it to an always-on host shared backend via zero-copy shared memory. This removes the heavyweight communication fabric from the guest VM, while preserving the conventional serverless programming model. By structurally separating these domains, Nexus unlocks asynchronous I/O optimizations: overlapping input payload prefetching with VM restoration from a snapshot and writing output payloads back to storage off the critical path. Compared to the production baseline, Nexus reduces overall node-level CPU and memory consumption by up to 44% and 31%, respectively, thus increasing deployment density by 37%. Also, Nexus reduces warm- and cold-start latency by 39% and 10%, respectively, bringing the response time within 20% of that of a WASM-based, ecosystem-incompatible hypervisor.


翻译:无服务器计算依赖于极致的多租户特性以保持经济可行性,这促使提供商采用虚拟机(VM)来确保强隔离性及与FaaS编程模型的无缝生态兼容性。然而,当前架构将应用处理逻辑与I/O处理紧密耦合,迫使每个虚拟机复制繁重的通信框架(云SDK、RPC及TCP/IP)。我们的分析表明,这种重复消耗了函数超过25%的内存占用,且可能导致虚拟机CPU周期相比裸机执行翻倍。尽管先前系统尝试使用WebAssembly或库级操作系统解决该问题,但它们天真地牺牲了生态兼容性,迫使开发者将代码和依赖项迁移至新语言。我们提出Nexus——一种基于KVM的无服务器原生虚拟机监控器,通过透明方式解耦计算与I/O。Nexus在API边界拦截通信框架并将其通过零拷贝共享内存卸载至始终在线的宿主机共享后端,从而转变执行模型。这既移除了客户虚拟机中的繁重通信框架,又保留了传统的无服务器编程模型。通过结构分离这两个域,Nexus解锁了异步I/O优化:将输入载荷预取与快照恢复虚拟机重叠,并在关键路径之外将输出载荷写回存储。与生产基线相比,Nexus将节点级CPU和内存消耗分别降低44%和31%,因此部署密度提升37%。此外,Nexus将冷启动和温启动延迟分别降低39%和10%,使响应时间接近基于WASM但生态不兼容的虚拟机监控器(差距在20%以内)。

0
下载
关闭预览

相关内容

服务器,也称伺服器,是提供计算服务的设备。由于服务器需要响应服务请求,并进行处理,因此一般来说服务器应具备承担服务并且保障服务的能力。
服务器的构成包括处理器、硬盘、内存、系统总线等,和通用的计算机架构类似,但是由于需要提供高可靠的服务,因此在处理能力、稳定性、可靠性、安全性、可扩展性、可管理性等方面要求较高。
无人机边缘计算: 架构、多址接入与计算卸载
专知会员服务
36+阅读 · 2024年9月16日
国家标准《信息技术云计算参考架构》
专知会员服务
37+阅读 · 2024年5月24日
《移动云中安全可信的任务卸载》论文
专知会员服务
18+阅读 · 2023年3月25日
【伯克利博士论文】理解和探索无服务器云计算,233页pdf
专知会员服务
22+阅读 · 2022年12月31日
专知会员服务
37+阅读 · 2021年7月8日
【数据中台】什么是数据中台?
产业智能官
18+阅读 · 2019年7月30日
专访阿里亚顿:Serverless与BFF与前端
前端之巅
45+阅读 · 2019年5月8日
被动DNS,一个被忽视的安全利器
运维帮
11+阅读 · 2019年3月8日
边缘计算(一)——边缘计算的兴起
大数据和云计算技术
12+阅读 · 2018年12月25日
边缘计算:万物互联时代新型计算模型
计算机研究与发展
15+阅读 · 2017年5月19日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
1+阅读 · 2015年12月31日
国家自然科学基金
3+阅读 · 2015年12月31日
国家自然科学基金
2+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
1+阅读 · 2014年12月31日
国家自然科学基金
2+阅读 · 2014年12月31日
VIP会员
最新内容
综述 | 3D场景图:开放挑战与未来方向
专知会员服务
4+阅读 · 6月22日
21世纪的无人机战争
专知会员服务
4+阅读 · 6月22日
《量子技术的军事任务技术适配与利用》
专知会员服务
4+阅读 · 6月22日
美国从乌克兰无人机战争中学习经验
专知会员服务
7+阅读 · 6月21日
ICML 2026 | 面向视觉语言模型的语义鲁棒性认证
专知会员服务
5+阅读 · 6月21日
相关基金
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
1+阅读 · 2015年12月31日
国家自然科学基金
3+阅读 · 2015年12月31日
国家自然科学基金
2+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
1+阅读 · 2014年12月31日
国家自然科学基金
2+阅读 · 2014年12月31日
Top
微信扫码咨询专知VIP会员