arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2212.08146cs.DC
收藏

Kernel-as-a-Service:GPU的无服务器接口

Kernel-as-a-Service: A Serverless Interface to GPUs

Nathan Pemberton, Anton Zabreyko, Zhoujie Ding, Randy Katz, Joseph Gonzalez

摘要:

无服务器计算使得在可扩展的云资源上部署应用程序比以往任何时候都更容易,同时也为云提供商带来了更高的利用率。虽然这种技术对于CPU和本地DRAM等容易分割的资源效果很好,但它很难整合更昂贵的单片资源,如GPU或其他应用程序加速器。我们不能简单地将GPU放在FaaS平台上,并期望保持无服务器承诺的所有好处。如果我们想最好地利用这些关键资源,我们需要一个更有针对性的方法。在本文中,我们介绍了内核即服务(KaaS),这是一种面向GPU的无服务器接口。在KaaS中,GPU是一等公民,就像任何其他无服务器功能一样被调用。KaaS不像通常那样混合主机和GPU代码,而是运行仅GPU代码的图形,而主机代码运行在传统函数上。KaaS系统负责管理GPU内存并跨整个可用GPU池调度用户内核,而不是依赖于静态分配。这种方法使我们能够更有效地共享昂贵的GPU资源,特别是在云计算等多租户环境中。我们将对KaaS的支持添加到Ray分布式计算框架中,并使用包括基于TVM的深度学习编译器和BLAS库在内的工作负载对其进行评估。我们的研究结果表明,当GPU资源竞争时,KaaS能够将吞吐量提高50倍,延迟降低16倍。

英文摘要:

Serverless computing has made it easier than ever to deploy applications over scalable cloud resources, all the while driving higher utilization for cloud providers. While this technique has worked well for easily divisible resources like CPU and local DRAM, it has struggled to incorporate more expensive and monolithic resources like GPUs or other application accelerators. We cannot simply slap a GPU on a FaaS platform and expect to keep all the benefits serverless promises. We need a more tailored approach if we want to best utilize these critical resources. In this paper we present Kernel-as-a-Service (KaaS), a serverless interface to GPUs. In KaaS, GPUs are first-class citizens that are invoked just like any other serverless function. Rather than mixing host and GPU code as is typically done, KaaS runs graphs of GPU-only code while host code is run on traditional functions. The KaaS system is responsible for managing GPU memory and schedules user kernels across the entire pool of available GPUs rather than relying on static allocations. This approach allows us to more effectively share expensive GPU resources, especially in multitenant environments like the cloud. We add support for KaaS to the Ray distributed computing framework and evaluate it with workloads including a TVM-based deep learning compiler and a BLAS library. Our results show that KaaS is able to drive up to 50x higher throughput and 16x lower latency when GPU resources are contended.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