Skip to content

migration/rdma: send small control messages inline

Jack Wang qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2migration/rdma: send small control messages inlinemigration/rdma.c+22 -02 replies
2/2migration/rdma: avoid memcpy for inline control sendsmigration/rdma.c+45 -230 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] migration/rdma: send small control messages inline

From: Jack Wang <[email protected]>

Control-channel sends (registration requests, ram block replies, etc.) carry only a few dozen bytes, but qemu_rdma_post_send_control() still always memcpy()s them into a pre-registered scratch buffer and lets the HCA fetch them with a separate local memory read before sending.

This series asks the QP for a little inline send space at creation time (patch 1) and then, once that plumbing exists, drops the mandatory memcpy() by pointing the SGEs directly at the header/payload for any message that fits inline (patch 2). Messages too large to inline keep using the old copy-into-registered-buffer path, so there is no wire protocol change.

In testing, this doesn't show an obvious improvement in total migration time or downtime -- the control channel isn't the bottleneck there. Still, it seems like the right thing to do: inline sends are supported by modern HCAs and reduce per-message latency on the control channel by skipping the extra local memory read, so it should help control-plane responsiveness (e.g. registration round trips) even where it doesn't move the overall migration numbers.

Jack Wang (2):
migration/rdma: send small control messages inline migration/rdma: avoid memcpy for inline control sends

 migration/rdma.c | 82 +++++++++++++++++++++++++++++++++++++-----------
 1 file changed, 63 insertions(+), 19 deletions(-)
Signature · 1 line
2.43.0