Batchy: Batch-scheduling Data Flow Graphs with Service-level Objectives
Tamás Lévai, Felicián Németh, Barath Raghavan, Gábor Rétvári
Abstract
Data flow graphs are a popular program representation in machine learning, big data analytics, signal processing, and, increasingly, networking, where graph nodes correspond to processing primitives and graph edges describe control flow. To improve CPU cache locality and exploit data-level parallelism, nodes usually process data in batches. Unfortunately, as batches are split across dozens or hundreds of parallel processing pathways through the graph they tend to fragment into many small chunks, leading to a loss of batch efficiency.
We present Batchy, a scheduler for run-to-completion packet processing engines, which uses controlled queuing to efficiently reconstruct fragmented batches in accordance with strict service-level objectives (SLOs). Batchy comprises a runtime profiler to quantify batch-processing gain on different processing functions, an analytical model to fine-tune queue backlogs, a new queuing abstraction to realize this model in run-to-completion execution, and a one-step receding horizon controller that adjusts backlogs across the pipeline. We present extensive experiments on five networking use cases taken from an official 5G benchmark suite to show that Batchy provides 2-3× the performance of prior work while accurately satisfying delay SLOs.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 64dc573f-7e91-4a2f-8c26-404bed5e1469Cited by top-tier papers6
- HyperCalm Sketch: One-Pass Mining Periodic Batches in Data StreamsZirui Liu, Chaozhe Kong, Kaicheng Yang, Tong Yang et al.ICDE 2023 · 16 citations
- Packet Order Matters! Improving Application Performance by Deliberately Delaying PacketsHamid Ghasemirahni, Tom Barbette, Georgios P. Katsikas, Alireza Farshin et al.NSDI 2022 · 5 citations
- Mitigating CPU Frontend for Complex Data Plane ApplicationsYihan Dang, Hao Li, Ze Xia, Jiajun Luan et al.NSDI 2026
- Aquila: A High-Concurrency System for Incremental Graph QueryZiqi Zou, Hao Zhang, Jiaxin Yao, Kangfei Zhao et al.VLDB 2026
- A High-Speed Stateful Packet Processing Approach for Tbps Programmable SwitchesMariano Scazzariello, Tommaso Caiazzi, Hamid Ghasemirahni, Tom Barbette et al.NSDI 2023
Related papers
- Banyan: A Scoped Dataflow Engine for Graph Query ServiceLi Su, Xiaoming Qin, Zichao Zhang, Rui Yang et al.VLDB 2022 · 10 citations
- Lazy Batching: An SLA-aware Batching System for Cloud Machine Learning InferenceYujeong Choi, Yunseong Kim, Minsoo RhuHPCA 2021 · 65 citations
- weBurst can be Harmless: Achieving Line-rate Software Traffic Shaping by Inter-flow BatchingDanfeng Shan, Shihao Hu, Yuqi Liu, Wanchun Jiang et al.INFOCOM 2023 · 2 citations
- Programmable Calendar Queues for High-speed Packet SchedulingNaveen Kr. Sharma, Chenxingyu Zhao, Ming Liu, Pravein G. Kannan et al.NSDI 2020 · 119 citations
- RecPipe: Co-designing Models and Hardware to Jointly Optimize Recommendation Quality and PerformanceUdit Gupta, Samuel Hsia, Jeff Zhang, Mark Wilkening et al.MICRO 2021 · 31 citations
