Closed-loop `--no-tui` reaches 3x of open loop with `-q`
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 28/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- rust
- 領域
- performance
調査の方向性
Reproduce with the documented taskset ... oha --no-tui ... -q <rate> command against a local server, then compare the two paths: fast::work_until (per-thread current-thread runtimes) and work_until_with_qps on the shared multi-thread runtime. Read the rate-limiting/scheduling code around those entry points and profile where offered rate is lost at high rps; #910 is referenced as related. Done means -q achieves close to the offered rate at the levels where it now plateaus near 500k rps. Expected to need async-runtime and benchmarking expertise.
索引モデルが issue の本文から書いたものです。
説明
On our setup, -q runs stop scaling at about 500k rps, whatever the server. Closed-loop --no-tui runs on the same machine reach 1.4M rps.
This was discovered during benchmarking of relic_native, but I have chosen to recreate with dusty to be certain, as I'm the maintainer of the former.
Setup
oha 1.17.0 on GCP c4-standard-48 (Xeon Platinum 8581C), Linux 7.0. Server and oha run in separate network namespaces over veth, server on CPUs 0-8, oha on 9-17. HTTP/1.1 keep-alive, with a plaintext response.
taskset -c 9-17 oha --no-tui --output-format json --worker-threads 8 -c 64 -z 5s [-q <rate>] http://<server>/plaintext
| server (closed-loop rps) | -q offered |
achieved | achieved / offered |
|---|---|---|---|
| dusty, 8 executors (1,444k) | 722k | 482k | 67% |
| 1,083k | 492k | 45% | |
| 1,299k | 491k | 38% | |
| 1,444k | 496k | 34% | |
| hyper, 1 worker (263k) | 132k | 131k | 99% |
| 237k | 237k | 100% | |
| 263k | 260k | 99% |
Possible cause
Closed loop with --no-tui takes fast::work_until, which runs one current-thread runtime per thread. -q takes work_until_with_qps on the shared multi-thread runtime. Seems related to #910, but the issue was the same before 1.7.0.
- 主要言語
- Rust
- スター
- 10.7k
- フォーク
- 311
- 平均マージ
- 24分
- マージ済み PR(30日)
- 6
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
hatoo/oha のほかの issue
-
難易度 2/5 半日 初心者へのやさしさ 62/100
-
Panic: Unwrapping send on closed report channel causes ReceiveClosed in worker tasks under load対応中かも @tyr1k が 173 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
-
HTTP/3 very slowオープン
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
似ている issue
-
marketing
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
help wanted small extra
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
anomalyco/rune#2432 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
n0-computer/net-tools#282 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
eliasstravik/herdr-projects#1551 ·