EPOCH:在异构FPGA系统中实现上下文保存的抢占操作
EPOCH: Enabling Preemption Operation for Context Saving in Heterogeneous FPGA Systems
AI总结:
EPOCH是首个实现多租户云FPGA任务状态无缝保存与恢复的框架,通过细粒度捕获FPGA核心元件状态,实现任务中断与恢复,提升异构FPGA系统的效率与可靠性。
摘要:
FPGAs在多租户云环境中被越来越多用于卸载计算密集型任务。操作系统在识别适合卸载的任务并协调CPU与FPGA之间无缝执行任务中起关键作用。操作系统利用抢占来高效管理CPU时间并平衡CPU时间;然而,中断在FPGA上运行的任务而不丢失上下文仍具挑战性。尽管FPGA的依赖性增长,但供应商尚未提供一个能够完全保存和恢复任务上下文的解决方案。本文提出了EPOCH,首个即插即用的框架,可无缝保存多租户云FPGA上运行任务的状态。EPOCH能够在任意时钟周期中断租户的执行,捕获其状态,并以细粒度将此'状态快照'保存到离芯片内存中。随后,当需要恢复任务时,EPOCH可以从保存的'状态快照'中恢复执行,从而无需从头开始重新启动任务。EPOCH自动化了复杂的过程,保护用户免受复杂性的影响,并在公共时钟域中同步所有底层逻辑,从而减少定时违规并确保中断的无缝处理。EPOCH能够高效捕获FPGA基本元件的状态,如查找表、触发器、块存储器和数字信号处理单元。在真实硬件ZynQ-XC7Z020 SoC上,所提出的方法实现了每帧62.2us和67.4us的上下文保存和恢复操作。
英文摘要:
FPGAs are increasingly used in multi-tenant cloud environments to offload compute-intensive tasks from the main CPU. The operating system (OS) plays a vital role in identifying tasks suitable for offloading and coordinating between the CPU and FPGA for seamless task execution. The OS leverages preemption to manage CPU efficiently and balance CPU time; however, preempting tasks running on FPGAs without context loss remains challenging. Despite growing reliance on FPGAs, vendors have yet to deliver a solution that fully preserves and restores task context. This paper presents EPOCH, the first out-of-the-box framework to seamlessly preserve the state of tasks running on multi-tenant cloud FPGAs. EPOCH enables interrupting a tenant's execution at any arbitrary clock cycle, capturing its state, and saving this 'state snapshot' in off-chip memory with fine-grain granularity. Subsequently, when task resumption is required, EPOCH can resume execution from the saved 'state snapshot', eliminating the need to restart the task from scratch. EPOCH automates intricate processes, shields users from complexities, and synchronizes all underlying logic in a common clock domain, mitigating timing violations and ensuring seamless handling of interruptions. EPOCH proficiently captures the state of fundamental FPGA elements, such as look-up tables, flip-flops, block--RAMs, and digital signal processing units. On real hardware, ZynQ-XC7Z020 SoC, the proposed solution achieves context save and restore operations per frame in 62.2us and 67.4us, respectively.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。