Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

parallelizes gossip packets receiver with processing of requests (backport #17647) #17807

Merged
merged 1 commit into from
Jun 7, 2021

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Jun 7, 2021

This is an automatic backport of pull request #17647 done by Mergify.


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.io/

)

Gossip packet processing is composed of two stages:
  * The first is consuming packets from the socket, deserializing,
    sanitizing and verifying them:
    https://github.com/solana-labs/solana/blob/7f0349b29/gossip/src/cluster_info.rs#L2510-L2521
  * The second is actually processing the requests/messages:
    https://github.com/solana-labs/solana/blob/7f0349b29/gossip/src/cluster_info.rs#L2585-L2605

The former does not acquire any locks and so can be parallelized with
the later, allowing better pipelineing properties and smaller latency in
responding to gossip requests or propagating messages.

(cherry picked from commit cab30e2)
@mergify mergify bot added the automerge Merge this Pull Request automatically once CI passes label Jun 7, 2021
@mergify mergify bot merged commit 3d5f333 into v1.7 Jun 7, 2021
@mergify mergify bot deleted the mergify/bp/v1.7/pr-17647 branch June 7, 2021 20:30
@brooksprumo brooksprumo mentioned this pull request Aug 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
automerge Merge this Pull Request automatically once CI passes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant