Host zerocopy path: bundle deregistration acks instead of one NcpyOperationInfo message per buffer

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

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

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
22/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
cpp, hpc

調査の方向性

Start from handleEntryMethodApiCompletion on the host RDMA path, where one CmiInvokeRemoteDeregAckHandler / NcpyOperationInfo reverse message is sent per completed buffer, then compare with the id-and-piggyback scheme already used on the device path in #3961. Keep remoteDeregHandler's two guards (compare by node not PE; never re-enter the completion path). Carry the 8-byte id block on the nocopy metadata message rather than the converse header. Done when host-path deregistration and source callbacks match the device path's bundled acks without extra per-buffer messages on the critical path.

索引モデルが issue の本文から書いたものです。

説明

Host zerocopy path: bundle deregistration acks instead of one NcpyOperationInfo message per buffer

On the host RDMA path, handleEntryMethodApiCompletion sends one reverse message per completed buffer (CmiInvokeRemoteDeregAckHandler, carrying the whole NcpyOperationInfo, about 200 bytes) so the source PE can deregister and then invoke the source callback (remoteDeregHandler). That is one message per buffer per message, on the critical path of the source PE.

The device path now does the same job with an 8-byte id per buffer, minted on the sender and resolved there, carried back inside the first descriptor of the next zerocopy message the receiver sends to that PE (capacity 8, count-prefixed), with a standalone message only on overflow or at idle (#3961). Measured on Frontier (8x MI250X, Slingshot, Jacobi with 2-16 KB ghosts): the release went from ~4 us per remote message to ~0.3 us, and a requested source callback from 6-20% of a chare-iteration to 3-4%.

Nothing in that mechanism is device-specific: the id table, the per-destination accumulator, and the block on the descriptor would carry a host buffer's release and callback just as well. Proposal: give the host path the same id-and-piggyback scheme, keeping remoteDeregHandler's two guards (compare by node, not PE; never re-enter the completion path, which loops and leaks a QdCreate per pass), and carry the block on the nocopy metadata message rather than in the converse header.

Not done in #3961 on purpose: it touches the host path's completion state machine and deserves its own review.

主要言語
C++
スター
241
フォーク
62
平均マージ
1日 1時間
マージ済み PR(30日)
125

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

charmplusplus/charm のほかの issue

charmplusplus/charm の issue をすべて見る

似ている issue

C++ の issue をもっと見る

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

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