Alexey Serbin has submitted this change and it was merged. ( 
http://gerrit.cloudera.org:8080/20716 )

Change subject: [util] Add a warning into 'heap_sample_every_n_bytes' flag 
description.
......................................................................

[util] Add a warning into 'heap_sample_every_n_bytes' flag description.

Parameter --heap_sample_every_n_bytes is actually a parameter of
tcmalloc. Setting it to a positive value will make thread cache
request some sample allocations from page cache, which will
compete the lock of page heap with other threads. So does
the free operation of the sample.

A tserver with high throughput might lose so much performance
because of the lock contention of tcmalloc. Almost all the apply
threads are waiting for the spin lock.

So add a warning on --heap_sample_every_n_bytes in case that
some users do not know the terrible influence of this parameter.

Change-Id: I00d55126f0cad0ac6cc130576cc45808f96f0a47
Reviewed-on: http://gerrit.cloudera.org:8080/20716
Tested-by: Kudu Jenkins
Reviewed-by: Wang Xixu <1450306...@qq.com>
Reviewed-by: Alexey Serbin <ale...@apache.org>
---
M src/kudu/util/flags.cc
1 file changed, 14 insertions(+), 2 deletions(-)

Approvals:
  Kudu Jenkins: Verified
  Wang Xixu: Looks good to me, but someone else must approve
  Alexey Serbin: Looks good to me, approved

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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I00d55126f0cad0ac6cc130576cc45808f96f0a47
Gerrit-Change-Number: 20716
Gerrit-PatchSet: 18
Gerrit-Owner: Song Jiacheng <songjiach...@thinkingdata.cn>
Gerrit-Reviewer: Alexey Serbin <ale...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Marton Greber <greber...@gmail.com>
Gerrit-Reviewer: Song Jiacheng <songjiach...@thinkingdata.cn>
Gerrit-Reviewer: Wang Xixu <1450306...@qq.com>
Gerrit-Reviewer: Yingchun Lai <laiyingc...@apache.org>

Reply via email to