migration/multifd: a new mechanism for send thread sync
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest6 patches 3 repliesIn review
- v16 patches 0 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | migration/multifd: move Params update and pages cleanup into multifd_send_fill_packet()migration/ | +11 | 2 replies | |
| 2/6 | migration/multifd: notify channels_ready when send thread startsmigration/ | +2 | 0 replies | |
| 3/6 | migration/multifd: use sync field to synchronize send threadsmigration/ | +24 | 0 replies | |
| 4/6 | migration/multifd: used must not be 0 for a pending jobmigration/ | +5 | 0 replies | |
| 5/6 | migration/multifd: use boolean for pending_job is enoughmigration/ | +4 | 0 replies | |
| 6/6 | migration/multifd: there is no spurious wakeup nowmigration/ | +2 | 0 replies |
Reviews trailers per patch
1 of 6 patches has a Reviewed-by or Acked-by.
| Patch | Juan Quintela |
|---|---|
| 1/6 | R-b |
| 2/6 | |
| 3/6 | |
| 4/6 | |
| 5/6 | |
| 6/6 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/6] migration/multifd: a new mechanism for send thread sync
Current send thread could work while the sync mechanism has some problem:
* has spuriously wakeup
* number of channels_ready will *overflow* the number of real channels
The reason is:
* if MULTIFD_FLAG_SYNC is set in the middle of send thread running, there is one more spurious wakeup
* if MULTIFD_FLAG_SYNC is set when send thread is not running, there is one more channels_ready be triggered
To solve this situation, one new mechanism is introduced to synchronize send threads. The idea is simple, a new field *sync* is introduced to indicate a synchronization is required.
---
v2: rebase on latest code
Wei Yang (6):
migration/multifd: move Params update and pages cleanup into
multifd_send_fill_packet()
migration/multifd: notify channels_ready when send thread starts migration/multifd: use sync field to synchronize send threads migration/multifd: used must not be 0 for a pending job migration/multifd: use boolean for pending_job is enough migration/multifd: there is no spurious wakeup now
migration/ram.c | 74 +++++++++++++++++++++++++++++++------------------ 1 file changed, 47 insertions(+), 27 deletions(-)
Signature · 1 line
2.17.1