Csaba Ringhofer has posted comments on this change. ( 
https://gerrit.cloudera.org/25472 )

Change subject: IMPALA-15326: Share exchange queue memory budget
......................................................................


Patch Set 4:

(1 comment)

https://gerrit.cloudera.org/#/c/25472/4/fe/src/main/java/org/apache/impala/planner/ExchangeNode.java
File fe/src/main/java/org/apache/impala/planner/ExchangeNode.java:

https://gerrit.cloudera.org/#/c/25472/4/fe/src/main/java/org/apache/impala/planner/ExchangeNode.java@405
PS4, Line 405:     // EOS releases a sender's share of the budget before 
draining its queue.
             :     // Each finished queue can retain the larger of its last 
share or one batch.
Trying to interpret what I wrote in 
https://gerrit.cloudera.org/#/c/22217/25/be/src/runtime/krpc-data-stream-recvr.cc
 and how it should be estimated.

The worst case mem usage really looks worse than I intended. My goal was to 
redistribute mem limit if a sender does not have any more rows (e.g. if the 
data was ordered among files), but it seems that the queue can be still full at 
that point, so it is early to do that. Maybe rewrite the BE code to decrease 
num_active_queues_ when the queue actually becomes empty? Or properly track mem 
used by queues (what I avoided with using atomic num_active_queues_).

Or it could be left as num_active_queues_ (which is nat far from the value 
calculated in the loop) and fix BE in another commit.



--
To view, visit https://gerrit.cloudera.org/25472
To unsubscribe, visit https://gerrit.cloudera.org/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I15be0985b45321dde9d6f0913188ef5f96088f82
Gerrit-Change-Number: 25472
Gerrit-PatchSet: 4
Gerrit-Owner: Aleksandr Efimov <[email protected]>
Gerrit-Reviewer: Aleksandr Efimov <[email protected]>
Gerrit-Reviewer: Csaba Ringhofer <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Quanlong Huang <[email protected]>
Gerrit-Comment-Date: Fri, 20 Nov 2026 19:14:04 +0000
Gerrit-HasComments: Yes

Reply via email to