机密虚拟机中的查询成本模型校准
Query Cost Model Calibration in Confidential Virtual Machines
AI总结:
针对机密虚拟机中分析查询性能下降问题,提出轻量级成本校准方法,通过建模数据移动和RMP相关翻译开销,显著缩小性能差距。
摘要:
随着机密计算的日益普及,在机密虚拟机(如AMD SEV-SNP)中运行数据库已成为保护云端敏感数据的一种有吸引力的方式,且对传统数据库管理系统只需最小改动。然而,此类CVM中的分析查询常常遭受显著的开销,先前的数据库工作大多止步于对这些减速进行基准测试,而非优化它们。我们表明,这个问题源于硬件-软件不匹配:查询优化器仍然依赖基于KVM(非加密虚拟机)的成本假设,而这些假设在CVM中不再成立。为了解决这个问题,我们提出了一种轻量级的CVM感知成本校准方法。它使用优化器已可用的简单物理代理来建模两种主要的优化器面临的开销来源:数据移动和与RMP相关的地址转换。实验表明,该校准显著缩小了KVM/CVM的性能差距,恢复了高达48%的性能,甚至在某些工作负载上优于KVM基线。
英文摘要:
With the growing adoption of Confidential Computing, running databases in confidential virtual machines (CVMs) such as AMD SEV-SNP has become an attractive way to protect sensitive cloud data with minimal changes to legacy DBMSs. However, analytical queries in such CVMs often suffer substantial overhead, and prior database work has largely stopped at benchmarking these slowdowns rather than optimizing them. We show that this problem stems from a hardware-software mismatch: query optimizers still rely on KVM-oriented (non-encrypted VM) cost assumptions that no longer hold in CVMs. To address this, we propose a lightweight CVM-aware cost calibration. It models two dominant sources of optimizer-facing overhead: data movement and RMP-related translation using simple physical proxies already available to the optimizer. Experiments show that the calibration significantly narrows the KVM/CVM performance gap, recovering up to 48 percent performance and even outperforming the KVM baseline on some workloads.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。