You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@impala.apache.org by "Tim Armstrong (Code Review)" <ge...@cloudera.org> on 2018/09/25 22:05:48 UTC

[Impala-ASF-CR] IMPALA-7600: bump mem limit for test kudu scan mem usage

Tim Armstrong has uploaded this change for review. ( http://gerrit.cloudera.org:8080/11513


Change subject: IMPALA-7600: bump mem_limit for test_kudu_scan_mem_usage
......................................................................

IMPALA-7600: bump mem_limit for test_kudu_scan_mem_usage

The estimate for memory consumption for this scan is 9 columns * 384kb
per column = 3.375mb. So if we set the mem_limit to 6.5mb, we should
still not get more than one scanner thread, but we can avoid hitting
out-of-memory.

The issue in the JIRA was queue row batches. With this change, and
num_scanner_threads=2, there should be max 12 row batches
(10 in the queue, 2 in the scanner threads about to be enqueued)
and based on the column stats I'd estimate that each row batch is
around 200kb, so this change should provide significantly more headroom.

Change-Id: I6d992cc076bc8678089f765bdffe92e877e9d229
---
M testdata/workloads/functional-query/queries/QueryTest/kudu-scan-mem-usage.test
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/13/11513/1
-- 
To view, visit http://gerrit.cloudera.org:8080/11513
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I6d992cc076bc8678089f765bdffe92e877e9d229
Gerrit-Change-Number: 11513
Gerrit-PatchSet: 1
Gerrit-Owner: Tim Armstrong <ta...@cloudera.com>
Gerrit-Reviewer: Bikramjeet Vig <bi...@cloudera.com>

[Impala-ASF-CR] IMPALA-7600: bump mem limit for test kudu scan mem usage

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/11513 )

Change subject: IMPALA-7600: bump mem_limit for test_kudu_scan_mem_usage
......................................................................


Patch Set 3: Verified+1


-- 
To view, visit http://gerrit.cloudera.org:8080/11513
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I6d992cc076bc8678089f765bdffe92e877e9d229
Gerrit-Change-Number: 11513
Gerrit-PatchSet: 3
Gerrit-Owner: Tim Armstrong <ta...@cloudera.com>
Gerrit-Reviewer: Bikramjeet Vig <bi...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Comment-Date: Wed, 26 Sep 2018 06:51:54 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-7600: bump mem limit for test kudu scan mem usage

