-
Notifications
You must be signed in to change notification settings - Fork 21.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[C10D] Rewrite TCPStore client send path to minimize amount of syscalls. #100742
Conversation
Accumulate data in a local buffer prior to sending it. This reduces the number of syscalls and network packets. We flush every 1440 bytes to cap the amount of temporaty memory. [ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/100742
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit c75bef3: This comment was automatically generated by Dr. CI and updates every 15 minutes. |
Accumulate data in a local buffer prior to sending it. This reduces the number of syscalls and network packets. We flush every 1440 bytes to cap the amount of temporaty memory. ghstack-source-id: bfa1ed9dc274823176647a9c31454ff0f336fa9b Pull Request resolved: #100742
…t of syscalls." Accumulate data in a local buffer prior to sending it. This reduces the number of syscalls and network packets. We flush every 1440 bytes to cap the amount of temporaty memory. [ghstack-poisoned]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is amazing! Thanks!
public: | ||
SendBuffer(detail::TCPClient& client, detail::QueryType cmd) | ||
: client(client) { | ||
buffer.reserve(32); // enough for most commands |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we make this a const or adjustable rather than hard code it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is amazing! Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is amazing! Thanks!
…t of syscalls." Accumulate data in a local buffer prior to sending it. This reduces the number of syscalls and network packets. We flush every 1440 bytes to cap the amount of temporaty memory. [ghstack-poisoned]
…t of syscalls." Accumulate data in a local buffer prior to sending it. This reduces the number of syscalls and network packets. We flush every 1440 bytes to cap the amount of temporaty memory. [ghstack-poisoned]
Accumulate data in a local buffer prior to sending it. This reduces the number of syscalls and network packets. We flush every 1440 bytes to cap the amount of temporaty memory. ghstack-source-id: ecf08e21a7326f398411f0882854b089094c1cfa Pull Request resolved: #100742
@pytorchmergebot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
…ls. (pytorch#100742) Accumulate data in a local buffer prior to sending it. This reduces the number of syscalls and network packets. We flush every 1440 bytes to cap the amount of temporaty memory. Pull Request resolved: pytorch#100742 Approved by: https://github.com/fduwjj
Stack from ghstack (oldest at bottom):
Accumulate data in a local buffer prior to sending it. This reduces
the number of syscalls and network packets.
We flush every 1440 bytes to cap the amount of temporaty memory.