Riza Suminto has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/21455 )

Change subject: IMPALA-13075: Cap memory usage for ExprValuesCache at 256KB
......................................................................


Patch Set 3:

(2 comments)

http://gerrit.cloudera.org:8080/#/c/21455/2/be/src/exec/hash-table.cc
File be/src/exec/hash-table.cc:

http://gerrit.cloudera.org:8080/#/c/21455/2/be/src/exec/hash-table.cc@373
PS2, Line 373: t int sample_size
> Looks like the 64 is the sampling number, can we give the 64 a const, and r
Done. Keeping it local for this Init method.
Picked 64 because MemUsage account for Bitmap::MemUsage as well, which cost 8 
bytes per 64 entries.


http://gerrit.cloudera.org:8080/#/c/21455/2/be/src/exec/hash-table.cc@378
PS2, Line 378: // TODO: Add 'mem_
> Should "if (capacity_ > 0)" also hold the DCHECK? Or is it possible that th
capacity_ is capped to 1 at minimum. It is unlikely, but we want to know if 
this indeed happen.
Turn this into LOG(WARNING) instead.



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iee27cbbe8d3100301d05a6516b62c45975a8d0e0
Gerrit-Change-Number: 21455
Gerrit-PatchSet: 3
Gerrit-Owner: Riza Suminto <riza.sumi...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <csringho...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <impala-public-jenk...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <riza.sumi...@cloudera.com>
Gerrit-Reviewer: Yida Wu <wydbaggio...@gmail.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <borokna...@cloudera.com>
Gerrit-Comment-Date: Tue, 28 May 2024 23:16:14 +0000
Gerrit-HasComments: Yes

Reply via email to