-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Return remaining bytes from exchange sources #8758
Conversation
This pull request was exported from Phabricator. Differential Revision: D53793123 |
✅ Deploy Preview for meta-velox canceled.
|
Summary: This is the first diff to upgrade the exchange protocol. This change only exposes the remaining bytes to buffer manager; it does not change the existing protocol yet, and is compatible with the current Prestissimo code. Also added a few statistics to spot skewed exchange. See prestodb/presto#21926 for details about the design. Differential Revision: D53793123
231f9fd
to
4480722
Compare
This pull request was exported from Phabricator. Differential Revision: D53793123 |
Summary: This is the first diff to upgrade the exchange protocol. This change only exposes the remaining bytes to buffer manager; it does not change the existing protocol yet, and is compatible with the current Prestissimo code. Also added a few statistics to spot skewed exchange. See prestodb/presto#21926 for details about the design. Differential Revision: D53793123
4480722
to
200a8b2
Compare
This pull request was exported from Phabricator. Differential Revision: D53793123 |
Summary: This is the first diff to upgrade the exchange protocol. This change only exposes the remaining bytes to buffer manager; it does not change the existing protocol yet, and is compatible with the current Prestissimo code. Also added a few statistics to spot skewed exchange. See prestodb/presto#21926 for details about the design. Differential Revision: D53793123
200a8b2
to
dd0ab35
Compare
This pull request was exported from Phabricator. Differential Revision: D53793123 |
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.
Thanks.
@@ -78,6 +81,9 @@ class ArbitraryBuffer { | |||
/// there are sufficient buffered pages. | |||
std::vector<std::shared_ptr<SerializedPage>> getPages(uint64_t maxBytes); | |||
|
|||
/// Append the available page sizes to `out'. | |||
void getAvailablePageSizes(std::vector<int64_t>& out) const; |
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.
Any particular reason not to return std::vector?
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.
So we don't need to create a new vector every time and just appending the existing one already created for DestinationBuffer
Summary: This is the first diff to upgrade the exchange protocol. This change only exposes the remaining bytes to buffer manager; it does not change the existing protocol yet, and is compatible with the current Prestissimo code. See prestodb/presto#21926 for details about the design. Reviewed By: mbasmanova Differential Revision: D53793123
dd0ab35
to
00f46e8
Compare
This pull request was exported from Phabricator. Differential Revision: D53793123 |
This pull request has been merged in 9c79ef9. |
Conbench analyzed the 1 benchmark run on commit There were no benchmark performance regressions. 🎉 The full Conbench report has more details. |
Summary:
This is the first diff to upgrade the exchange protocol. This change
only exposes the remaining bytes to buffer manager; it does not change the
existing protocol yet, and is compatible with the current Prestissimo code.
Also added a few statistics to spot skewed exchange.
See prestodb/presto#21926 for details about the
design.
Differential Revision: D53793123