TCP flow state tracking should be lockless, if possible
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
- issue の種類
- リファクタリング
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- rust
調査の方向性
まず、KMutex によって保護されている fastpath の TCP フロー状態更新を特定し、Rx および Tx パケット処理がそこに到達する経路を追跡します。TcpState の遷移とカウンタ更新を確認し、そのうえで、提案された compare-and-swap アプローチが並行アクセス下でも正しさを維持できるかを判断します。TCP 状態がフローごとの mutex 競合なしに正しく保たれ、fastpath のパフォーマンスが向上すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
For TCP flows, once a fastpath entry has been acquired we need to update the TCP state based on the flags seen in a packet. Today this is guarded using a KMutex<T>, which ends up as a place where contention can arise for a single flow. Mainly, this is because the Rx packet processing and Tx packet processing are going to be happening on different threads unless we get very lucky with squeue bindings.
Outright removing the TCP state gets us around 500 Mbps, but I think in general we do want to keep it in place. My thinking here is that most state transitions are going to be trivial: e.g., moving from TcpState::Established to itself, and incrememting some counters. Everything else could be probably handled by computing the transform, performing a compare-and-swap between the old and target states, and then looping those steps if the comparison fails.
- 主要言語
- Rust
- スター
- 82
- フォーク
- 16
- 平均マージ
- 3日 6時間
- マージ済み PR(30日)
- 11
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
oxidecomputer/opte のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
oxidecomputer/opte#1125 ·
メンテナーはふだん 2 日以内に返信
-
`PortBuilder::add_layer` doesn't need a mutex対応中かも @FelixMcFelix が 54 日前に担当しました。 オープンcleanup
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
oxidecomputer/opte#1061 ·
メンテナーはふだん 2 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
oxidecomputer/opte#1052 ·
メンテナーはふだん 2 日以内に返信
-
good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
oxidecomputer/opte#341 ·
メンテナーはふだん 2 日以内に返信
-
`Layer` creation should not unwrap `KStatNamed`対応中かも @FelixMcFelix が 54 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 40/100
oxidecomputer/opte#1126 ·
メンテナーはふだん 2 日以内に返信
oxidecomputer/opte の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
qingjian-team/qingjian#1181 ·
メンテナーはふだん 2 日以内に返信
-
bug P2: medium
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
leepokai/Codync#618 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[Bug] StreamLifecycleConfig clamps post-TTFT stream timeouts to remaining admission budget対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
lbjlaq/Antigravity-Manager#4063 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
solutionscay/skiff#297 ·
メンテナーはふだん 1 日以内に返信