CA-410782: Add receive_memory_queues for VM_receive_memory operations #6470
+22
−7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Migration spawns 2 operations which depend on each other so we need to ensure there is always space for both of them to prevent a deadlock during localhost and two-way migrations. Adding VM_receive_memory to a new queue ensures that there will always be a worker for the receive operation so the paired send will never be blocked.
This will increase the total number of workers by worker-pool-size. Unlike parallel_queues workers, these workers will be doing actual work (VM_receive_memory), which could in theory increase the workload of a host if it is receiving VMs at the same time as other work, so this needs to be considered before merging this PR.