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

在 Serverless 中,OS 调度器的选择会增加成本:一种降低 FaaS 成本的混合调度方法

In Serverless, OS Scheduler Choice Costs Money: A Hybrid Scheduling Approach for Cheaper FaaS

Yuxuan Zhao, Weikang Weng, Rob van Nieuwpoort, Alexandru Uta

AI总结:

针对 Linux 默认 CFS 调度器导致 serverless 高并发工作负载成本增加高达 10 倍的问题,提出一种混合两级调度方法,短时函数以无抢占 FIFO 执行,长时函数交由 CFS,显著降低用户成本且无提供商开销。

摘要:

在 Function-as-a-Service (FaaS) serverless 中,大型应用被拆分为短生命周期的无状态函数。部署函数是互利的:用户无需关心资源管理,而提供商可以保持服务器高利用率,在单台机器上并发运行数千个函数。正是这种高并发带来了成本。标准的 Linux Completely Fair Scheduler (CFS) 频繁切换任务,导致执行时间延长。我们提供的证据表明,依赖默认的 Linux CFS 调度器会使 serverless 工作负载成本增加高达 10 倍。在本文中,我们呼吁并主张针对由许多短生命周期进程组成的 serverless 工作负载重新思考 Linux 中的 OS 级调度。为了使 serverless 更经济实惠,我们引入了一种依赖 FaaS 特性的混合两级调度方法。短时运行的函数以 FIFO 方式执行且无抢占,而长时运行的函数在一定时间后被传递给 CFS。我们证明,量身定制的 OS 调度能够显著降低面向用户的成本,且不会增加任何面向提供商的开销。

英文摘要:

In Function-as-a-Service (FaaS) serverless, large applications are split into short-lived stateless functions. Deploying functions is mutually profitable: users need not be concerned with resource management, while providers can keep their servers at high utilization rates running thousands of functions concurrently on a single machine. It is exactly this high concurrency that comes at a cost. The standard Linux Completely Fair Scheduler (CFS) switches often between tasks, which leads to prolonged execution times. We present evidence that relying on the default Linux CFS scheduler increases serverless workloads cost by up to 10X. In this article, we raise awareness and make a case for rethinking the OS-level scheduling in Linux for serverless workloads composed of many short-lived processes. To make serverless more affordable we introduce a hybrid two-level scheduling approach that relies on FaaS characteristics. Short-running functions are executed in FIFO fashion without preemption, while longer-running functions are passed to CFS after a certain time period. We show that tailor-made OS scheduling is able to significantly reduce user-facing costs without adding any provider-facing overhead.

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

↑