Posted by "Bikramjeet Vig (Code Review)" <ge...@cloudera.org>.
Bikramjeet Vig has posted comments on this change. ( http://gerrit.cloudera.org:8080/11513 )

Change subject: IMPALA-7600: bump mem_limit for test_kudu_scan_mem_usage
......................................................................


Patch Set 2: Code-Review+2

(1 comment)

http://gerrit.cloudera.org:8080/#/c/11513/2/testdata/workloads/functional-query/queries/QueryTest/kudu-scan-mem-usage.test
File testdata/workloads/functional-query/queries/QueryTest/kudu-scan-mem-usage.test:

http://gerrit.cloudera.org:8080/#/c/11513/2/testdata/workloads/functional-query/queries/QueryTest/kudu-scan-mem-usage.test@7
PS2, Line 7: ="6.5mb";
Looks good!
I initially though of doing the same, but did not realize we account for unused estimated memory here (https://github.com/apache/impala/blob/e38715e25297cc3643482be04e3b1b273e339b54/be/src/runtime/scanner-mem-limiter.cc#L87)
which initially led me to believe that we might still end up more than 1 scanner thread if the first one does not use enough.



-- 
To view, visit http://gerrit.cloudera.org:8080/11513
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I6d992cc076bc8678089f765bdffe92e877e9d229
Gerrit-Change-Number: 11513
Gerrit-PatchSet: 2
Gerrit-Owner: Tim Armstrong <ta...@cloudera.com>
Gerrit-Reviewer: Bikramjeet Vig <bi...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Comment-Date: Wed, 26 Sep 2018 00:27:45 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-7600: bump mem limit for test kudu scan mem usage

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/11513 )

Change subject: IMPALA-7600: bump mem_limit for test_kudu_scan_mem_usage
......................................................................


Patch Set 1:

Build Successful 

https://jenkins.impala.io/job/gerrit-code-review-checks/797/ : Initial code review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun to run full precommit tests.


-- 
To view, visit http://gerrit.cloudera.org:8080/11513
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I6d992cc076bc8678089f765bdffe92e877e9d229
Gerrit-Change-Number: 11513
Gerrit-PatchSet: 1
Gerrit-Owner: Tim Armstrong <ta...@cloudera.com>
Gerrit-Reviewer: Bikramjeet Vig <bi...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Comment-Date: Tue, 25 Sep 2018 23:11:53 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-7600: bump mem limit for test kudu scan mem usage

Posted by "Tim Armstrong (Code Review)" <ge...@cloudera.org>.
Hello Bikramjeet Vig, 

I'd like you to reexamine a change. Please visit

    http://gerrit.cloudera.org:8080/11513

to look at the new patch set (#2).

Change subject: IMPALA-7600: bump mem_limit for test_kudu_scan_mem_usage
......................................................................

IMPALA-7600: bump mem_limit for test_kudu_scan_mem_usage

The estimate for memory consumption for this scan is 9 columns * 384kb
per column = 3.375mb. So if we set the mem_limit to 6.5mb, we should
still not get more than one scanner thread, but we can avoid hitting
out-of-memory.

The issue in the JIRA was queued row batches. With this change, and
num_scanner_threads=2, there should be max 12 row batches
(10 in the queue, 2 in the scanner threads about to be enqueued)
and based on the column stats I'd estimate that each row batch is
around 200kb, so this change should provide significantly more headroom.

Change-Id: I6d992cc076bc8678089f765bdffe92e877e9d229
---
M testdata/workloads/functional-query/queries/QueryTest/kudu-scan-mem-usage.test
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/13/11513/2
-- 
To view, visit http://gerrit.cloudera.org:8080/11513
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I6d992cc076bc8678089f765bdffe92e877e9d229
Gerrit-Change-Number: 11513
Gerrit-PatchSet: 2
Gerrit-Owner: Tim Armstrong <ta...@cloudera.com>
Gerrit-Reviewer: Bikramjeet Vig <bi...@cloudera.com>

[Impala-ASF-CR] IMPALA-7600: bump mem limit for test kudu scan mem usage

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/11513 )

Change subject: IMPALA-7600: bump mem_limit for test_kudu_scan_mem_usage
......................................................................


Patch Set 3:

Build started: https://jenkins.impala.io/job/gerrit-verify-dryrun/3222/ DRY_RUN=false


-- 
To view, visit http://gerrit.cloudera.org:8080/11513
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I6d992cc076bc8678089f765bdffe92e877e9d229
Gerrit-Change-Number: 11513
Gerrit-PatchSet: 3
Gerrit-Owner: Tim Armstrong <ta...@cloudera.com>
Gerrit-Reviewer: Bikramjeet Vig <bi...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Comment-Date: Wed, 26 Sep 2018 03:09:29 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-7600: bump mem limit for test kudu scan mem usage

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/11513 )

Change subject: IMPALA-7600: bump mem_limit for test_kudu_scan_mem_usage
......................................................................

IMPALA-7600: bump mem_limit for test_kudu_scan_mem_usage

The estimate for memory consumption for this scan is 9 columns * 384kb
per column = 3.375mb. So if we set the mem_limit to 6.5mb, we should
still not get more than one scanner thread, but we can avoid hitting
out-of-memory.

The issue in the JIRA was queued row batches. With this change, and
num_scanner_threads=2, there should be max 12 row batches
(10 in the queue, 2 in the scanner threads about to be enqueued)
and based on the column stats I'd estimate that each row batch is
around 200kb, so this change should provide significantly more headroom.

Change-Id: I6d992cc076bc8678089f765bdffe92e877e9d229
Reviewed-on: http://gerrit.cloudera.org:8080/11513
Reviewed-by: Impala Public Jenkins <im...@cloudera.com>
Tested-by: Impala Public Jenkins <im...@cloudera.com>
---
M testdata/workloads/functional-query/queries/QueryTest/kudu-scan-mem-usage.test
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Impala Public Jenkins: Looks good to me, approved; Verified

-- 
To view, visit http://gerrit.cloudera.org:8080/11513
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I6d992cc076bc8678089f765bdffe92e877e9d229
Gerrit-Change-Number: 11513
Gerrit-PatchSet: 4
Gerrit-Owner: Tim Armstrong <ta...@cloudera.com>
Gerrit-Reviewer: Bikramjeet Vig <bi...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>

[Impala-ASF-CR] IMPALA-7600: bump mem limit for test kudu scan mem usage

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/11513 )

Change subject: IMPALA-7600: bump mem_limit for test_kudu_scan_mem_usage
......................................................................


Patch Set 3: Code-Review+2


-- 
To view, visit http://gerrit.cloudera.org:8080/11513
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I6d992cc076bc8678089f765bdffe92e877e9d229
Gerrit-Change-Number: 11513
Gerrit-PatchSet: 3
Gerrit-Owner: Tim Armstrong <ta...@cloudera.com>
Gerrit-Reviewer: Bikramjeet Vig <bi...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Comment-Date: Wed, 26 Sep 2018 03:09:28 +0000
Gerrit-HasComments: No