Skip to content

Conversation

@ChenSammi
Copy link
Contributor

@ChenSammi ChenSammi commented Sep 27, 2021

https://issues.apache.org/jira/browse/HDDS-5785

With this striped lock, the contension is dropped to a low state. The average create container time is dropped from 60s to 1s in the same test.

---ts=2021-09-26 11:48:12;thread_name=ChunkWriter-101-0;id=ec;is_daemon=true;priority=5;TCCL=sun.misc.Launcher$AppClassLoader@6659c656 ---[1401.227154ms] org.apache.hadoop.ozone.container.keyvalue.KeyValueHandler:handleCreateContainer()
+---[0.001033ms] org.apache.hadoop.hdds.protocol.datanode.proto.ContainerProtos$ContainerCommandRequestProto:hasCreateContainer() #252
+---[7.8E-4ms] com.google.common.base.Preconditions:checkArgument() #261
+---[0.001397ms] org.apache.hadoop.hdds.protocol.datanode.proto.ContainerProtos$ContainerCommandRequestProto:getContainerID() #263
+---[0.003679ms] org.apache.hadoop.ozone.container.common.impl.ChunkLayOutVersion:getConfiguredVersion() #266
+---[0.001038ms] org.apache.hadoop.hdds.protocol.datanode.proto.ContainerProtos$ContainerCommandRequestProto:getPipelineID() #268
+---[9.06E-4ms] org.apache.hadoop.ozone.container.keyvalue.KeyValueHandler:getDatanodeId() #269
+---[0.00287ms] org.apache.hadoop.ozone.container.keyvalue.KeyValueContainerData:() #269
+---[0.002747ms] org.apache.hadoop.ozone.container.keyvalue.KeyValueContainer:() #272
+---[0.0041ms] com.google.common.util.concurrent.Striped:get() #277
+---[0.001554ms] org.apache.hadoop.ozone.container.common.impl.ContainerSet:getContainer() #280
+---[1401.138626ms] org.apache.hadoop.ozone.container.keyvalue.KeyValueContainer:create() #281
+---[0.008657ms] org.apache.hadoop.ozone.container.common.impl.ContainerSet:addContainer() #282
+---[0.024103ms] org.apache.hadoop.ozone.container.keyvalue.KeyValueHandler:sendICR() #297
`---[0.002756ms] org.apache.hadoop.hdds.scm.protocolPB.ContainerCommandResponseBuilders:getSuccessResponse() #302

Copy link
Contributor

@bharatviswa504 bharatviswa504 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.
cc @bshashikant for review.

@adoroszlai adoroszlai requested a review from bshashikant October 6, 2021 10:41
@bshashikant bshashikant merged commit f902b13 into apache:master Oct 11, 2021
@bshashikant
Copy link
Contributor

bshashikant commented Oct 11, 2021

Thanks @ChenSammi for the contribution and @bharatviswa504 for the review..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants