You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@kudu.apache.org by "Alexey Serbin (Code Review)" <ge...@cloudera.org> on 2019/10/18 01:26:15 UTC
[kudu-CR](branch-1.11.x) [nvm cache] set --nvm cache allocation retry count to 0
Hello Kudu Jenkins, Adar Dembo,
I'd like you to do a code review. Please visit
http://gerrit.cloudera.org:8080/14504
to review the following change.
Change subject: [nvm_cache] set --nvm_cache_allocation_retry_count to 0
......................................................................
[nvm_cache] set --nvm_cache_allocation_retry_count to 0
As it turned out, the logic of retrying NVM-based allocations in
NvmLRUCache::AllocateAndRetry() didn't serve the intended purpose.
The actual memory was deallocated only after all the retries, and
the code effectively was attempting to allocate memory again and
again on nothing-yet-freed-cache.
As a stop-gap solution, this patch sets the default value for the
--nvm_cache_allocation_retry_count flag to 0. The matter will be
properly addressed in a separate changelist.
Change-Id: If33d1a7ffdb7389a02c1b86f2f4b3b9dc362b5d9
Reviewed-on: http://gerrit.cloudera.org:8080/14497
Reviewed-by: Adar Dembo <ad...@cloudera.com>
Tested-by: Kudu Jenkins
(cherry picked from commit 24aebbaa77f68c813e604eb157b73e0c9bc7433f)
---
M src/kudu/util/nvm_cache.cc
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/04/14504/1
--
To view, visit http://gerrit.cloudera.org:8080/14504
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: branch-1.11.x
Gerrit-MessageType: newchange
Gerrit-Change-Id: If33d1a7ffdb7389a02c1b86f2f4b3b9dc362b5d9
Gerrit-Change-Number: 14504
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Adar Dembo <ad...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
[kudu-CR](branch-1.11.x) [nvm cache] set --nvm cache allocation retry count to 0
Posted by "Alexey Serbin (Code Review)" <ge...@cloudera.org>.
Alexey Serbin has posted comments on this change. ( http://gerrit.cloudera.org:8080/14504 )
Change subject: [nvm_cache] set --nvm_cache_allocation_retry_count to 0
......................................................................
Patch Set 1: Code-Review+2
--
To view, visit http://gerrit.cloudera.org:8080/14504
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: branch-1.11.x
Gerrit-MessageType: comment
Gerrit-Change-Id: If33d1a7ffdb7389a02c1b86f2f4b3b9dc362b5d9
Gerrit-Change-Number: 14504
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Adar Dembo <ad...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Comment-Date: Fri, 18 Oct 2019 18:15:59 +0000
Gerrit-HasComments: No
[kudu-CR](branch-1.11.x) [nvm cache] set --nvm cache allocation retry count to 0
Posted by "Alexey Serbin (Code Review)" <ge...@cloudera.org>.
Alexey Serbin has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/14504 )
Change subject: [nvm_cache] set --nvm_cache_allocation_retry_count to 0
......................................................................
[nvm_cache] set --nvm_cache_allocation_retry_count to 0
As it turned out, the logic of retrying NVM-based allocations in
NvmLRUCache::AllocateAndRetry() didn't serve the intended purpose.
The actual memory was deallocated only after all the retries, and
the code effectively was attempting to allocate memory again and
again on nothing-yet-freed-cache.
As a stop-gap solution, this patch sets the default value for the
--nvm_cache_allocation_retry_count flag to 0. The matter will be
properly addressed in a separate changelist.
Change-Id: If33d1a7ffdb7389a02c1b86f2f4b3b9dc362b5d9
Reviewed-on: http://gerrit.cloudera.org:8080/14497
Reviewed-by: Adar Dembo <ad...@cloudera.com>
Tested-by: Kudu Jenkins
(cherry picked from commit 24aebbaa77f68c813e604eb157b73e0c9bc7433f)
Reviewed-on: http://gerrit.cloudera.org:8080/14504
Reviewed-by: Alexey Serbin <as...@cloudera.com>
---
M src/kudu/util/nvm_cache.cc
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Kudu Jenkins: Verified
Alexey Serbin: Looks good to me, approved
--
To view, visit http://gerrit.cloudera.org:8080/14504
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: branch-1.11.x
Gerrit-MessageType: merged
Gerrit-Change-Id: If33d1a7ffdb7389a02c1b86f2f4b3b9dc362b5d9
Gerrit-Change-Number: 14504
Gerrit-PatchSet: 2
Gerrit-Owner: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Adar Dembo <ad...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)