Enable opt-in io_uring support in Cilium proxy

オープン
#2,104 コメント 0 件 リアクション 1 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@nezdolik がすでに取り組んでいます。

2026年10月20日 から。

評価

この issue はまだ評価されていません。

説明

Feature request

Add an opt-in configuration for using Envoy's io_uring socket backend in Cilium proxy, with documented requirements, supported tuning options and integration tests.

Motivation

Experiments with modified Cilium proxy builds showed throughput improvements for selected HTTP workloads:

Workload Observed throughput improvement
HTTP/1.1 GET, 512 B response +24.8%
HTTP/1.1 POST, 64 KiB upload +53.2%
HTTP/2 GET, 8 connections × 8 streams +7.6%
HTTP/2 upload/echo, 8 connections × 8 streams +11.0%

These HTTP measurements used three matched repetitions, one traffic worker, and real Cilium HTTP policy through Kubernetes NodePort. Default sockets and io_uring used the same binary within each comparison.

The improvements depended on receive batching, buffer-pool sizing, backpressure handling and, for HTTP/2, deferred task work. Enabling io_uring alone did not consistently improve performance.

Proposed scope

  • Ensure io_uring support is built and tested in Linux amd64 and arm64 proxy images.
  • Provide an explicit enablement mechanism, coordinating bootstrap/configuration wiring with cilium/cilium where needed.
  • Support the relevant upstream Envoy receive-tuning options.
  • Document kernel requirements, memory limits, per-worker buffer allocation and unsupported-configuration behavior.
  • Validate HTTP/1.1, HTTP/2 and TCP traffic, including policy enforcement, backpressure, connection flushing and worker shutdown.
  • Add reproducible benchmarks covering throughput, latency, CPU and memory usage.

Upstream dependencies

Envoy umbrella issue: https://github.com/envoyproxy/envoy/issues/48467

Follow-up: zero-copy TCP transmit

A separate experimental implementation combining SENDMSG_ZC with queue and resource tuning showed approximately +38–46% bulk TCP throughput versus the fastest tested default configurations.

That result used standalone host-network TCP proxying. It requires additional Envoy changes, production notification cleanup and configuration API work, so it should be tracked as a follow-up to initial io_uring enablement.

Benchmark limitations

The results are specific to the measured configurations and hardware. HTTP used modified Envoy 1.39.1 builds; the later TCP experiment used 1.39.3. Receive remained copied in these comparisons.

Broader validation is needed for multiple workers, TLS and representative production traffic.

Benchmark reports and reproduction artifacts: TODO — attach or link before posting.

主要言語
C++
スター
192
フォーク
104
平均マージ
1日 18時間
マージ済み PR(30日)
36

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

cilium/proxy のほかの issue

cilium/proxy の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。