Commit c17c48a
committed
prov/shm: fix RMA read and write bandwidth regressions
Read fix: extend smr_do_fast_rma to use sender-side CMA for RMA reads
at all sizes (not just > SMR_INJECT_SIZE). Delivery is inherently
complete when process_vm_readv returns. This avoids the receiver-side
CMA round-trip that regresses 20-25% on Graviton and AMD at 1-4096B.
Write fix: allow FI_REMOTE_CQ_DATA through smr_rma_fast so writedata
uses sender-side CMA instead of the receiver-side IOV path with its
expensive atomic return queue. The sender does process_vm_writev
directly, then posts ofi_op_write_async with cq_data. The receiver
generates the remote CQ entry on seeing SMR_REMOTE_CQ_DATA in the
write_async notification.
Both target buffers are always registered MRs with pinned pages, making
sender-side CMA safe for reads and writes.
Signed-off-by: Yin Li <yinliq@amazon.com>1 parent 0518a42 commit c17c48a
2 files changed
Lines changed: 31 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1334 | 1334 | | |
1335 | 1335 | | |
1336 | 1336 | | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
| 1342 | + | |
| 1343 | + | |
| 1344 | + | |
| 1345 | + | |
| 1346 | + | |
1337 | 1347 | | |
1338 | 1348 | | |
1339 | 1349 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
50 | 53 | | |
51 | 54 | | |
52 | 55 | | |
53 | 56 | | |
54 | 57 | | |
55 | 58 | | |
56 | 59 | | |
57 | | - | |
| 60 | + | |
58 | 61 | | |
59 | 62 | | |
60 | 63 | | |
| |||
91 | 94 | | |
92 | 95 | | |
93 | 96 | | |
94 | | - | |
| 97 | + | |
95 | 98 | | |
96 | 99 | | |
97 | 100 | | |
| |||
106 | 109 | | |
107 | 110 | | |
108 | 111 | | |
109 | | - | |
| 112 | + | |
110 | 113 | | |
111 | 114 | | |
112 | 115 | | |
113 | 116 | | |
114 | 117 | | |
115 | 118 | | |
116 | | - | |
117 | | - | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
118 | 130 | | |
119 | 131 | | |
120 | 132 | | |
| |||
153 | 165 | | |
154 | 166 | | |
155 | 167 | | |
156 | | - | |
| 168 | + | |
157 | 169 | | |
158 | 170 | | |
159 | | - | |
| 171 | + | |
160 | 172 | | |
161 | 173 | | |
162 | 174 | | |
| |||
0 commit comments