migration: Make multifd use only one write on the send path
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest9 of 11 patches 7 repliesIn review
9 of 11 patches are in this archive. The cover letter announces 11.
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/11 | migration: Remove is_zero_range()migration/ | +2 | 1 reply | |
| 2/11 | dump: Remove is_zero_page()dump/ | +1 | 2 replies | |
| 3/11 | multifd: Fill offset and block for receptionmigration/ | +2 | 2 replies | |
| 4/11 | multifd: Make zstd compression method not use iovsmigration/ | +9 | 0 replies | |
| 5/11 | multifd: Make zlib compression method not use iovsmigration/ | +9 | 0 replies | |
| 6/11 | migration: Move iov from pages to paramsmigration/ migration/ | +27 | 2 replies | |
| 7/11 | multifd: Make zlib use iov'smigration/ | +4 | 0 replies | |
| 8/11 | multifd: Make zstd use iov'smigration/ | +4 | 0 replies | |
| 9/11 | multifd: Remove send_write() methodmigration/ migration/ migration/ +1 more | +2 | 0 replies |
Reviews trailers per patch
2 of 9 patches have a Reviewed-by or Acked-by.
| Patch | Richard Henderson | Marc-André Lureau |
|---|---|---|
| 1/11 | R-b | |
| 2/11 | R-b | R-b |
| 3/11 | ||
| 4/11 | ||
| 5/11 | ||
| 6/11 | ||
| 7/11 | ||
| 8/11 | ||
| 9/11 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 00/11] migration: Make multifd use only one write on the send path
Hi
Right now, multifd does a write() for the header and a writev() for each group of pages. Simplify it so we send the header as another member of the IOV.
Once there, I got several simplifications:
* is_zero_range() was used only once, just use its body.
* same with is_zero_page().
* Be consintent and use offset insed the ramblock everywhere.
* Now that we have the offsets of the ramblock, we can drop the iov.
* Now that nothing uses iov's except NOCOMP method, move the iovs from pages to methods.
* Now we can use iov's with a single field for zlib/zstd.
* send_write() method is the same in all the implementaitons, so use it directly.
* Now, we can use a single writev() to write everything.
ToDo: Move zero page detection to the multifd thrteads.
With RAM in the Terabytes size, the detection of the zero page takes too much time on the main thread.
Last patch on the series removes the detection of zero pages in the main thread for multifd. In the next series post, I will add how to detect the zero pages and send them on multifd channels.
Please review.
Later, Juan.
Juan Quintela (11):
migration: Remove is_zero_range()
dump: Remove is_zero_page()
multifd: Fill offset and block for reception
multifd: Make zstd compression method not use iovs
multifd: Make zlib compression method not use iovs
migration: Move iov from pages to params
multifd: Make zlib use iov's
multifd: Make zstd use iov's
multifd: Remove send_write() method
multifd: Use a single writev on the send side
migration: Use multifd before we check for the zero page
migration/multifd.h | 10 ++++--- dump/dump.c | 10 +------ migration/multifd-zlib.c | 40 ++++++++------------------ migration/multifd-zstd.c | 41 ++++++++------------------ migration/multifd.c | 62 ++++++++++++++++++---------------------- migration/ram.c | 31 +++++++++----------- 6 files changed, 72 insertions(+), 122 deletions(-)
Signature · 1 line
2.33.1